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.5
Python Documentation
Library Reference
Front Matter
Contents
1. Introduction
2. Built-in Objects
3. Built-in Types
4. String Services
5. Data Types
6. Numeric and Mathematical Modules
7. Internet Data Handling
8. Structured Markup Processing Tools
8.1 HTMLParser -- Simple HTML and XHTML parser
8.2 sgmllib -- Simple SGML parser
8.3 htmllib -- A parser for HTML documents
8.4 htmlentitydefs -- Definitions of HTML general entities
8.5 xml.parsers.expat -- Fast XML parsing using Expat
8.6 xml.dom -- The Document Object Model API
8.7 xml.dom.minidom -- Lightweight DOM implementation
8.8 xml.dom.pulldom -- Support for building partial DOM trees
8.9 xml.sax -- Support for SAX2 parsers
8.10 xml.sax.handler -- Base classes for SAX handlers
8.11 xml.sax.saxutils -- SAX Utilities
8.12 xml.sax.xmlreader -- Interface for XML parsers
8.13 xml.etree.ElementTree -- The ElementTree XML API
9. File Formats
10. Cryptographic Services
11. File and Directory Access
12. Data Compression and Archiving
13. Data Persistence
14. Generic Operating System Services
15. Optional Operating System Services
16. Unix Specific Services
17. Interprocess Communication and Networking
18. Internet Protocols and Support
19. Multimedia Services
20. Graphical User Interfaces with Tk
21. Internationalization
22. Program Frameworks
23. Development Tools
24. The Python Debugger
25. The Python Profilers
26. Python Runtime Services
27. Custom Python Interpreters
28. Restricted Execution
29. Importing Modules
30. Python Language Services
31. Python compiler package
32. Abstract Syntax Trees
33. Miscellaneous Services
34. SGI IRIX Specific Services
35. SunOS Specific Services
36. MS Windows Specific Services
A. Undocumented Modules
B. Reporting Bugs
C. History and License
Module Index
Index
About this document ...

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


8. 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.
xml.etree.ElementTree   Implementation of the ElementTree API.

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