Is there a Groovy XML parser that doesn't ignore the comment node?
I'm using the XmlParser to insert nodes 开发者_开发问答into an existing XML. Unfortunately this parser ignores the comment nodes which I would like to keep in place. Is there another parser I can use?
Thanks.
Try using StreamingMarkupBuilder. You can extract comments but not CDATA.
精彩评论