*
al**********@hotmail.com wrote in microsoft.public.dotnet.xml:
>I have the followign XML document format.
<Asset>
<App Name="Title" Value"Pigs" />
<App Name="Rating" Value"G" />
</Asset>
I'm trying to figure out how to display the Title's value but being
sorted by the Rating's value.
So far I have.
Displays title: Asset_Metadata/App_Data[@Name = 'Title']/@Value
I've tried many other variations to get this to work with no luck.
I am not sure what you are trying to do (are you using DataSets or some
other form of control that would display XML content based on XPath ex-
pressions?), but you cannot sort in XPath expressions, you have to use
some external means, and your expression does not work because you have
no "Asset_Metadata" element or "App_Data" element in your document, the
names have to match exactly what is in the document.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de ·
http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·
http://www.websitedev.de/