|
Xerces 3.1.1 API: Class XMLSerializer
|
Constructor Summary | |
Method Summary | |
void |
|
void |
java.lang.String localName,
java.lang.String rawName)
|
protected java.lang.String |
|
protected void |
|
void |
|
protected void |
|
void |
|
void |
java.lang.String localName,
java.lang.String rawName,
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XMLSerializer()
public XMLSerializer(java.io.Writer writer,
writer
- The writer to useformat
- The output format to use, null for the defaultpublic XMLSerializer(java.io.OutputStream output,
output
- The output stream to useformat
- The output format to use, null for the defaultMethod Detail |
format
- The output format to usepublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName,
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event.
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the properties:
Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): #IMPLIED attributes will be omitted. The attribute list will contain attributes used for Namespace declarations property is true (it is false by default, and support for a
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified name (with prefix), or the
empty string if qualified names are not available.atts
- The attributes attached to the element. If
there are no attributes, it shall be an empty
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding event (even when the element is empty).
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified XML 1.0 name (with prefix), or the
wrapping another exception.public void startElement(java.lang.String tagName,
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event.
If the element name has a namespace prefix, the prefix will still be attached. Note that the attribute list provided will contain only attributes with explicit values (specified or
public void endElement(java.lang.String tagName)
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).
If the element name has a namespace prefix, the prefix will
protected void startDocument(java.lang.String rootTagName)
will serialize the document type declaration, and will serialize all pre-root comments and PIs that were accumulated in the document this is not the first root element of the document.
protected void serializeElement(Element elem)
elem
- The element to serializeprotected java.lang.String getEntityRef(char ch)
ch
- Character value
|
Xerces 3.1.1 | ||||||||
NEXT CLASS | FRAMES NO FRAMES | ||||||||
DETAIL: FIELD | CONSTR | METHOD |