Exercises, examples and other material relating to training module Y151. This topic is presented on public courses
Learning to program in Python,
Python Programming
Python Programming - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts at the fundamentals ... http://www.wellho.net/course/ypfull.html [course] |
Learning to Program in Python - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts ... http://www.wellho.net/course/ylfull.html [course] |
There are hundreds of modules (literally) in Perl for handing XML. Some of them are highly specialised, but others are of much more general use in reading ... http://www.wellho.net/mouth/2378_Han ... mples.html [short article] |
I'm not keen on recursive code - code that calls itself. Very often, such code is elegant in a way, yet so 'clever' that it is hard to follow. There ... http://www.wellho.net/mouth/2506_Goo ... -feed.html [short article] |
from xml.sax.handler import ContentHandler
from xml.sax import make_parser
import sys
class ImageHandler(ContentHandler):
title = ""
name = ""
... http://www.wellho.net/resources/ex.php4?item=y151/sax_xml2.py [code sample] |
It's incredible just how much time bookkeeping takes - small adjustments to the various resources we have, tidying up modules that are no longer relevant ... http://www.wellho.net/mouth/2555_Bookkeeping.html [short article] |
import xml.dom.minidom
def explore_children(nodelist,inset):
for subnode in nodelist:
if (subnode.nodeType == subnode.ELEMENT_NODE):
... http://www.wellho.net/resources/ex.php4?item=y151/minid3.py [code sample] |
An XML document is a structured piece of data, held as a piece of text. Python can be used to process XML data, a subject which is covered in this module.
This topic is presented on public courses
Learning to program in Python,
Python Programming
Examples from our training material
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
What is XML.
XML Handlers.
Sax.
DOM.
Using Python to handle XML via SAX.
Accessing attributes and character data via Python and SAX.
Storing information as you parse with SAX.
Using Python to handle XML via DOM.
Adding in a character handler.
Modifying and saving the model.
4Suite libraries.
The Gnome libraries.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.