wso2esb - VFS options for tab delimited file in WSO2 ESB -


Does anyone know about processing tab-separated input text file using VFS transport in WSO2sb is? In general, how can I convert a different file from a tab to the structure structure format (XML for WSO2)? Using comet mediator can easily parse the delimited file with a comma and works well but there is no document around the parsing capacity using other delimiter. Sprax config works well for CSV, please tell how can be modified to delimit the tab.

& lt; 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 "& Gt; & Lt; Resource-Config Chooser = "org.xml.sax.driver" & gt; & Lt; Resources & gt; Org.milyn.csv.CSVReader & lt; / Resources & gt; & Lt; Param name = "field" & gt; Field 1, Field 2, Field 3 & lt; / Param & gt; & Lt; Param name = "rootElementName" & gt; File DetectorCode & lt; / Param & gt; & Lt; Param name = "recordElementName" & gt; Expansion & lt; / Param & gt; & Lt; / Resource-config & gt; & Lt; / Smooks-resource-list>

You may have done this work, but for other users' benefit Try adding the delimiter should specify the answer:

  & lt; Csv: Reader field = "First name, last name, gender, age, country" separator = "& amp; # 9;" / & Gt;   

Here is a discussion on the Smokes site about configuring a CSV reader to handle tab-delimited files. [1]

-Colin

[1]

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -