2007-12-01 02:56:54

Miscellaneous XML-specifc 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

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>