1 # lxml http://codespeak.net/lxml/
4 # Define register_namespace function and ElementRoot for proper serialization
8 def register_namespace(prefix, uri):
12 def ElementRoot(*args, **kwargs):
13 kwargs['nsmap'] = NSMAP
14 return etree.Element(*args, **kwargs)
16 __all__ = ('etree', 'register_namespace', 'ElementRoot')