Open malikiz opened 4 months ago
@malikiz Are you set trim
options? Your example works well in my computer (xml-js v1.6.11)
What about this example? How do I find out how many spaces are present in the text?
console.log(convert.xml2json('<some> </some>'))
{"elements":[{"type":"element","name":"some"}]}
I found the captureSpacesBetweenElements
property in the sources, but I didn't find it in the documentation. I think this will work for me.
xml-js trims off the spaces in the text following each other
converts to:
OR
converts to: