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
Constructor and Description |
---|
XmlElement(CharSequence name)
Deprecated.
|
XmlElement(CharSequence name,
XmlModel parent)
Deprecated.
|
addCDATA, addComment, addElement, addElement, addChild, addRawText, addText, close, getAttribs, getAttributes, getChildren, getName, setAttribute, toString, toWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setAttrib
public XmlElement(CharSequence name)
public XmlElement(CharSequence name, XmlModel parent)
Copyright 2019-2022, Pavel Ponec