Is there a way to get a node set from an xml file based on a date attribute. For example, I would like to get the child nodes of an element with a date attribute that has the latest date in it.
example xml
so using this exmaple I would like to retrieve the child elements of the element with a date attribute of "02/01/06", which is the latest date. I have been looking at XPath which looks like it might do the job but haven't found a specific solution to this problem.
example xml
Code:
<data>
<element date="01/01/06">
...child nodes of element
</element>
<element date="02/01/06">
...child nodes of element
</element>
</data>
so using this exmaple I would like to retrieve the child elements of the element with a date attribute of "02/01/06", which is the latest date. I have been looking at XPath which looks like it might do the job but haven't found a specific solution to this problem.