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, open
void writeXmlDeclaration(String version, String encoding)
version
- version of the xml documentencoding
- encoding of the xml declarationLowLevelSerializationException
void 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 elementLowLevelSerializationException
void writeStartElement(QName name, QName dataTypeName)
name
- the name of the elementdataTypeName
- the name of its data typeLowLevelSerializationException
void writeAttribute(QName name, String value)
name
- the attribute namevalue
- the attribute valueLowLevelSerializationException
void writeText(String text, TextMode textMode)
text
- the text.textMode
- the text mode (IMPLICIT/CDATA).LowLevelSerializationException
void writeEndElement()
LowLevelSerializationException
Copyright © 2014. All rights reserved.