4Suite™ API Documentation

# ► Module Ft.Xml.cDomlettec

cDomlette implementation: a very fast DOM-like library tailored for use in XPath/XSLT

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

Functions: CreateParser, GetAllNs, NonvalParse, Parse, ParseFragment, SeekNss, TestTree, ValParse |  |  |  | Globals: CAPI, Expat_CAPI, FEATURE_GENERATOR, FEATURE_PROCESS_XINCLUDES, PROPERTY_WHITESPACE_RULES, PROPERTY_YIELD_RESULT, XPTR_ATTRIBUTE_MATCH, XPTR_ELEMENT_COUNT, XPTR_ELEMENT_ID, XPTR_ELEMENT_MATCH, 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.

NonvalParse(isrc[, readExtDtd])
  NonvalParse(isrc[, readExtDtd]) -> Document
Parse(isrc[, readExtDtd])
  Parse(isrc[, readExtDtd]) -> Document
ParseFragment(isrc[, namespaces])
  ParseFragment(isrc[, namespaces]) -> Document
SeekNss(node)
  SeekNss(node) -> dict

      Traverses the tree to seek an approximate set of defined namespaces.

TestTree()
  TestTree() -> Document

      For regression testing.

ValParse(isrc)
  ValParse(isrc) -> Document

## Globals

CAPI = <PyCObject object at 0x80238a710>
  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 at 0x80238a468>
  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_GENERATOR = 'http://4suite.org/sax/features/generator'
FEATURE_PROCESS_XINCLUDES = 'http://4suite.org/sax/features/process-xincludes'
PROPERTY_WHITESPACE_RULES = 'http://4suite.org/sax/properties/whitespace-rules'
PROPERTY_YIELD_RESULT = 'http://4suite.org/sax/properties/yield-result'
XPTR_ATTRIBUTE_MATCH = 3
XPTR_ELEMENT_COUNT = 1
XPTR_ELEMENT_ID = 0
XPTR_ELEMENT_MATCH = 2
implementation = <DOMImplementation at 0x800d3c080>
  The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.