Matching values in XPATH

  • Thread starter Thread starter Jesper Denmark
  • Start date Start date
J

Jesper Denmark

I use Xpath to retrieve nodes in a document like :

doc.SelectSingleNode("/properties/layer[@width='0.2']");

- however this is not very robust as I'm only query on
text. What if width='0.200' instead of width='0.2', then
the above Xpath line wont match the node in question. Is
there a way to query for the value instead of the text?

Best regards
Jesper.
 
Please post xml related questions to microsoft.public.dotnet.xml, I'm sure
you will find better help there.
Willy.
 
Back
Top