The DOM method getChildNodes() returns a NodeList of the children of the current Node. Whilst a NodeList is ordered, is the list guaranteed to be in document order? For example, given <a><b/><c/><d/></a> ...
getChildNodes()
NodeList
Node
<a><b/><c/><d/></a>
I'm about to delete certain elements in an XML document, using code like the following:
NodeList nodes = ...; for (int i = 0; i < nodes.getLength(); i++) { Element e = ...
How can I achieve something like this?
NodeList nl = executeJS(documentElement.getElementsByTagName('input'););