Package suds :: Package sax :: Module document :: Class Document
[hide private]
[frames] | no frames]

Class Document

source code

element.Element --+
                  |
                 Document

simple document

Instance Methods [hide private]
 
__init__(self, root=None) source code
 
root(self) source code
basestring
str(self)
Get a string representation of this XML fragment.
source code
basestring
plain(self)
Get a string representation of this XML fragment.
source code
 
__str__(self) source code
 
__unicode__(self) source code

Inherited from element.Element: __eq__, __getitem__, __iter__, __len__, __repr__, __setitem__, addPrefix, ancestors, append, applyns, branch, childAtPath, childrenAtPath, clearPrefix, clone, defaultNamespace, detach, detachChildren, findPrefix, findPrefixes, get, getAttribute, getChild, getChildren, getRoot, getText, hasText, insert, isempty, isnil, match, namespace, normalizePrefixes, nsdeclarations, promotePrefixes, prune, qname, refitPrefixes, remove, rename, replaceChild, resolvePrefix, set, setPrefix, setText, setnil, trim, unset, updatePrefix, walk

Class Methods [hide private]

Inherited from element.Element: buildPath

Class Variables [hide private]
  DECL = '<?xml version="1.0" encoding="UTF-8"?>'

Inherited from element.Element: matcher, specialprefixes

Instance Variables [hide private]

Inherited from element.Element: attributes, children, expns, name, nsprefixes, parent, prefix, text

Method Details [hide private]

__init__(self, root=None)
(Constructor)

source code 
Parameters:
  • name - The element's (tag) name. May cotain a prefix.
  • parent - An optional parent element.
  • ns - An optional namespace
Overrides: element.Element.__init__
(inherited documentation)

str(self)

source code 

Get a string representation of this XML fragment.

Parameters:
  • indent - The indent to be used in formatting the output.
Returns: basestring
A pretty string.
Overrides: element.Element.str
(inherited documentation)

plain(self)

source code 

Get a string representation of this XML fragment.

Returns: basestring
A plain string.
Overrides: element.Element.plain
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: element.Element.__str__

__unicode__(self)

source code 
Overrides: element.Element.__unicode__