Stan Sainte-Rose wrote:
Hi Guys,
A simple question
I have a xml file
<lg>
<part name="myPart">
<subpart name="ab">ab</subpart>
<subpart name="cd">cd</subpart>
<subpart name="ef">ef</subpart>
</part>
</lg>
I need to read the name value of the part node.
I mean, how can I get : myPart ?
Thanks
Stan
<%
dim xmldoc
set xmldoc=createobject("msxml2.domdocument")
xmldoc.load "filename.xml"
dim oNode
set oNode=nothing
set oNode=xmldoc.selectSingleNode("//part")
if not isnothing(oNode) then
response.write oNode.getAttribute("name")
end if
%>
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.