Skip to Main Content
XML Unleashed
book

XML Unleashed

by Michael Morrison
December 1999
Intermediate to advanced content levelIntermediate to advanced
992 pages
22h 3m
English
Sams
Content preview from XML Unleashed

Generating XML Documents

At this point you've looked at both parts of the XML Generator puzzle: the delimited text file and the XML template. Generating an XML document using these two files is as simple as running the XML Generator. The following is the command to run the XML Generator on the used vehicle example files:

java XMLGenerator VehicleTemplate.xml Vehicles.txt , Vehicles.xml

Executing this command creates the XML document Vehicles.xml, which contains the vehicle text data in a structured XML format. Listing 27.3 shows the code for the generated Vehicles.xml document.

Note

The examples of using a Java interpreter to run the XML Translator Generator applications are based on the standard Java interpreter that ships with the Java Development ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Hacks

XML Hacks

Michael Fitzgerald
Beginning XML, 4th Edition

Beginning XML, 4th Edition

Jeff Rafter, Danny Ayers, Jon Duckett, Eric van der Vlist, Joe Fawcett, Linda McKinnon, David Hunter, Andrew Watt
Inside XSLT

Inside XSLT

Steven Holzner

Publisher Resources

ISBN: 0672315149Purchase book