You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.
When I have this XML <foo attr=\"value\">bar<subnode val=\"test\" >glass</subnode></foo>
I would expect this JSON
{"foo":{"attr":"value","$t":"bar","subnode":{"val":"test","$t":"glass"}}} but I get:
{"foo":{"attr":"value","subnode":{"val":"test","$t":"glass"}}}
Losing the "$t":"bar"
I found in the code of xml2json.js -> endElement(name) ... that you delete the textNodeName element of the currentObject. Why would you do this? This removes all text elements but the one on the deepest child node.
Is this by design?
The text was updated successfully, but these errors were encountered:
When I have this XML
<foo attr=\"value\">bar<subnode val=\"test\" >glass</subnode></foo>
I would expect this JSON
Losing the "$t":"bar"
I found in the code of xml2json.js -> endElement(name) ... that you delete the textNodeName element of the currentObject. Why would you do this? This removes all text elements but the one on the deepest child node.
Is this by design?
The text was updated successfully, but these errors were encountered: