Hello I am using XPath with the Xindice api. I have the following XML document:
<Start> <User> <LoginName>abc</LoginName> <Password>qqq</Password> </User> <User> <LoginName>xyz</LoginName> <Password>ttt</Password> </User> </Start> Now I want to get the password for the LoginName = 'xyz'. The XPath I have written is: //User[LoginName='xyz']/Password[text()]" The result I get is: <Password xmlns:src="http://www.dbxml.org/Query" src:col="/db/abc" src:key="140b1bac66655440000000eb895b1ba6">ttt</Password> But what I want is ONLY the password TEXT i.e the value of the password and NOT the complete node information. What Should I do with the Xpath string so that the result only gives: ttt Please help me with this as this has hold me now for quite a long time. Thanx. Arshad
