Package suds :: Package sax
[hide private]
[frames] | no frames]

Package sax

source code

The sax module contains a collection of classes that provide a (D)ocument (O)bject (M)odel representation of an XML document. The goal is to provide an easy, intuative interface for managing XML documents. Although, the term, DOM, is used above, this model is far better.

XML namespaces in suds are represented using a (2) element tuple containing the prefix and the URI. Eg: ('tns', 'http://myns')

Submodules [hide private]

Classes [hide private]
  Namespace
The namespace class represents XML namespaces.
Functions [hide private]
(prefix, name)
splitPrefix(name)
Split the name into a tuple (prefix, name).
source code
Variables [hide private]
Encoder encoder = Encoder()
A pluggable XML special character processor used to encode/decode strings.
  __package__ = 'suds.sax'
Function Details [hide private]

splitPrefix(name)

source code 

Split the name into a tuple (prefix, name). The first element in the tuple is None when the name does't have a prefix.

Parameters:
  • name (basestring) - A node name containing an optional prefix.
Returns: (prefix, name)
A tuple containing the (2) parts of name