| |||||||||||
| |||||||||||
The DOM and SAX models for handling XML data
![]()
There are hundreds of Perl modules on the CPAN that relate to XML, including parsers to both the SAX and DOM
model. In the SAX model, an XML data stream in passed through a parser and events or callbacks are made as
specified ahead of time in the program when specific tags or other things happen. SAX is ideal for traversing
data to extract a few very specific pieces of information and it can be used on huge data sources. With the
DOM model, the whole XML data stream is copies into a memory structure (lists and hashes in Perl) which can
then be further manipulated by the program. Great if you're processing a lot of information within a single
piece of XML, but won't work if your XML data source is huge.
Show a large image More about XML and Perl Associated topic - Web Application Deployment - XML, DTD, XSLT, XHTML and More | |||||||||||
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||