Hi
We have the XML Below
<Products>
<Item Code="1">
<PN>Name</PN>
<PC>ProductCode</PC>
<MC>Manufacturer</MC>
......
</Item>
</Products>
I am trying to get the select nodes to work, basically I only want to select
items where MC = 'Manufacturer'.
The code below does not error but does not return any results, i am fearful
that it is returning the child nodes of MC of which there are none.
doc.Load(Server.MapPath(cstrXMLManuf))
Dim doc As New XmlDocument
strXMLRequest = "Products/Item[./MC='Manufacturer']"
For Each n As XmlNode In doc.SelectNodes(String.Format(strXMLRequest))
strBody = n.SelectSingleNode("PC").InnerText
x = n.SelectSingleNode("PN").InnerText
.....
Any help would be much appreicated.
Thanks
B