Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Xpath String-Value predicate (http://www.velocityreviews.com/forums/t683166-xpath-string-value-predicate.html)

thoraddict 05-08-2009 04:51 PM

Xpath String-Value predicate
 
Hi,
I am stuck trying to get the following to work.

/image_list/image[image_purpose='Thumbnail']/image_url

I don't get any errors that I can find, just doesn't pull the info.

The xml looks like this.

<image>
<image_url><![CDATA[/room/thumb.jpg]]></image_url>
<image_caption><![CDATA[Whistler Hotel]]</image_caption>
<image_purpose><![CDATA[Thumbnail]]></image_purpose>
</image>

If I put image[2] it works, but that's not what I want.

Any ideas? I don't think I need the CDATA....

Thanks,


All times are GMT. The time now is 02:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.