I have the following xml.
How do I grab everything in h4 as in "This is the first part of the equation"
The code below doesn't seems to work.
<var-def name="hdr"></var-def>
<xpath expression="//h4 | //cite"></xpath>
Just "string(h4)". Or "data(//h4)" if you want a sequence.
Thanks for your reply.
Do you mean:
<xpath filecontent"="" expression="string(h4)></p> <p><var name="></xpath>
thanks again.
I found the answer:
<xpath expression="fn:data(//h4)"></xpath>
Thanks again for your lead.
Cheers.
Log in to post a comment.
I have the following xml.
This is the first part of the equation
How do I grab everything in h4 as in "This is the first part of the equation"
The code below doesn't seems to work.
<var-def name="hdr"></var-def>
<xpath expression="//h4 | //cite"></xpath>
Just "string(h4)". Or "data(//h4)" if you want a sequence.
Thanks for your reply.
Do you mean:
<var-def name="hdr"></var-def>
<xpath filecontent"="" expression="string(h4)></p> <p><var name="></xpath>
thanks again.
I found the answer:
<var-def name="hdr"></var-def>
<xpath expression="fn:data(//h4)"></xpath>
Thanks again for your lead.
Cheers.