XmlModel rather.@Deprecated public class XmlElement extends XmlModel
XmlElement root = new XmlElement("root");
root.addElement("childA")
.setAttrib("x", 1)
.setAttrib("y", 2);
root.addElement("childB")
.setAttrib("x", 3)
.setAttrib("y", 4)
.addText("A text message <&\">");
root.addRawText("\n<rawXml/>\n");
root.addCDATA("A character data <&\">");
String result = root.toString();
HtmlElement,
Serialized FormXmlModel.RawEnvelopeattributes, children, nameHIDDEN_NAME| Constructor and Description |
|---|
XmlElement(String name)
Deprecated.
|
XmlElement(String name,
XmlModel parent)
Deprecated.
|
addCDATA, addComment, addElement, addElement, addChild, addRawText, addText, addTextTemplated, close, getAttribs, getAttributes, getChildren, getName, setAttribute, toString, toWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetAttribCopyright 2019-2022, Pavel Ponec