Skip to Content
XML and Perl
book

XML and Perl

by Mark Riehl, Ilya Sterin
October 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 40m
English
Sams
Content preview from XML and Perl

What Are the Major Approaches to XML Parsing?

Currently, there are two major methodologies behind XML parsing. First is a group of parsers built to conform to the Document Object Model (DOM) standard. Second is another group of parsers built to conform to the Simple API for XML (SAX) standard.

The DOM-based parsers generate a tree of objects in memory based on the structure and contents of the XML data. This enables you to walk through the tree and access information or access only a portion (or branch) of your XML data.

SAX-based parsers take a different approach to parsing—they are event-driven. An event-driven XML parser module searches through XML data and looks for particular patterns (for example, the start of an element, the end of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl and XML

Perl and XML

Erik T. Ray, Jason McIntosh
Programming Web Services with Perl

Programming Web Services with Perl

Randy J. Ray, Pavel Kulchenko
Mastering Perl

Mastering Perl

brian d foy
Perl by Example

Perl by Example

Ellie Quigley

Publisher Resources

ISBN: 0735712891Purchase book