Groovy XmlSlurper
Posted
by Langali
on Stack Overflow
See other posts from Stack Overflow
or by Langali
Published on 2010-05-09T20:31:52Z
Indexed on
2010/05/09
21:18 UTC
Read the original article
Hit count: 562
groovy
<div id="videos">
<div id="video">
<embedcode>....</embedcode>
</div>
</div>
I need to grab the video embed code, and not just the text inside a XMl tag. Any idea how can I grab the snippet of XML using XmlSlurper?
I need the whole line: <embedcode>....</embedcode>
© Stack Overflow or respective owner