XmlSlurper NodeChild that represents a body tag?

Posted by Misha Koshelev on Stack Overflow See other posts from Stack Overflow or by Misha Koshelev
Published on 2010-06-11T17:39:48Z Indexed on 2010/06/11 17:43 UTC
Read the original article Hit count: 346

Filed under:
|

Dear All:

I would like to get a Groovy NodeChild that represents, e.g., a body tag.

However, if I do

html=new XmlSlurper().parseText(blah)

I get html which is a NodeChild.

However html.body is a NodeChildren tag, and I can't seem to get a NodeChild.

Much help appreciated!

Thank you Misha

© Stack Overflow or respective owner

Related posts about groovy

Related posts about xmlslurper