Package eoxserver :: Package core :: Package util :: Module xmltools
[hide private]
[frames] | no frames]

Module xmltools

source code

This module contains utils for XML encoding, decoding and printing.
Classes [hide private]
  XMLEncoder
This is the base class for XML encoders.
  XPath
This class represents an XPath expression.
  XMLNode
  XMLSimpleNode
  XMLStringNode
  XMLIntNode
  XMLFloatNode
  XMLIntListNode
  XMLFloatListNode
  XMLNodeProperty
  XMLTagName
  XMLLocalName
  XMLPrefix
  XMLDOMNode
  XMLComplexNode
  XMLNodeDict
Functions [hide private]
 
_getChildNamespaces(node) source code
 
DOMtoXML(xmldom, nsmap=None)
Takes a DOM document as input and returns the corresponding XML (no pretty printing) encoded as ISO-8859-1 string.
source code
 
DOMElementToXML(element, nsmap=None)
This function takes a DOM element as input and returns an XML document with the input element as root encoded as ISO-8859-1 string.
source code
Variables [hide private]
  logger = logging.getLogger(__name__)
  __package__ = 'eoxserver.core.util'
Function Details [hide private]

DOMtoXML(xmldom, nsmap=None)

source code 
Takes a DOM document as input and returns the corresponding XML (no pretty printing) encoded as ISO-8859-1 string. This function is namespace aware. The optional ``nsmap`` parameter may contain a dictionary of XML prefixes and namespace URIs; these namespace definitions will be appended to the document root elements list of xmlns attributes. In case it is missing, the namespaces used throughout the document are automatically determined and the corresponding xmlns attributes will be created.

DOMElementToXML(element, nsmap=None)

source code 
This function takes a DOM element as input and returns an XML document with the input element as root encoded as ISO-8859-1 string. This function is namespace aware. The optional ``nsmap`` parameter may contain a dictionary of XML prefixes and namespace URIs; these namespace definitions will be appended to the document root elements list of xmlns attributes. In case it is missing, the namespaces used throughout the document are automatically determined and the corresponding xmlns attributes will be created.