org.apache.xml.serializer
public class ToXMLStream extends ToStream
UNKNOWN: internal
Constructor Summary | |
---|---|
ToXMLStream()
Default constructor. |
Method Summary | |
---|---|
void | addAttribute(String uri, String localName, String rawName, String type, String value, boolean xslAttribute)
Add an attribute to the current element. |
void | addUniqueAttribute(String name, String value, int flags)
This method is used to add an attribute to the currently open element.
|
void | CopyFrom(ToXMLStream xmlListener)
Copy properties from another SerializerToXML.
|
void | endDocument()
Receive notification of the end of a document.
|
void | endElement(String elemName) |
void | endPreserving()
Ends a whitespace preserving section.
|
void | entityReference(String name)
Receive notivication of a entityReference.
|
void | namespaceAfterStartElement(String prefix, String uri)
This method is used to notify the serializer of a namespace mapping (or node)
that applies to the current element whose startElement() call has already been seen.
|
void | processingInstruction(String target, String data)
Receive notification of a processing instruction.
|
boolean | reset()
Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).
|
void | startDocumentInternal()
Receive notification of the beginning of a document.
|
void | startPreserving()
Starts a whitespace preserving section. |
Parameters: uri the URI associated with the element name localName local part of the attribute name rawName prefix:localName type value the value of the attribute xslAttribute true if this attribute is from an xsl:attribute, false if declared within the elements opening tag.
Throws: SAXException
Parameters: name the qualified name of the attribute value the value of the attribute which can contain only ASCII printable characters characters in the range 32 to 127 inclusive. flags the bit values of this integer give optimization information.
Parameters: xmlListener non-null reference to a SerializerToXML object.
Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. org.xml.sax.SAXException
See Also: endElement
Throws: org.xml.sax.SAXException
See Also: ToXMLStream
Parameters: name The name of the entity.
Throws: org.xml.sax.SAXException
Parameters: target The processing instruction target. data The processing instruction data, or null if none was supplied.
Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. org.xml.sax.SAXException
Returns: true if the class was successfuly reset.
Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. org.xml.sax.SAXException
The contents of the whitespace preserving section will be delivered through the regular characters event.
Throws: org.xml.sax.SAXException