4Suite™ API Documentation

# ► Module Ft.Xml.cDomlettec

cDomlette implementation: a very fast DOM-like library tailored for use in XPath/XSLT
Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/

Functions: CreateParser, GetAllNs, GetNodeCount, NonvalParse, Parse, SeekNss, StartNodeCounting, TestRefCounts, TestTree |  |  |  | Fields: CAPI, Expat_CAPI, FEATURE_PROCESS_XINCLUDES, PARSE_STREAM_STATE, PROPERTY_WHITESPACE_RULES, XPTR_ATTRIBUTE_MATCH, XPTR_ELEMENT_COUNT, XPTR_ELEMENT_MATCH, XPTR_START_STATE, implementation

## Functions

CreateParser([readExtDtd])
CreateParser([readExtDtd]) -> Parser
Return a new XML parser object.
GetAllNs(node)
GetAllNs(node) -> dict
Get all of the namespaces defined in scope of this node.
GetNodeCount()
GetNodeCount() -> int
For regression testing.
NonvalParse(isrc[, readExtDtd[, parseAsEntity]])
nonvalParse(isrc[, readExtDtd[, parseAsEntity]]) -> Document
Parse(isrc[, readExtDtd[, parseAsEntity]])
parse(isrc[, readExtDtd[, parseAsEntity]]) -> Document
SeekNss(node)
SeekNss(node) -> dict
Traverses the tree to seek an approximate set of defined namespaces.
StartNodeCounting()
StartNodeCounting()
For regression testing.
TestRefCounts(tester, document)
TestRefCounts(tester, document)
For regression testing.
TestTree()
TestTree() -> Document
For regression testing.

## Fields

CAPI = <PyCObject object>
C objects to be exported from one extension module to another
C objects are used for communication between extension modules. They
provide a way for an extension module to export a C interface to other
extension modules, so that extension modules can use the Python import
mechanism to link to one another.
Expat_CAPI = <PyCObject object>
C objects to be exported from one extension module to another
C objects are used for communication between extension modules. They
provide a way for an extension module to export a C interface to other
extension modules, so that extension modules can use the Python import
mechanism to link to one another.
FEATURE_PROCESS_XINCLUDES = 'http://4suite.org/sax/features/process-xincludes'
PARSE_STREAM_STATE = 10
PROPERTY_WHITESPACE_RULES = 'http://4suite.org/sax/properties/whitespace-rules'
XPTR_ATTRIBUTE_MATCH = 3
XPTR_ELEMENT_COUNT = 2
XPTR_ELEMENT_MATCH = 1
XPTR_START_STATE = 20
implementation = <DOMImplementation>
The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.