returns the element at the given index. If the node at the given index is a text node, null is returned
(int index)
| 107 | given index is a text node, null is returned */ |
| 108 | |
| 109 | public Element getElement(int index) { |
| 110 | Object child = getChild(index); |
| 111 | return (child instanceof Element) ? (Element) child : null; |
| 112 | } |
| 113 | |
| 114 | /** Returns the element with the given namespace and name. If the |
| 115 | element is not found, or more than one matching elements are |