Garbonzo_Horowitz
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:tb l[1]/w:tr[ 1]/w:tc/*[ 1]
This does not work:
/w:document/w:body[1]/w:tb l[1]/w:tr[ 1]/w:tc/*[ 1][attribu te::text() ]
nor this
/w:document/w:body[1]/w:tb l[1]/w:tr[ 1]/w:tc/*[ 1].text()
nor this
/w:document/w:body[1]/w:tb l[1]/w:tr[ 1]/w:tc/*[ 1].HtmlTex t()
TheDocumentXML.txt
This works:
/w:document/w:body[1]/w:tb
This does not work:
/w:document/w:body[1]/w:tb
nor this
/w:document/w:body[1]/w:tb
nor this
/w:document/w:body[1]/w:tb
TheDocumentXML.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.