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
info_dict['Info']={
"@attrs":{"Name": "systemSpec",
"HelpText": "spec version <here>"}
}
I then call:
output_xml = json2xml.dicttoxml.dicttoxml(info_dict, attr_type=False, item_wrap=False, root=False)
Expected Results: <Info Name="systemSpec" HelpText="spec version <here>" />
Actual results: <Info Name="systemSpec" HelpText="spec version <here>" />
If there was some way for us to enable/disable the contents of the @attrs to be escaped, that would be great. Even if it is document-wide, it would be a big help to me. My workaround for now, is to do the escaping when building the dictionary, but it should be handled within the dicttoxml call, not in my code.
The text was updated successfully, but these errors were encountered:
given the following JSON:
I load a dictionary as follows:
I then call:
output_xml = json2xml.dicttoxml.dicttoxml(info_dict, attr_type=False, item_wrap=False, root=False)
Expected Results:
<Info Name="systemSpec" HelpText="spec version <here>" />
Actual results:
<Info Name="systemSpec" HelpText="spec version <here>" />
If there was some way for us to enable/disable the contents of the @attrs to be escaped, that would be great. Even if it is document-wide, it would be a big help to me. My workaround for now, is to do the escaping when building the dictionary, but it should be handled within the dicttoxml call, not in my code.
The text was updated successfully, but these errors were encountered: