Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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>