I have this xml:
<Forms>
<Form ID="5472" TemplateID="588" DocType="1" FileName="635073174134006854.pdf" HiulActType="1"/>
<Form ID="5472" TemplateID="2619" DocType="1" FileName="635073174134006854.pdf" HiulActType="1"/>
HiulDocCode="414" TimeStamp="2013-06-20-09_29_13_317421">
</Forms>
I want to get the attribute HiulActType of the form which has attribte TemplateID = 2619.
I tried:
`//Form[@TemplateID='2619']/@HiulActType/text()
Wont work.`
text()function superfluous. Therefor//Form[@TemplateID='2619']/@HiulActTypeshould do (if there is not typo). If not, there is probably a namespace issue with your xml which you are hiding.