/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
} else if ( i < list.length()) {
} else if ( value instanceof XMLList ) {
this.node.addMatchingChildren(rv, XmlNode.Filter.PROCESSING_INSTRUCTION(xmlName)); return rv; } private XmlNode[] getNodesForInsert(Object value) { if (value instanceof XML) { return new XmlNode[] {((XML) value).node}; <extra_id_0> XMLList list = (XMLList) value; XmlNode[] rv = new XmlNode[list.length()]; for (int i = 0; i < list.length(); i++) { rv[i] = list.item(i).node; } return rv;