| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected Vector | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| protected StringBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Element | |
| public Object | |
| public int | |
| public Element | |
| public Element | |
| public String | getText(int index)
Returns the text node with the given index or null if the node with the given index is not a text node. |
| public int | |
| public int | |
| public boolean | |
| public void | parse(XmlPullParser parser)
Recursively builds the child elements from the given parser until an end tag or end document is found. |
| public void | |
| public void | |
| public void |
| CDSECT | back to summary |
|---|---|
| public static final int CDSECT | |
| children | back to summary |
|---|---|
| protected Vector<E> children | |
| COMMENT | back to summary |
|---|---|
| public static final int COMMENT | |
| DOCDECL | back to summary |
|---|---|
| public static final int DOCDECL | |
| DOCUMENT | back to summary |
|---|---|
| public static final int DOCUMENT | |
| ELEMENT | back to summary |
|---|---|
| public static final int ELEMENT | |
| ENTITY_REF | back to summary |
|---|---|
| public static final int ENTITY_REF | |
| IGNORABLE_WHITESPACE | back to summary |
|---|---|
| public static final int IGNORABLE_WHITESPACE | |
| PROCESSING_INSTRUCTION | back to summary |
|---|---|
| public static final int PROCESSING_INSTRUCTION | |
| TEXT | back to summary |
|---|---|
| public static final int TEXT | |
| types | back to summary |
|---|---|
| protected StringBuffer types | |
| Node | back to summary |
|---|---|
| public Node() | |
| addChild | back to summary |
|---|---|
| public void addChild(int index, int type, Object child) inserts the given child object of the given type at the given index. | |
| addChild | back to summary |
|---|---|
| public void addChild(int type, Object child) convenience method for addChild (getChildCount (), child) | |
| createElement | back to summary |
|---|---|
| public Element createElement(String namespace, String name) Builds a default element with the given properties. Elements should always be created using this method instead of the constructor in order to enable construction of specialized subclasses by deriving custom Document classes. Note For no namespace, please use Xml.NO_NAMESPACE, null is not a legal value. Currently, null is converted to Xml.NO_NAMESPACE, but future versions may throw an exception. | |
| getChild | back to summary |
|---|---|
| public Object getChild(int index) Returns the child object at the given index. For child elements, an Element object is returned. For all other child types, a String is returned. | |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() Returns the number of child objects | |
| getElement | back to summary |
|---|---|
| public Element getElement(int index) returns the element at the given index. If the node at the given index is a text node, null is returned | |
| getElement | back to summary |
|---|---|
| public Element getElement(String namespace, String name) Returns the element with the given namespace and name. If the element is not found, or more than one matching elements are found, an exception is thrown. | |
| getText | back to summary |
|---|---|
| public String getText(int index) Returns the text node with the given index or null if the node with the given index is not a text node. | |
| getType | back to summary |
|---|---|
| public int getType(int index) Returns the type of the child at the given index. Possible types are ELEMENT, TEXT, COMMENT, and PROCESSING_INSTRUCTION | |
| indexOf | back to summary |
|---|---|
| public int indexOf(String namespace, String name, int startIndex) Performs search for an element with the given namespace and name, starting at the given start index. A null namespace matches any namespace, please use Xml.NO_NAMESPACE for no namespace). returns -1 if no matching element was found. | |
| isText | back to summary |
|---|---|
| public boolean isText(int i) | |
| parse | back to summary |
|---|---|
| public void parse(XmlPullParser parser) throws IOException, XmlPullParserException Recursively builds the child elements from the given parser until an end tag or end document is found. The end tag is not consumed. | |
| removeChild | back to summary |
|---|---|
| public void removeChild(int idx) Removes the child object at the given index | |
| write | back to summary |
|---|---|
| public void write(XmlSerializer writer) throws IOException Writes this node to the given XmlWriter. For node and document, this method is identical to writeChildren, except that the stream is flushed automatically. | |
| writeChildren | back to summary |
|---|---|
| public void writeChildren(XmlSerializer writer) throws IOException Writes the children of this node to the given XmlWriter. | |