Python library for editing XML preserving formatting and comments -


i need make few changes existing xml files, while preserving formatting , comments - except minor changes should untouched. i've tried xml.etree , lxml.etree no success.

the xml generated ide, editor lacking in functionality, have make few manual changes. want keep formatting diffs pretty , not polluting history.

with multitude of python xml libraries thought i'd ask here if has done similar.

how many , kind of changes need make? sounds me may better served using standalone xml editor (just google them, there lots). frankly, i'm kind of surprised ide doesn't have adequate search-and-replace needs. (most of ones i've seen have regex facilities this.) if need write program make xml changes, , don't want mess formatting , comments, best bet may open xml regular text file in python, , use regular expression library (import re) search-and-replace.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -