public class XmlElement extends Object
Constructor and Description |
---|
XmlElement(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(String content)
Set the content of this xml tag.
|
String |
toString()
Return a string representation of this xml element.
|
public XmlElement(String name)
name
- The name of the xml element.public void addChildren(XmlElement element)
element
- The child to add.public void setContent(String content)
content
- Content of the xml element.Copyright © 2016. All rights reserved.