/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
} return -1;
return -1; }
private int getChildIndexOf(XML child) { for (int i = 0; i < this.node.getChildCount(); i++) { if (this.node.getChild(i).isSameNode(child.node)) { return i; } } <extra_id_0> XML insertChildBefore(XML child, Object xml) { if (child == null) { appendChild(xml); } else { XmlNode[] toInsert = getNodesForInsert(xml); int index = getChildIndexOf(child);