XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

 Resource Guide -> SAX, Java Packages, Java Applications -> Java XML Writer

Java XML Writer

Date: Sep. 20, 2000
Link: http://www.megginson.com/Software/
Source Author or Organization: David Megginson, Megginson Technologies

XML::Writer is a highly-configurable class for writing XML documents based (mostly) on SAX events, together with a Java application for normalizing XML documents. This version adds extra functionality to make life easier for people creating data-oriented XML (i.e. no mixed content).

When the new 'data mode' is enabled, XML::Writer automatically starts each element on a new line. It is also possible to set the indent step (which is ignored unless data mode is active). In safe mode, any mixed content in data mode will be reported as an error.

A frequently requested new method for producing elements that contain only character data content has also been added.