public interface XmlSerializerWrapper extends XmlSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_NAMESPACE |
static String |
XSD_NS |
static String |
XSI_NS |
| Modifier and Type | Method and Description |
|---|---|
XmlSerializerWrapper |
attribute(String name,
String value)
Write an attribute without namespace.
|
XmlSerializerWrapper |
element(String elementName,
String elementText)
Write simple text element in current namespace
|
XmlSerializerWrapper |
element(String namespace,
String elementName,
String elementText)
Writes a simple element such as <username>johndoe</username>.
|
XmlSerializerWrapper |
endTag(String name)
Write end tag in current namespace with name given as argument.
|
String |
escapeAttributeValue(String text) |
String |
escapeText(String text) |
void |
event(XmlPullParser pp)
Serializer current event form pull parser
|
void |
fragment(String xmlFragment)
Write XML fragment using currently set namespace prefixes
|
String |
getCurrentNamespaceForElements()
Get namespace that is used as default when no namespace parameter is used for
startTag(), endTag() and element()
|
String |
setCurrentNamespaceForElements(String value)
Set namespace to use in startTag(), endTag() and element()
when methods called are those without namespace parameter.
|
XmlSerializerWrapper |
startTag(String name)
Write start tag in current namespace with name given as argument.
|
attribute, cdsect, comment, docdecl, endDocument, endTag, entityRef, flush, getDepth, getFeature, getName, getNamespace, getPrefix, getProperty, ignorableWhitespace, processingInstruction, setFeature, setOutput, setOutput, setPrefix, setProperty, startDocument, startTag, text, textstatic final String NO_NAMESPACE
static final String XSI_NS
static final String XSD_NS
String getCurrentNamespaceForElements()
String setCurrentNamespaceForElements(String value)
XmlSerializerWrapper attribute(String name, String value) throws IOException, IllegalArgumentException, IllegalStateException
XmlSerializerWrapper startTag(String name) throws IOException, IllegalArgumentException, IllegalStateException
XmlSerializerWrapper endTag(String name) throws IOException, IllegalArgumentException, IllegalStateException
XmlSerializerWrapper element(String namespace, String elementName, String elementText) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionXmlSerializerWrapper element(String elementName, String elementText) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionvoid fragment(String xmlFragment) throws IOException, IllegalArgumentException, IllegalStateException, XmlPullParserException
void event(XmlPullParser pp) throws IOException, IllegalArgumentException, IllegalStateException, XmlPullParserException
String escapeText(String text) throws IllegalArgumentException
IllegalArgumentExceptionString escapeAttributeValue(String text) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2013. All Rights Reserved.