saxes icon indicating copy to clipboard operation
saxes copied to clipboard

Preserve comments and whitespace - Usage for attranslate

Open fkirc opened this issue 3 years ago • 4 comments

Hi,

I am currently running experiments with saxes and attranslate: https://github.com/fkirc/attranslate attranslate is a new tool for semi-automated app- und website translations. A goal of attranslate is to modify existing XML-files with as little changes as possible. Therefore, one thing that I am curious about is the preservation of XML-comments and whitespace (linebreaks).

It would be nice to have a tree-structure that preserves literally all information when reading an XML-file and then writing the (almost) same XML-file again.

Perhaps you could point me in a direction on how to best achieve whitespace- and comments-preservation?

fkirc avatar Oct 29 '20 23:10 fkirc