Hi,
I've seen this problem before when using c#, I resolved it by using placing a dot or . in front of the '//' in order to ensure that I am in the current context. So you should use this:
foreach(XmlNode item in XmlNodeList)
{
item.selectnodes(".//subro
}
using this method allows you to select the current element without knowing it name. Let me know how this works out.
Enjoy!
P.
Main Topics
Browse All Topics





by: GertonePosted on 2009-11-07 at 23:34:10ID: 25769697
your Xpath should not start with "//"
Try ("subroot")