Link to home
Start Free TrialLog in
Avatar of Garbonzo_Horowitz
Garbonzo_HorowitzFlag for United States of America

asked on

How to get the text of an XPath node

Hello. I'm having an issue returning an XPath value. The statement runs and I see the 4 nodes returned but when I try to get the "Text()" value for them. Nothing returns. Can you please let me know why the syntax is failing?  

This works:  
/w:document/w:body[1]/w:tbl[1]/w:tr[1]/w:tc/*[1]

This does not work:
/w:document/w:body[1]/w:tbl[1]/w:tr[1]/w:tc/*[1][attribute::text()]
nor this
/w:document/w:body[1]/w:tbl[1]/w:tr[1]/w:tc/*[1].text()
nor this
/w:document/w:body[1]/w:tbl[1]/w:tr[1]/w:tc/*[1].HtmlText()
TheDocumentXML.txt
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial