View Single Post
Old 09-05-2012, 06:36 AM   PM User | #1
hermanpeckel
New to the CF scene

 
Join Date: Aug 2012
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
hermanpeckel is an unknown quantity at this point
Variable Referencing via XPath

Folks,

After kicking an absolute goal on this forum last time (or having that goal kicked for me) I was hoping to get some more help with my latest XPath conundrum.

I need to reference the values of an XML variable in this code via an XPath -

Code:
<od:PageBoxInfo ID="Link6">
<Page>
<PageBox BoxType="MediaBox" Width="594.999" Height="1280"/>
<PageBox BoxType="CropBox" Width="594.999" Height="1280"/>
<PageBox BoxType="BleedBox" Width="594.999" Height="1280"/>
<PageBox BoxType="ArtBox" Width="594.999" Height="1280"/>
<PageBox BoxType="TrimBox" Width="594.999" Height="1280"/>
</Page>
</od:PageBoxInfo>
I'm trying to get the width of the MediaBox. I'm assuming it will be something like -

//od:PageBoxInfo/Page/PageBox/BoxType='MediaBox'/Width

...but, as I've mentioned before, I can barely spell XPath. Any help much appreciated!!

Thanks in advance
HP
hermanpeckel is offline   Reply With Quote