Ft.Xml.Domlette

Modules

InputSource  os  warnings   
cStringIO  sys     

Classes

class DEFAULT_NONVALIDATING_READER(Ft.Xml.Domlette.DeprecatedReader)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
_parseMethod = (<built-in function nonvalParse>,)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
class DEFAULT_VALIDATING_READER(Ft.Xml.Domlette.DeprecatedReader)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
_parseMethod = (<function valParse>,)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
class DeprecatedReader
__init__(self, resolveEntity=None, processIncludes=1)
fromStream(self, stream, refUri='', ownerDoc=None, stripElements=None)
fromString(self, st, refUri='', ownerDoc=None, stripElements=None)
fromUri(self, uri, baseUri='', ownerDoc=None, stripElements=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class NoExtDtdReaderBase(Ft.Xml.Domlette._Reader)
__init__(self, inputSourceFactory=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class NonvalidatingReaderBase(Ft.Xml.Domlette._Reader)
__init__(self, inputSourceFactory=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class UnicodeType(__builtin__.object)
unicode(string [, encoding[, errors]]) -> object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding and
errors, defining the error handling, to 'strict'.
__add__(...)
__cmp__(...)
__contains__(...)
__getattribute__(...)
__getitem__(...)
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.
__hash__(...)
__len__(...)
__mul__(...)
__repr__(...)
__rmul__(...)
__str__(...)
capitalize(...)
S.capitalize() -> unicode

Return a capitalized version of S, i.e. make the first character
have upper case.
center(...)
S.center(width) -> unicode

Return S centered in a Unicode string of length width. Padding is done
using spaces.
count(...)
S.count(sub[, start[, end]]) -> int

Return the number of occurrences of substring sub in Unicode string
S[start:end]. Optional arguments start and end are
interpreted as in slice notation.
encode(...)
S.encode([encoding[,errors]]) -> string

Return an encoded string version of S. Default encoding is the current
default string encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a ValueError. Other possible values are 'ignore' and 'replace'.
endswith(...)
S.endswith(suffix[, start[, end]]) -> int

Return 1 if S ends with the specified suffix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
expandtabs(...)
S.expandtabs([tabsize]) -> unicode

Return a copy of S where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
find(...)
S.find(sub [,start [,end]]) -> int

Return the lowest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.
index(...)
S.index(sub [,start [,end]]) -> int

Like S.find() but raise ValueError when the substring is not found.
isalnum(...)
S.isalnum() -> int

Return 1 if all characters in S are alphanumeric
and there is at least one character in S, 0 otherwise.
isalpha(...)
S.isalpha() -> int

Return 1 if all characters in S are alphabetic
and there is at least one character in S, 0 otherwise.
isdecimal(...)
S.isdecimal() -> int

Return 1 if there are only decimal characters in S,
0 otherwise.
isdigit(...)
S.isdigit() -> int

Return 1 if there are only digit characters in S,
0 otherwise.
islower(...)
S.islower() -> int

Return 1 if all cased characters in S are lowercase and there is
at least one cased character in S, 0 otherwise.
isnumeric(...)
S.isnumeric() -> int

Return 1 if there are only numeric characters in S,
0 otherwise.
isspace(...)
S.isspace() -> int

Return 1 if there are only whitespace characters in S,
0 otherwise.
istitle(...)
S.istitle() -> int

Return 1 if S is a titlecased string, i.e. upper- and titlecase characters
may only follow uncased characters and lowercase characters only cased
ones. Return 0 otherwise.
isupper(...)
S.isupper() -> int

Return 1 if all cased characters in S are uppercase and there is
at least one cased character in S, 0 otherwise.
join(...)
S.join(sequence) -> unicode

Return a string which is the concatenation of the strings in the
sequence. The separator between elements is S.
ljust(...)
S.ljust(width) -> unicode

Return S left justified in a Unicode string of length width. Padding is
done using spaces.
lower(...)
S.lower() -> unicode

Return a copy of the string S converted to lowercase.
lstrip(...)
S.lstrip([chars]) -> unicode

Return a copy of the string S with leading whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is a str, it will be converted to unicode before stripping
replace(...)
S.replace (old, new[, maxsplit]) -> unicode

Return a copy of S with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.
rfind(...)
S.rfind(sub [,start [,end]]) -> int

Return the highest index in S where substring sub is found,
such that sub is contained within s[start,end]. Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.
rindex(...)
S.rindex(sub [,start [,end]]) -> int

Like S.rfind() but raise ValueError when the substring is not found.
rjust(...)
S.rjust(width) -> unicode

Return S right justified in a Unicode string of length width. Padding is
done using spaces.
rstrip(...)
S.rstrip([chars]) -> unicode

Return a copy of the string S with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is a str, it will be converted to unicode before stripping
split(...)
S.split([sep [,maxsplit]]) -> list of strings

Return a list of the words in S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified, any whitespace string
is a separator.
splitlines(...)
S.splitlines([keepends]]) -> list of strings

Return a list of the lines in S, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
startswith(...)
S.startswith(prefix[, start[, end]]) -> int

Return 1 if S starts with the specified prefix, otherwise return 0. With
optional start, test S beginning at that position. With optional end, stop
comparing S at that position.
strip(...)
S.strip([chars]) -> unicode

Return a copy of the string S with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is a str, it will be converted to unicode before stripping
swapcase(...)
S.swapcase() -> unicode

Return a copy of S with uppercase characters converted to lowercase
and vice versa.
title(...)
S.title() -> unicode

Return a titlecased version of S, i.e. words start with title case
characters, all remaining cased characters have lower case.
translate(...)
S.translate(table) -> unicode

Return a copy of the string S, where all characters have been mapped
through the given translation table, which must be a mapping of
Unicode ordinals to Unicode ordinals or None. Unmapped characters
are left untouched. Characters mapped to None are deleted.
upper(...)
S.upper() -> unicode

Return a copy of S converted to uppercase.
zfill(...)
S.zfill(width) -> unicode

Pad a numeric string x with zeros on the left, to fill a field
of the specified width. The string x is never truncated.

Data and other non-method functions defined here:

__doc__ = "unicode(string [, encoding[, errors]]) -> object...errors, defining the error handling, to 'strict'."
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__new__ = <built-in method __new__ of type object>
class ValidatingReaderBase(Ft.Xml.Domlette._Reader)
__init__(self, inputSourceFactory=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class _Reader
__init__(self, parseMethod, inputSourceFactory=None, args=(), kwargs=None)
parse(self, inputSource)
parseStream(self, stream, uri=None, *v_args, **kw_args)
parseString(self, st, uri=None, *v_args, **kw_args)
parseUri(self, uri, *v_args, **kw_args)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Functions

ConvertDocument(oldDocument, documentURI=u'')
GetAllNs(...)
GetAllNs(node) -> dict

Get all of the namespaces defined in scope of this node.
IsXmlSpace(...)
PrettyPrint(root, stream=<open file '<stdout>', mode 'w' at 0x100fe970>, encoding='UTF-8', asHtml=None)
Print(root, stream=<open file '<stdout>', mode 'w' at 0x100fe970>, encoding='UTF-8', asHtml=None)
SeekNss(...)
SeekNss(node) -> dict

Traverses the tree to seek an approximate set of defined namespaces.
XmlStrLStrip(...)
XmlStrRStrip(...)
XmlStrStrip(...)
nonvalParse(...)
valParse(src, readExtDtd=1)

Data

MINIDOM = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
NoExtDtdReader = <Ft.Xml.Domlette.NoExtDtdReaderBase instance>
The default non-validating, external DTD subset-ignoring reader instance, created from NoExtDtdReaderBase() with no constructor arguments.

Uses the default InputSource factory. If you need to change it,
reassign the inputSourceFactory attribute, or, preferably, just
create a new NoExtDtdReaderBase instance.
NonvalidatingReader = <Ft.Xml.Domlette.NonvalidatingReaderBase instance>
The default non-validating reader instance, created from NonvalidatingReaderBase() with no constructor arguments.

Uses the default InputSource factory. If you need to change it,
reassign the inputSourceFactory attribute, or, preferably, just
create a new NonvalidatingReaderBase instance.
READ_EXTERNAL_DTD = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
ValidatingReader = <Ft.Xml.Domlette.ValidatingReaderBase instance>
The default validating reader instance, created from ValidatingReaderBase() with no constructor arguments.

Uses the default InputSource factory. If you need to change it,
reassign the inputSourceFactory attribute, or, preferably, just
create a new ValidatingReaderBase instance.
__file__ = 'build/lib.linux-ppc-2.2/Ft/Xml/Domlette.py'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__ = 'Ft.Xml.Domlette'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
implementation = <cDOMImplementation>