public interface XmlLowLevelSerializer extends LowLevelSerializer
| Modifier and Type | Method and Description |
|---|---|
void |
writeAttribute(QName name,
String value)
Writes an attribute with the given name and value.
|
void |
writeDocTypeDeclaration(QName rootElementName,
String publicId,
String systemId)
Writes the DOCTYPE declaration.
|
void |
writeEndElement()
Writes the end tag of the current element.
|
void |
writeStartElement(QName name)
Writes the start tag of an element.
|
void |
writeStartElement(QName name,
QName dataTypeName)
Writes the start tag of an element.
|
void |
writeText(String text,
TextMode textMode)
Writes the given text as the content of the current element if the text is not empty.
|
void |
writeXmlDeclaration(String version,
String encoding)
Writes the XML Declaration.
|
close, flush, openvoid writeXmlDeclaration(String version, String encoding)
version - version of the xml documentencoding - encoding of the xml declarationLowLevelSerializationExceptionvoid writeDocTypeDeclaration(QName rootElementName, String publicId, String systemId)
rootElementName - the name of the root element.publicId - the public id - may be nullsystemId - the system idvoid writeStartElement(QName name)
name - the name of the elementLowLevelSerializationExceptionvoid writeStartElement(QName name, QName dataTypeName)
name - the name of the elementdataTypeName - the name of its data typeLowLevelSerializationExceptionvoid writeAttribute(QName name, String value)
name - the attribute namevalue - the attribute valueLowLevelSerializationExceptionvoid writeText(String text, TextMode textMode)
text - the text.textMode - the text mode (IMPLICIT/CDATA).LowLevelSerializationExceptionvoid writeEndElement()
LowLevelSerializationExceptionCopyright © 2014. All rights reserved.