Hi,

I have no problem using myNode.attributes[0].nodeName with an embedded XML. For instance:

<xml id="myXML">
<Term name="PC" weight="100"/>
</xml>

<script language="javascript">
<!--
var xmlDocument = document.getElementById("myXML").XMLDocument
printNode(xmlDocument)

function printNode(myNode){
document.write(myNode.attributes[0].nodeName
}


works like a charm. But as soon as I use:

<xml id="myXml" src="myXml.xml"></xml>

I get an "object required" error on:

myNode.attributes[0].nodeName

Any ideas? I have no problem using: myNode.attributes.length with the external file.