If you want to modify XML from Java code, use XercesJ DOM. You may have
to adjust the settings to ensure all whitespace is preserved, but it
shouldn't be a problem.
(There is a round-tripping issue with all solutions around entity
references. Simplest workaround: don't use them in your XML source.)
Bob
Martin Olsson wrote:
Hi,
I need to implement a program that modifies an XML file, this file will
frequently also be edited by hand in a plain text editor. Of course, it's
important that the program does not remove or undo any of the hand-edited
changes (xml data, comments or whitespace). I have previously used Xerces
for reading XML.
What library can you recommend for editing/writing XML data? Can Xerces or
some addon do this? Is there another Apache project for this?
I would prefer an open source solution, if possible. Java is the language
of choice.
rgrds,
martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]