![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Simple XPath Query Simple XPath QueryTo: NULL Date: 8/11/2006 11:42:00 AM Hi, I have the following xml and need to perform an XPath query to get the element where the ObjectName attribute is "Photos\Infrastructure\Water". The elements are not sorted. <Data> <DataItem ObjectName="Photos" ObjectType="Folder"></DataItem> <DataItem ObjectName="Photos\Infrastructure" ObjectType="Folder"></DataItem> <DataItem ObjectName="Photos\Infrastructure\WaterShed" ObjectType="Folder"></DataItem> <DataItem ObjectName="Photos\Infrastructure\Water" ObjectType="Folder"></DataItem> <DataItem ObjectName="Photos\Infrastructure\Water\East" ObjectType="Folder"></DataItem> </Data> I tried using the starts-with function such as: starts-with("@ObjectName","\Photos\Infrastructure\Water\") but it returns the element where ObjectName is "Photos\Infrastructure\WaterShed" instead. Can anyone provide insight on how to return the Photos\Infrastructure\Water element? Thanks, RS | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
