'<root at="b"><child></child></root>') xml_to_data(
Loaders
…todo…
ElementTree
To load from an ElementTree
xml
To load from xml
xml_to_data
xml_to_data (xml:str)
Takes a xml string, and loads it into a Data instance
xml_file_to_data
xml_file_to_data (path:str)
dict
To load from a dict
dict_to_data
dict_to_data (arg:dict)
Takes a dict, and loads it into a Data instance
"name": "root", "children": [{"name": "child", "color": "blue"}]}) dict_to_data({
json
To load from json
json_to_data
json_to_data (arg:str)
Takes a json string, and loads it into a Data instance
'{"name": "root", "children": [{"name": "child"}]}') json_to_data(