MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / getRootElement

Method getRootElement

src/org/kxml2/kdom/Document.java:108–113  ·  view source on GitHub ↗

returns the root element of this document.

()

Source from the content-addressed store, hash-verified

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,

Callers 2

loadBookmarksMethod · 0.95

Calls 1

getChildMethod · 0.80

Tested by

no test coverage detected