/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
if ( referenceDom instanceof Document) return null;
if ( domParent instanceof Document ) return null;
} int getChildCount() { return this.dom.getChildNodes().getLength(); } XmlNode parent() { Node domParent = dom.getParentNode(); <extra_id_0> if (domParent == null) return null; return createImpl(domParent); } int getChildIndex() { if (this.isAttributeType()) return -1; if (parent() == null) return -1;