Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascii to xml

Status
Not open for further replies.

gsbsuds

Programmer
Sep 21, 2004
2
US
i am a developer that is new to xml. at my work i have been tasked with trying to genereate XML from an ascii file which is tab delimited, and each line ends with a hard return. i need to be able to map this file to XML. are there any open source tools out there that can do this for me.

thanks for the assistance.
 
You have to start with a schema. You have to, in other words, decide on a system of tags and properties that make sense for your particular data.

If the "ascii data" is:

Code:
Thomas D. Greer/tProgrammer/tPostScript/tPDF/CRLF

Then you might want a XML document that looks like:

Code:
<RECORD>
<Name>Thomas D. Greer</Name>
<Profession>Programmer</Profession>
<Specialities>
<Specialty>PostScript</Specialty>
<Specialty>PDF</Specialty>
</Specialties>
</RECORD>

And transforming one format to the other is a simple task in any programming language that can perform basic file i/o.



Thomas D. Greer

Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top