michmech / xonomy

A schema-driven XML editor for the web.
MIT License
91 stars 32 forks source link

Xonomy.harvest() adds additional space attribute #40

Open chippyash opened 5 years ago

chippyash commented 5 years ago

The harvest() method is adding additional attributes into the document: I see xml:space='preserve' being added to every element. I can strip it out on receiving at the server but why is there in the first place?

rtosman commented 5 years ago

I agree, this should not be added, it actually breaks the document for the tool I am feeding the output to. I have deleted the line (around line 90) in xonomy.js in my local copy.