ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
Front Matter
Contents
1. Introduction
2. Built-In Objects
3. Python Runtime Services
4. String Services
5. Miscellaneous Services
6. Generic Operating System Services
7. Optional Operating System Services
8. Unix Specific Services
9. The Python Debugger
10. The Python Profiler
11. Internet Protocols and Support
12. Internet Data Handling
13. Structured Markup Processing Tools
13.1 HTMLParser -- Simple HTML and XHTML parser
13.2 sgmllib -- Simple SGML parser
13.3 htmllib -- A parser for HTML documents
13.4 htmlentitydefs -- Definitions of HTML general entities
13.5 xml.parsers.expat -- Fast XML parsing using Expat
13.6 xml.dom -- The Document Object Model API
13.7 xml.dom.minidom -- Lightweight DOM implementation
13.8 xml.dom.pulldom -- Support for building partial DOM trees
13.9 xml.sax -- Support for SAX2 parsers
13.10 xml.sax.handler -- Base classes for SAX handlers
13.11 xml.sax.saxutils -- SAX Utilities
13.12 xml.sax.xmlreader -- Interface for XML parsers
13.13 xmllib -- A parser for XML documents
14. Multimedia Services
15. Cryptographic Services
16. Graphical User Interfaces with Tk
17. Restricted Execution
18. Python Language Services
19. Python compiler package
20. SGI IRIX Specific Services
21. SunOS Specific Services
22. MS Windows Specific Services
A. Undocumented Modules
B. Reporting Bugs
C. History and License
Module Index
Index
About this document ...

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference
ActivePython 2.4 documentation


13. Structured Markup Processing Tools

Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces for working with the Extensible Markup Language (XML).

It is important to note that modules in the xml package require that there be at least one SAX-compliant XML parser available. Starting with Python 2.3, the Expat parser is included with Python, so the xml.parsers.expat module will always be available. You may still want to be aware of the PyXML add-on package; that package provides an extended set of XML libraries for Python.

The documentation for the xml.dom and xml.sax packages are the definition of the Python bindings for the DOM and SAX interfaces.

HTMLParser   A simple parser that can handle HTML and XHTML.
sgmllib   Only as much of an SGML parser as needed to parse HTML.
htmllib   A parser for HTML documents.
htmlentitydefs   Definitions of HTML general entities.
xml.parsers.expat   An interface to the Expat non-validating XML parser.
xml.dom   Document Object Model API for Python.
xml.dom.minidom   Lightweight Document Object Model (DOM) implementation.
xml.dom.pulldom   Support for building partial DOM trees from SAX events.
xml.sax   Package containing SAX2 base classes and convenience functions.
xml.sax.handler   Base classes for SAX event handlers.
xml.sax.saxutils   Convenience functions and classes for use with SAX.
xml.sax.xmlreader   Interface which SAX-compliant XML parsers must implement.
xmllib   A parser for XML documents.

See Also:

Python/XML Libraries
Home page for the PyXML package, containing an extension of xml package bundled with Python.
See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved