Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.88k stars 604 forks source link

output xml does not matchs with input xml #486

Open amaryadav344 opened 5 years ago

amaryadav344 commented 5 years ago

i am having issue in builder ouput of builder is not matching with input xml. following is snippet what i have done. i am using preserveChildrenOrder: true, explicitChildren: true while parsing. my input xml is `<?xml version="1.0" encoding="utf-16"?>

and using xml2js builder i got output as "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<#name>form <$$ ID="row1"> <#name>row <$$ Span="12" ID="col1"> <#name>column <$$ HeaderText="Person Qualities" ID="panelPersonDetails"> <#name>panel <$$ ID="row2"> <#name>row <$$ Span="12" ID="col2"> <#name>column <$$ Text="Refresh" ID="btnRefresh"> <#name>button <$$ Text="Save" ID="btnRefresh"> <#name>button