Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))

Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P668
Handling XML in Perl
Exercises, examples and other material relating to training module P668. This topic is presented on public course Perl for Larger Projects

The Extensible Markup Language (XML) is an important tool in structuring data. This training module covers the two major XML engines that are supported by Perl modules, and teaches you how to program using them. We also cover handling XSLT in Perl.

Related technical and longer articles
Using LWP to write Web Clients

Articles and tips on this subjectupdated
3874Using Perl to read an RSS feed off a web site and extract data - via LWP and XML modules
Perl is excellent glue-ware ... something I was reminded of towards the end of Friday's Perl Programming Course. A delegate asked me how easy it is to grab an XML resource from the web (such as an RSS feed) and extract data from it. Well - you could write the code yourself, or you could use standard ...
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 and pointing any visitors at replacements. There' been a lot of that going on over the last couple of days ... for example: 1. I have deleted two ...
2378Handling XML in Perl - introduction and early examples
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 (and in some cases writing) XML streams. (definition of XML: Extended Markup Language - a tagging system in plain text for marking up data; not ...
Examples from our training material
apps-admin.xml   Sample data file used in XML example
camels.xml   XML sample for xslt1 demo
camels.xsl   XSLT sample for xlst1.pl demo
exp.pl   Direct use of the Expat module
gnome.pl   Parsing XML through LibXML
goblin.pl   Altering an XML document through LibXML
index.xml   Sample RSS data feed (XML data)
medireport.pl   Using XML::Parser to extract information - practical example
mediweb.pl   Parsing XML within a cgi script
medline.pm   Class of XML element handlers
p1   SAX parser - extracting titles from XML stream
p2   Using XML::Parser to transfer an XML structure to memory
stdsubs.pm   Standard cgi handler to collect form data
xml0.pl   Parsing XML - first test program
xml1.pl   Using debug mode to quickly check a document
xml2.pl   Using Subs to report on an XML source
xml3.pl   Illustration of handling a stream
xml4.pl   Converting an XML document into a tree in Perl collection variables
xml5.pl   Alternative - using handlers
xslt1.pl   Using XML and XSLT to turn data into a web page
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 [here].
Topics covered in this module
What is XML?.
Availability of handling XML from Perl.
Parsing XML from Perl.
Installing the Expat library and XML::Parser.
The principles of a parser.
Using subs.
Using Stream.
Event-based handlers.
Other controls possible for the constructor.
An example with a full set of data.
Putting it together.
Use of the XML::Parser::Expat.
Gnome - an alternative to the Expat library.
Using Gnome to edit XML.
Using XSLT from Perl.
Associated files.
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 Ruby, Lua, 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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/P668.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb