returns the root element of this document.
()
| 106 | /** returns the root element of this document. */ |
| 107 | |
| 108 | public Element getRootElement() { |
| 109 | if (rootIndex == -1) |
| 110 | throw new RuntimeException("Document has no root element!"); |
| 111 | |
| 112 | return (Element) getChild(rootIndex); |
| 113 | } |
| 114 | |
| 115 | |
| 116 | /** Writes this node to the given XmlWriter. For node and document, |
no test coverage detected