No validating sax parser implementation available
Now, let’s put the theory of the previous section in practice.
Imagine that you have the statistics of the players of a basketball team in an XML document.
In this article Nadia explains how to parse an XML document using the SAX API implementation available for Python.
This tutorial will explain how to parse an XML document using the SAX API implementation available for Python.
In any case, if you want to test the code in this tutorial, you will need to install Python 2.1 or later.
In the next part of this article, I will describe the SAX classes of Python.
Afterwards, I will use an example in order to show how the theory can be applied.
Of course, there is more than one way to parse XML data with Python.
In this article we will focus on its built-in SAX module.