Skip to content

Instantly share code, notes, and snippets.

@fjunior87
Created July 16, 2016 23:52
Show Gist options
  • Save fjunior87/fb70a72ef9e294c1d1e9fd78f49cdcb0 to your computer and use it in GitHub Desktop.
Save fjunior87/fb70a72ef9e294c1d1e9fd78f49cdcb0 to your computer and use it in GitHub Desktop.
Smooks Config using the CSVParser
<?xml version="1.0" encoding="UTF-8"?>
<localEntry key="smooks_conf" xmlns="http://ws.apache.org/ns/synapse">
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
<!--Configure the CSVParser to parse the message into a stream of SAX events. -->
<resource-config selector="org.xml.sax.driver">
<resource>org.milyn.csv.CSVParser</resource>
<param name="fields" type="string-list">id,name,email,phone</param>
<param name="ident" type="boolean">true</param>
</resource-config>
</smooks-resource-list>
</localEntry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment