<CD ref="CCD142">
Having loaded the XML file, the following code then assigns the attributes of this child node to an NamedNodeMap object, and iterates through them displaying them on the page.
Code (VBScript): Set objXMLDoc = CreateObject("Microsoft.XMLDOM") objXMLDoc.async = False objXMLDoc.load("CDs.xml") Dim objNamedNodeMap, intAtt, strAttName Set objNamedNodeMap = objXMLDoc.documentElement.firstChild.attributes For Each intAtt in objNamedNodeMap document.write(intAtt.name & "<br>") Next
Output: ref