Popular Python recipes tagged "meta:requires=xml.etree"http://code.activestate.com/recipes/langs/python/tags/meta:requires=xml.etree/2015-02-05T20:18:08-08:00ActiveState Code RecipesPython AST to XML (Python)
2015-02-05T20:18:08-08:00Robert Stewarthttp://code.activestate.com/recipes/users/4191612/http://code.activestate.com/recipes/579019-python-ast-to-xml/
<p style="color: grey">
Python
recipe 579019
by <a href="/recipes/users/4191612/">Robert Stewart</a>
(<a href="/recipes/tags/ast/">ast</a>, <a href="/recipes/tags/xml/">xml</a>).
</p>
<p>Convert Python ASTs to XML files for reading in other languages.</p>
Python AST to XML (Python)
2013-08-07T00:42:35-07:00Ryan Gonzalezhttp://code.activestate.com/recipes/users/4187447/http://code.activestate.com/recipes/578625-python-ast-to-xml/
<p style="color: grey">
Python
recipe 578625
by <a href="/recipes/users/4187447/">Ryan Gonzalez</a>
(<a href="/recipes/tags/ast/">ast</a>, <a href="/recipes/tags/xml/">xml</a>).
</p>
<p>Converts Python ASTs to XML files for reading in other languages.</p>
Converting XML to Dictionary and back (Python)
2009-01-15T11:42:18-08:00Cory Fabrehttp://code.activestate.com/recipes/users/4158087/http://code.activestate.com/recipes/573463-converting-xml-to-dictionary-and-back/
<p style="color: grey">
Python
recipe 573463
by <a href="/recipes/users/4158087/">Cory Fabre</a>
(<a href="/recipes/tags/xml/">xml</a>).
Revision 7.
</p>
<p>This code converts an XML ElementTree.Element into a dict and back into XML. It attempts to retain as much information as possible during the conversions while still being convenient to access.</p>
ElementTree Wrapper (Python)
2008-09-05T13:20:42-07:00David Pokornyhttp://code.activestate.com/recipes/users/4166601/http://code.activestate.com/recipes/576445-elementtree-wrapper/
<p style="color: grey">
Python
recipe 576445
by <a href="/recipes/users/4166601/">David Pokorny</a>
(<a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/xml/">xml</a>).
Revision 12.
</p>
<p>This class wraps cElementTree.Element to make creating and serializing xml elements easier.</p>
Converts a DOM node object of type element to an ElementTree Element (Python)
2006-10-25T12:09:30-07:00Richard Philipshttp://code.activestate.com/recipes/users/98125/http://code.activestate.com/recipes/498221-converts-a-dom-node-object-of-type-element-to-an-e/
<p style="color: grey">
Python
recipe 498221
by <a href="/recipes/users/98125/">Richard Philips</a>
(<a href="/recipes/tags/xml/">xml</a>).
</p>
<p>DOM2ET is a simple python function which converts a DOM node object of type element to an ElementTree Element.
<br>
Writing it, was a good exercise to understand the workings of ElementTree</p>