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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to convert a flat file to XML file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I'm trying to write a java program to reformat a plain text file(maybe comma seperated) to a XML file. Does anyone have this experience before? Do you know is there any java class or utility that I can use? I appreciate your suggestion and help!!
 
There is a host load of Java XML parsers and XSLT processors out there these days. The hard bit used to be not finding one - but picking one to use.

However Sun has kindly included an XML parser into the J2SE1.4.0. So from now on everybody will probably just be using this one to keep things standardised. This was originally Sun's JAXP (unless I'm very much mistaken)

for the javadocs checkout : and have a look under the javax.xml.* packages.

I'm afraid I'm not about to go into a rant about how to use it - however here's a nice tutorial[smarty] for you that should get you up and running in no time.[cannon]
Have fun.[wavey]

RjB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top