[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: CSV to XML


RE: CSV to XML
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




  • References:

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.