org.mortbay.xml
public static class XmlParser.Node extends AbstractList
Method Summary | |
---|---|
void | add(int i, Object o) |
void | clear() |
Object | get(int i)
Get the ith child node or content.
|
XmlParser.Node | get(String tag)
Get the first child node with the tag.
|
String | getAttribute(String name)
Get an element attribute.
|
String | getAttribute(String name, String dft)
Get an element attribute.
|
XmlParser.Attribute[] | getAttributes()
Get an array of element attributes. |
XmlParser.Node | getParent() |
String | getPath() |
String | getString(String tag, boolean tags, boolean trim)
Get a tag as a string.
|
String | getTag() |
Iterator | iterator(String tag)
Iterator over named child nodes.
|
int | size()
Get the number of children nodes. |
String | toString() |
String | toString(boolean tag)
Convert to a string.
|
String | toString(boolean tag, boolean trim)
Convert to a string.
|
Returns: Node or String.
Parameters: tag
Returns: Node or null.
Returns: attribute or null.
Returns: attribute or null.
Parameters: tag The tag to get tags IF true, tags are included in the value. trim If true, trim the value.
Returns: results of get(tag).toString(tags).
Parameters: tag The tag of the nodes.
Returns: Iterator over all child nodes with the specified tag.
Parameters: tag If false, only content is shown.
Parameters: tag If false, only content is shown.