Folks,
I've had some success with my XPath forays, mostly thanks to people on this site. I thought I'd try my luck again!
I need to access the value of the WIDTH attribute of the TRIM BOX in -
Code:
<od:PageBoxInfo ID="Link6">
<Page>
<PageBox BoxType="MediaBox" Width="610" Height="1280"/>
<PageBox BoxType="CropBox" Width="592" Height="1280"/>
<PageBox BoxType="BleedBox" Width="593" Height="1280"/>
<PageBox BoxType="ArtBox" Width="594" Height="1280"/>
<PageBox BoxType="TrimBox" Width="595" Height="1280"/>
</Page>
</od:PageBoxInfo>
...and I have tried to do this using the XPath -
//od:PageBoxInfo/Page/PageBox[@BoxType="TrimBox"]/@Width
but to no avail. Does this XPath look correct?
I was thinking that the result may have been returned to me as a string rather than an integer, but I'm not sure. I'm no XPath master!
Any ideas?
Thanks in advance
HP