Skip to content

Instantly share code, notes, and snippets.

@fjunior87
Created July 17, 2016 00:14
Show Gist options
  • Save fjunior87/117290a8346b3aa040b6b6c7901298c3 to your computer and use it in GitHub Desktop.
Save fjunior87/117290a8346b3aa040b6b6c7901298c3 to your computer and use it in GitHub Desktop.
Smooks Config with a not strict 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="strict" type="boolean">false</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