Package Modeling :: Module XMLutils
[show private | hide private]
[frames | no frames]

Module Modeling.XMLutils

XMLutils

XMLutils provides standard imports along with error messages when these imports fail.

Import statement should be: 'from XMLutils import *'

The import statements declared are (exhaustively):
from xml.dom.ext.reader import Sax2 from xml.dom.ext.reader.Sax import FromXmlStream from xml import xpath
Other addition to the namespace:
  • Exception XMLImportError

CVS information

$Id: XMLutils.py,v 1.6 2004/07/20 06:21:37 sbigaret Exp $

Classes
XMLCapability Mix-in class ...

Exceptions
XMLImportError Raised when a xml import fails

Function Summary
  autoDetectXMLEncoding(buffer)
buffer -> encoding_name The buffer should be at least 4 bytes long.
  createDOMDocumentObject(param)
  strToUnicode(aString, encoding)
  unicodeToStr(unicode, encoding)

Function Details

autoDetectXMLEncoding(buffer)

buffer -> encoding_name
The buffer should be at least 4 bytes long.
    Returns None if encoding cannot be detected.
    Note that encoding_name might not have an installed
    decoder (e.g. EBCDIC)

Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 http://epydoc.sf.net