Altova Mailing List Archives
RE: CSV to XML
To: 'Taco Fleur' <taco@------.---.-->, xml-dev@-----.---.---
Date: 8/10/2005 4:48:00 PM
Yes. We are completing work on such an application and I will notify the list when it's ready. Steve -----Original Message----- From: Taco Fleur [mailto:taco@s...] Sent: Wednesday, August 10, 2005 2:46 AM To: xml-dev@l... Subject: CSV to XML I have sort of given up to get a Word Table into XML, OK I can get XML from a Word Table, but it's not the format I want it in, I can't be bothered to write some complicated transformation either. Is there no way that anyone can think of to get the following CSV into the following XML structure? Message Header,M,,, ,,,,,, ,,Header Data,ZHD,Uniquely identifies the message type,M,,,,, ,,,,Must be = 'ASC201',,0018,M,V172,,HDa ,,,,,,,,V337,, ,,,,,,,,V338,, ,,,,Message version ,,0019,M,,,HDb ,,,,Message trace number ,,0016,M,,P027,HDc ,,Company id,ZCO,"Company details - name, type, class, etc",M,,,,, ,,,,Company name (including legal elements),,0006,C,V276,N003,01a ,,,,,,,,V280,N120, ,,,,Not used for Form 201,,0007,U,,,01b ,,,,Company type,,0022,M,V025,,01c ,,,,Company class,,0022,M,V027,N005,01d ,,,,,,,,V327,N073, <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <root> <message name="201"> <group name="messageHeader" required="true"> <segment name="ZHD" display="Header Data" description="Uniquely identifies the message type" required="true"> <element name="0018" required="true" item="HDa"> ASC201 <edit>V172</edit> <edit>V337</edit> <edit>V338</edit> </element> <element name="0019" display="Message version" required="true" item="HDb" /> <element name="0016" display="Message trace number" required="true" item="HDc"> <note>P027</note> </element> </segment> <segment name="ZCO" display="Company id" description="Company details - name, type, class, etc" required="true"> <element name="0006" display="Company name (including legal elements)" required="false" item="01a"> <edit>V276</edit> <edit>V280</edit> <note>N003</note> <note>N120</note> </element> ________________________________ Taco Fleur - E-commerce Development Manager Shelco Searches & Services An Authorised ASIC Information Broker www.shelco.com.au <blocked::http://www.shelco.com.au> Ph: + 61 7 3236 2605
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

