Dan
10-25-2001, 06:45 PM
I am new to using XML. What is the ASP syntaxt for reading specific attributes
of an XML node? I have no problem reading the rest of an XML file, and know
how to get the information within a node otherwise, but I don't know ho
to read, for example, specific attributes within a parent node.
THis works: objXML.firstchild.nodenameobjXML.firstChild.nextsibling.attribute.xml
Response.Write "<BR><B>3:</b>"& objXML.documentElement.parentnode.text
Response.Write "<BR><B>4:</b>"&_ objXML.documentElement.firstChild.childNodes(2).text
but it ignores the attributes.
Pardon my elementry question, and thanks for your response in advance
Dan
of an XML node? I have no problem reading the rest of an XML file, and know
how to get the information within a node otherwise, but I don't know ho
to read, for example, specific attributes within a parent node.
THis works: objXML.firstchild.nodenameobjXML.firstChild.nextsibling.attribute.xml
Response.Write "<BR><B>3:</b>"& objXML.documentElement.parentnode.text
Response.Write "<BR><B>4:</b>"&_ objXML.documentElement.firstChild.childNodes(2).text
but it ignores the attributes.
Pardon my elementry question, and thanks for your response in advance
Dan