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.RawEnvelope
attributes, children, name
HIDDEN_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, toWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setAttrib
Copyright 2019-2022, Pavel Ponec