Show Table of Contents
2.4. Configuring the CSV Reader
- Use the http://www.milyn.org/xsd/smooks/csv-1.2.xsd configuration namespace to configure the reader.Here is a basic configuration:
<?xml version="1.0"?> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd"> <!-- Configure the CSV to parse the message into a stream of SAX events. --> <csv:reader fields="firstname,lastname,gender,age,country" separator="|" quote="'" skipLines="1" /> </smooks-resource-list> - You will see the following event stream:
<csv-set> <csv-record> <firstname>Tom</firstname> <lastname>Fennelly</lastname> <gender>Male</gender> <age>21</age> <country>Ireland</country> </csv-record> <csv-record> <firstname>Tom</firstname> <lastname>Fennelly</lastname> <gender>Male</gender> <age>21</age> <country>Ireland</country> </csv-record> </csv-set>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.