2006-10-20 11:52:38

Miscellaneous XML-specific string functions

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

IsNCName(s) -> bool

Returns True if the given string matches the NCName production as defined by the W3C's Namespaces in XML Recommendation.
s

IsName(s) -> bool

Returns True if the given string matches the Name production as defined by the W3C's XML 1.0 Recommendation.
s

IsNmtoken(s) -> bool

Returns True if the given string matches the Nmtoken production as defined by the W3C's XML 1.0 Recommendation.
s

IsQName(s) -> bool

Returns True if the given string matches the QName production as defined by the W3C's Namespaces in XML Recommendation.
s

IsXml(S) -> bool

Return True if the given bytes represent a (possibly) well-formed XML document. (see http://www.w3.org/TR/REC-xml/#sec-guessing).
S

IsXmlSpace(S) -> bool

Return True if there are only whitespace characters in S, False otherwise.
S

SplitQName(qualifiedName) -> (prefix, localName)

where 'qualifiedName' is a QName according to XML Namespaces 1.0 <http://www.w3.org/TR/REC-xml-names>. returns the name parts according to the spec.
qualifiedName

XmlStrLStrip(S) -> unicode

Return a copy of the string S with leading whitespace removed.
S

XmlStrRStrip(S) -> unicode

Return a copy of the string S with trailing whitespace removed.
S

XmlStrStrip(S) -> unicode

Return a copy of the string S with leading and trailing whitespace removed.
S
<PyCObject object at 0xb7b2b560>