Unable to retrieve results for the following XPath Query:

theactor1977

New Member
I have the following XML syntax:\[code\]<Properties> <Property> <Name>Author</Name> <Type>Object</Type> <Value>somevalue</Value> </Property> <Property> <Name>Title</Name> <Type>String</Type> <Value>Word files</Value> </Property> <Property> <Name>Path</Name> <Type>String</Type> <Value>/path/subfolder/directory/somevalue.doc</Value> </Property> <Property> <Name>Rank</Name> <Type>Int64</Type> <Value>804</Value> </Property> <Property> <Name>Size</Name> <Type>Int64</Type> <Value>0</Value> </Property></Properties>\[/code\]Basically thats 1 such property set and I have about 10 more. I need to get access to the text in the Value node and in relative to the text() contained in the Name tag [Author,Title,Path,Rank,Size]. Essentially my XPathQueries are return a set of tag texts.My approach to it is like this:XPathQuery("//Property/Name//*text()='Author']/Type/Value");But that doesn't work man! And now I am 20 minutes away from tearing my hair apart :(For the record, if it matters, I am using java Xpath libraries coz I am programming in Java.
 
Back
Top