Class XMLElement
java.lang.Object
|
+----XMLNode
|
+----XMLElement
- public class XMLElement
- extends XMLNode
Class that holds an element node in the XML tree. It has a
dictionary of attributes and values, and a list of children.
The children can be other elements, processing instructions,
comments or text nodes.
-
children
-
-
XMLElement(String)
-
-
addAttribute(String, String)
-
-
addChild(XMLNode)
-
-
dumpTree(PrintStream)
-
-
getChildren()
-
-
getName()
-
-
setEmpty()
-
children
protected Vector children
XMLElement
public XMLElement(String name)
addChild
public void addChild(XMLNode x)
addAttribute
public void addAttribute(String name,
String val)
getChildren
public Vector getChildren()
getName
public String getName()
setEmpty
public void setEmpty()
dumpTree
public void dumpTree(PrintStream out)
- Overrides:
- dumpTree in class XMLNode