I am sorry. That only works if the element has no children, or contents
of children (Department, MapNo, Amount) are empty. When you specify:
[Account='1000.10'], it mean that the concatenation of the text of
"Account" and all of its children's text is '1000.10'.
In your case, to make it work, you should select the first text node
that is child of "Account", and compare it to '1000.10'. Something like
this:
/Chart[normalize-space(Account/text()[1])='10']
Regards,
Thi
viditmittal@gmail.com - 25 Nov 2005 05:07 GMT
try the following XPath expression to get the result
.selectSingleNode("/Chart/Account[.='1000.10']")
i hope this helps
regards
VIDIT