Home arrow Python arrow Page 5 - Parsing XML with SAX and Python

Conclusion&toc - Python

In this article Nadia explains how to parse an XML document using the SAX API implementation available for Python.

TABLE OF CONTENTS:
  1. Parsing XML with SAX and Python
  2. The xml.sax Package
  3. Our SAX Parser
  4. Homework
  5. Conclusion
By: Nadia Poulou
Rating: starstarstarstarstar / 16
January 21, 2003

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
This tutorial covered the basics of the xml.sax package and its sub packages. This is not the only way to parse XML using Python. Hopefully in future articles we can take a look at other ways to do so and also take into account matters like XML validation and namespaces.

For the moment I would like to mention here PyXML, a toolkit with more than 200 XML-related modules and advanced implementations, including the xml.sax packages and sub packages. You can download it from here.

A very good reference site for Python and XML is "Uche Ogbuji's Akara site for XML processing in Python".

Also, you may want to check out the Python library reference (search for the xml.sax package and sub-packages)


 
 
>>> More Python Articles          >>> More By Nadia Poulou
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PYTHON ARTICLES

- Python Big Data Company Gets DARPA Funding
- Python 32 Now Available
- Final Alpha for Python 3.2 is Released
- Python 3.1: String Formatting
- Python 3.1: Strings and Quotes
- Python 3.1: Programming Basics and Strings
- Tuples and Other Python Object Types
- The Dictionary Python Object Type
- String and List Python Object Types
- Introducing Python Object Types
- Mobile Programming using PyS60: Advanced UI ...
- Nested Functions in Python
- Python Parameters, Functions and Arguments
- Python Statements and Functions
- Statements and Iterators in Python

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: