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
Hi, thanks for the great tool !
i have a question though..
having: xml1 = '<root><tag>word</tag></root>'
and xml2 = '<root><tag attr="1">word</tag></root>'
they transform to {"root":{"tag":"word"}}
and {"root":{"tag":{"_attr":"1","__text":"word"},}}
is there a way to tranform all tags to objects with __text property indipendently of presence of attributes?
So to keep consistency on json structure ..
Tested with config options, without success: emptyNodeForm :"object" skipEmptyTextNodesForObj : false keepCData : true enableToStringFunc : false
The text was updated successfully, but these errors were encountered:
Hi, thanks for the great tool !
i have a question though..
having:
xml1 = '<root><tag>word</tag></root>'
and
xml2 = '<root><tag attr="1">word</tag></root>'
they transform to
{"root":{"tag":"word"}}
and
{"root":{"tag":{"_attr":"1","__text":"word"},}}
is there a way to tranform all tags to objects with
__text
property indipendently of presence of attributes?So to keep consistency on json structure ..
Tested with config options, without success:
emptyNodeForm :"object"
skipEmptyTextNodesForObj : false
keepCData : true
enableToStringFunc : false
The text was updated successfully, but these errors were encountered: