Returns the text node with the given index or null if the node with the given index is not a text node.
(int index)
| 172 | with the given index is not a text node. */ |
| 173 | |
| 174 | public String getText(int index) { |
| 175 | return (isText(index)) ? (String) getChild(index) : null; |
| 176 | } |
| 177 | |
| 178 | /** Returns the type of the child at the given index. Possible |
| 179 | types are ELEMENT, TEXT, COMMENT, and PROCESSING_INSTRUCTION */ |