开发者

Is there a Groovy XML parser that doesn't ignore the comment node?

开发者 https://www.devze.com 2022-12-24 08:52 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消