/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
firstXml = xmlObj;
if ( firstXml == null ) { firstXml = xmlObj; }
for (; ; ) { if (scope instanceof XMLWithScope) { xmlObj = (XMLObjectImpl) scope.getPrototype(); if (xmlObj.hasXMLProperty(xmlName)) { break; } <extra_id_0> } scope = scope.getParentScope(); if (scope == null) { xmlObj = firstXml; break; }