Open lafar6502 opened 9 years ago
Due to the magnitude of options that change the generation of the JS object, it is difficult to support the generation on the same XML that was fed in. But if you feel like submitting PRs, great!
(That said, xsi:type="[object Object]"
is definitely a bug)
If you parse an xml document into an object and then use xml2js.Builder to convert the resulting object back to xml, the output should be equivalent to the original xml document. This way it would be much easier to modify xml and save it. Currently the resulting XML is just an xml representation of a javascript object that is totally different from the original xml. An example - xml namespace information gets serialized to something like `
`
for original xml being
`
`