开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜