jxon is stripping white space from XML content, especially ones explicitly with the xml:space="preserve" attribute when going from stringToJs.
Example:
<w:r>
<w:t>Reactful</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"> Word</w:t>
</w:r>
"w:r": [
{
"w:t": "Reactful"
},
{
"w:t": {
"$xml:space": "preserve",
"_": "Word"
}
}
]
Notice the space before "Word" being stripped.
jxon is stripping white space from XML content, especially ones explicitly with the
xml:space="preserve"attribute when going from stringToJs.Example:
Notice the space before "Word" being stripped.