Xpath String-Value predicate

Joined
May 8, 2009
Messages
1
Reaction score
0
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top