XML Module

XML Module

The XML Module is used to parse and format XML to and from beans.

The XML Module contains the following classes:-

  • com.javelin.generator.jdbc.XMLStreamWriter

In order to use the XML module you need to include the following writer:

$GENERATOR.AggregateWriter xml

Class Hierarchy

The top-level XML Writer class hierarchy is illustrated below: -

 

 

Abstract XML Writer (com.javelin.generator.xml.AbstractXMLWriter)

The Abstract XML Writer has the following methods: -

  • public String getXMLStreamName()

XML Stream Writer (com.javelin.generator.xml.XMLStreamWriter)

The XML Stream Class Writer createsclasses that can be used to stream beans.

The Streams are created in the xml package, with the name pattern: -

XML<ClassName>Stream

XMLStreams are responsible for reading and writing beans into XML.

By default the classes generated have the name and pattern: -

$XMLSTREAM=public class $PACKAGE.xml.$THIS

By default the xml header is not set.To add a header or footer set the following properties

xml.stream.header=HEADER

xml.stream.footer=FOOTER