Re: [Simple-support] read and write comments from an existing xml document
Brought to you by:
niallg
|
From: Aaron D. <di...@he...> - 2011-04-14 14:18:40
|
Zitat von Martin Schwartzman <msc...@it...>: > I've searched the mailing list but I have not found a way to read and > write comments from an xml document. I basically just want to be able to > read an xml document and preserve any comments that are in the document > along with the elements. Is there a way to do it and if so is the a > comprehensive example? Note that XML isn't designed to preserve comments and white space. It's a markup language, not a round tripping language. I've written an XML parser that preserves everything. See http://code.google.com/p/decentxml/ But it doesn't support mapping to Java POJOs. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://www.pdark.de/ http://blog.pdark.de/ |