Each instance of the Element
class may contain elements inside it (inner elements) named here children.
To access them you may call:
Element getChild(String name)
,Element getChild(String name, String child_xmlns)
,Element getChildStaticStr(String name)
,Element getChildStaticStr(String name, String child_xmlns)
- Returns a child element or
null
List<Element> getChildren()
- Returns a list of children elements or
null
Note
Each of this methods may return a null if there is no child matching requirements.
To add elements as a children of the element call void addChild(XMLNodeIfc child)
or void addChildren(List<Element> children)
.
To remove elements, you need to retrieve instance of the Element
which you want to removed and call boolean removeChild(Element child)
.