all groups > dotnet xml > june 2005 >
You're in the

dotnet xml

group:

How do I write an XPath expression to retrieve data for this xml?


How do I write an XPath expression to retrieve data for this xml? steve bull
6/13/2005 4:31:12 PM
dotnet xml:

How do I write an XPath expression to read the color range node from the following xml file. I.e. where attribute = "All
Red Colors"? The final file will have many more nodes in it.

I realize this is probably very easy but the examples I have seen only indicate how to get a match for red, blueMax etc.

Thanks,

Steve



<?xml version="1.0" encoding="utf-8" ?>
<swatches>
<swatch id="GeneralRgb">
<colors>
<colorRange rangeType="rgb"
red="128"
green="0"
blue="0"
redMin="0"
greenMin="0"
blueMin="0"
redMax="255"
greenMax="0"
blueMax="0">
All Red Colors
</colorRange>
</colors>
</swatch>
Re: How do I write an XPath expression to retrieve data for this xml? Claus Konrad
6/14/2005 12:56:28 AM
Have a look here: http://www.w3schools.com/xpath/xpath_syntax.asp





[quoted text, click to view]

Re: How do I write an XPath expression to retrieve data for this xml? steve bull
6/14/2005 10:14:38 AM

thanks. got it now.

Steve


[quoted text, click to view]
AddThis Social Bookmark Button