skip to navigation
skip to content

exemelopy 0.0.2

exemelopy is a tool for building XML from native Python data-types, similiar to the json/simplejson modules

Downloads ↓

exemelopy aims to be an easy-to-use tool for building an XML document from native Python data-types without any intervention; an XML-version of the json and simplejson modules.

This package depends on lxml to create valid XML output.

USAGE

from exemelopy import XMLEncoder
xml = XMLEncoder({'a': 1, 'b': True, 'spam': 'eggs'}).to_string()
print xml

Which will return the following output:

<?xml version='1.0' encoding='UTF-8'?>
<document>
  <a>1</a>
  <b nodetype="boolean">true</b>
  <spam>eggs</spam>
</document>
 
File Type Py Version Uploaded on Size # downloads
exemelopy-0.0.2.tar.gz (md5) Source 2012-01-31 3KB 178