public class XmlElement
extends java.lang.Object
| Constructor and Description |
|---|
XmlElement(java.lang.String name)
Create a new xml element with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(XmlElement element)
Add a child to this xml element.
|
void |
setContent(java.lang.String content)
Set the content of this xml tag.
|
java.lang.String |
toString()
Return a string representation of this xml element.
|
public XmlElement(java.lang.String name)
name - The name of the xml element.public void addChildren(XmlElement element)
element - The child to add.public void setContent(java.lang.String content)
content - Content of the xml element.public java.lang.String toString()
toString in class java.lang.Object