public class XmlWriter extends Object
Sampe usage:
XmlWriter w = new XmlWriter();
w.start(DOC_TAG, "xmlns", DOC_NAMESPACE);
if (foo != null)
w.start(FOO_TAG).value(foo).end();
w.end();
Constructor and Description |
---|
XmlWriter() |
Modifier and Type | Method and Description |
---|---|
XmlWriter |
end() |
byte[] |
getBytes() |
XmlWriter |
start(String name) |
XmlWriter |
start(String name,
String[] attrs,
String[] values) |
XmlWriter |
start(String name,
String attr,
String value) |
String |
toString() |
XmlWriter |
value(String value) |
public XmlWriter end()
public byte[] getBytes()
Copyright © 2021. All rights reserved.