Skip to content

zachwill/relaxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

relaxml

Converting XML to a dictionary should be easy -- and fast.

Most of the current XML to dict projects are either unmaintained, slow, or not well-tested. This shouldn't be the case.

Installation

You can either clone this repo or use pip.

pip install relaxml

Usage

>>> from relaxml import xml

>>> some_xml = open('file.xml')
>>> xml(some_xml)
{'ohai': {'xml': 'data'}}

>>> import requests as req
>>> content = req.get('http://lots.ofxml.org').text
>>> xml(content)
{'ohai': {'xml': 'data'}}

About

Converting XML should be easy -- and fast.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages