overly simplexml inspired by: http://code.activestate.com/recipes/573463-converting-xml-to-dictionary-and-back/ simplejson I simply add the support for attributes and wrap it with loads and dumps function.