Since we are using GCJ/classpath with broken SAXTransformer support we implement our own, simplified method.
Public Member Functions | |
| XmlCreator () throws DirectorException | |
| void | startElement (String localName, Attributes atts) |
| start an element. | |
| void | endElement (String localName) |
| end an element. | |
| void | characters (char[] ch, int start, int length) |
| add element contents. | |
| void | addEncode (char[] ch, int start, int length) |
| add text. | |
| void | addEncode (char[] ch) |
| add text. | |
| void | addEncode (String st) |
| add text. | |
| void | addRaw (String st) |
| add raw text. | |
| String | text () |
| get the text representation of the current document. | |
| void | setRaw (String newText) |
Static Public Member Functions | |
| static String | encode (char[] ch, int start, int length) |
| static String | encode (String text) |
Package Attributes | |
| StringBuffer | text = new StringBuffer() |
|
|
|
|
|
add text.
|
|
|
add text.
|
|
||||||||||||||||
|
add text. The text is minimally encoded, thus <, > and " characters are translated. |
|
|
add raw text. The text is appended as is, thus may contain XML tags. The caller is responsible for ensuring correct encoding of special characters. |
|
||||||||||||||||
|
add element contents.
|
|
|
|
|
||||||||||||||||
|
|
|
|
end an element. This is SAX-alike. |
|
|
|
|
||||||||||||
|
start an element. This is SAX-alike, though only the localName and attributes are currently used. |
|
|
get the text representation of the current document. The text contains exactly the elements and text that was added. No automatic addition of XML headers and such are made. |
|
|
|
1.4.5