XPath

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to get a list of nodes using the XMLNodeList.SelectNodes( xpath ) method. I want a list of criteria nodes where the attribute notModifiable is false or doesn't exist. Anyone know how to do this? So far I can grab the nodes with notModifiable equal false but I don't know how to do the second bit. My statement is like below

XmlNodeList criteriaNodeList = groupNode.SelectNodes("criteria[attribute::notmodifiable != \"true\"]");

I need to append something to this XPath statement to get the nodes which do not contain the attribute notModifiable
 
Back
Top