XML2Dict icon indicating copy to clipboard operation
XML2Dict copied to clipboard

convert xml file to python native dict object

Results 7 XML2Dict issues
Sort by recently updated
recently updated
newest added

first thanks for your lib! the following code works well. ```python xml = ''' ''' od = xmltodict.parse(xml, process_namespaces=True) for person in od['students']['student']: print(person['@name']) ``` but it does not work...

Hi. parse error is thrown when first line is blank or is comment the xml content: ``` foo bar baz ``` the error: ``` File "/usr/local/lib/python3.8/dist-packages/encoder.py", line 93, in parse...

When I install `XML2Dict` there are two available modules: `encoder` and `decoder`. As these are generic names, I think they should live inside a `xml2dict` package (like: `from xml2dict.encoder import...

#!/usr/bin/python2 from encoder import XML2Dict if __name__ == '__main__': content = '''\ \ \content1\ \ \ \content2\ \content3\ \ \''' print XML2Dict().parse(content)` and the result is: {'xml': {'tree': [{'item': 'content1'},...

Hi, an example would be very nice. I do not know where "see source test case" refers to. Also, why are there like 5 different versions floating around of xml2dict...

With... ``` Bonjour ``` ..., would it be possible to have : ``` print d['root']['blah']['#myattr'] # foo ``` instead of (now it is like this) : ``` print d['root']['blah']['#blah']['myattr'] #...

This XML, which has 2 children called "many" will cause a problem : ``` foo bar blah element as well ``` Here is the result after `XML2Dict` : ``` {'mydocument':...