P
pxpilot
Hi,
I am trying to retrieve title of the parent (post) by the id of the
comment, Why doesn't this work?
XML
<root>
<post>
<title>text</title>
<comment id='100'>text</comment>
<comment id='101'>text</comment>
</post>
</root>
ASP
Dim xmlRoot As XmlNode
Dim postId as Integer
xmlRoot = xmldoc.SelectSingleNode("root")
postId = xmlRoot.SelectSingleNode("root/post/
comment[@id='101']").SelectSingleNode("title").InnerText
Help!
I am trying to retrieve title of the parent (post) by the id of the
comment, Why doesn't this work?
XML
<root>
<post>
<title>text</title>
<comment id='100'>text</comment>
<comment id='101'>text</comment>
</post>
</root>
ASP
Dim xmlRoot As XmlNode
Dim postId as Integer
xmlRoot = xmldoc.SelectSingleNode("root")
postId = xmlRoot.SelectSingleNode("root/post/
comment[@id='101']").SelectSingleNode("title").InnerText
Help!