I'm trying to map an img to an image field, but I'm having hard time using xpath to dig it out of the feed. So far I have tried:

base query: //item

*/img/@src
//img/@src

Neither works. Here is a sample item from the feed (the img tag is pretty buried) (full feed at www.wowbrary.org/rss.aspx?l=1630)

<item>
<title>Balto II - Wolf Quest</title>
<description>
As if becoming a new father isn't enough, Balto the half-wolf is puzzled by a recurring nightmare involving a treacherous journey, some threatening characters, and plenty of unanswered questions. Chalk it up to parenthood: nightmare turns into reality when the last of his litter, whom no human will adopt, learns the devastating truth about her mixed heritage and embarks on a dangerous <I>Wolf Quest</I>, with papa Balto hot on her trail. The result is 75 minutes of engrossing action, beautifully integrated songs, well-timed humor, polished animation, and a refreshing tendency to surprise rather than shock.
</description>
<link>
http://www.wowbrary.org/l.aspx?l=1630&c=632690&i=9780783248929&u=025192110221&t=Balto+II+-+Wolf+Quest&rss
</link>
<pubDate>11/6/2012 10:23:24 PM</pubDate>
<content:encoded>
<![CDATA[
<table><tr> <td align='right' valign='top' style='padding-bottom: 10px; padding-right: 8px;'><a href='http://www.wowbrary.org/l.aspx?l=1630&c=632690&i=9780783248929&u=025192110221&t=Balto+II+-+Wolf+Quest&rss'><img src='http://images.amazon.com/images/P/B00005TSMM.01._AA_SCMZZZZZZZ_.jpg' border='0'></a></td> <td valign=top style='padding-bottom: 10px;'><a href='http://www.wowbrary.org/l.aspx?l=1630&c=632690&i=9780783248929&u=025192110221&t=Balto+II+-+Wolf+Quest&rss'><B class='NUTITLE'>Balto II - Wolf Quest</B></a> <a href='http://www.amazon.com/gp/product/B00005TSMM?ie=UTF8&tag=interacscienc1630-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B00005TSMM' class='NUBUTTON'>Reviews</a>&nbsp;&nbsp;<a href='http://www.wowbrary.org/l.aspx?l=1630&c=632690&i=9780783248929&u=025192110221&t=Balto+II+-+Wolf+Quest&rss' class='NUBUTTON'>Borrow</a>&nbsp;&nbsp;<a href='http://www.amazon.com/gp/aws/cart/add.html?AssociateTag=interacscienc1630-20&SubscriptionId=1JX7X7270Z74G24Q2T82&Quantity.1=1&add=Buy%20from%20Amazon.com&ASIN.1=B00005TSMM' class='NUBUTTON'>Buy</a><br> <i>From Universal Studios.</i><BR>Amazon rank #20,020<br>&nbsp;<br>As if becoming a new father isn't enough, Balto the half-wolf is puzzled by a recurring nightmare involving a treacherous journey, some threatening characters, and plenty of unanswered questions. Chalk it up to parenthood: nightmare turns into reality when the last of his litter, whom no human will adopt, learns the devastating truth about her mixed heritage and embarks on a dangerous <I>Wolf Quest</I>, with papa Balto hot on her trail. The result is 75 minutes of engrossing action, beautifully integrated songs, well-timed humor, polished animation, and a refreshing tendency to surprise rather than shock.</td></tr></table>
]]>
</content:encoded>
<category>DVDs</category>
</item>

Comments

twistor’s picture

Well, you can't really. The HTML is inside a CDATA tag, so it's treated as regular text.

Closing out old issues. If you're still having this problem, feel free to re-open it.

twistor’s picture

Status: Active » Closed (fixed)