PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Parser

XML parsing class based on PHP's bundled expat

This package is unmaintained.

Download latest release 1.3.8 (there might be newer Composer installable version)

License: BSD License

Description

This is an XML parser based on PHPs built-in xml extension.
It supports two basic modes of operation: "func" and "event". In "func" mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in "event" mode it uses a set of generic callbacks.

Since version 1.2.0 there's a new XML_Parser_Simple class that makes parsing of most XML documents easier, by automatically providing a stack for the elements.
Furthermore its now possible to split the parser from the handler object, so you do not have to extend XML_Parser anymore in order to parse a document with it.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#201ClosedBug2003-11-05Class should allow setting of a string instead of a file for input
#516ClosedBug2004-01-04XML_Parser should set allow_url_fopen to "On" before parsing remote XML files
#588BogusBug2004-01-15XML_Parser incorrectly returns an error when parsing long strings
#637ClosedBug2004-01-28Dependencies are incorrect in package.xml
#1078BogusBug2004-03-26$php_errormsg usage
#2069BogusBug2004-08-05raiseError() calls without parameters
#2442ClosedBug2004-10-04Call to "xmltag_ELEMENT_" not correctly managed in function funcEndHandler
#2451Wont fixReq2004-10-04Socket timeout
#2458ClosedReq2004-10-05Put allow_url_fopen back in original state when opening from URL
#2661BogusBug2004-11-01magic_quotes_runtime
#2712ClosedBug2004-11-07$oldVal undefined in XML_Parser::setInputFile()
#2939ClosedBug2004-12-09bug in error routine leads to segmentation fault
#3066BogusReq2004-12-30$folding option not working
#3277ClosedBug2005-01-24allow_url_fopen-Trouble in setInputFile
#3555BogusBug2005-02-22References to $this are given to the outside world during construction
#3557ClosedBug2005-02-22Using func mode generates warnings when using "function xmltag_()"
#3905ClosedReq2005-03-21can't parse "." tagnames using func mode
#3949ClosedBug2005-03-24Simple::reset() does not return true on success
#4149No FeedbackBug2005-04-14parse throws errors, but documentation says returns error
#4774ClosedReq2005-07-09XML_Parser shoud report source column number on errors
#5557ClosedReq2005-09-29XML_Parser: Unable to create XML parser resource.
#5979Wont fixBug2005-11-16cdataHandler function called twice inside same tag
#6078ClosedBug2005-11-26func-mode does not handle all allowed letters in tags
#7852BogusBug1.2.72006-06-09Memory leak from xml_parse()
#9328ClosedBug2006-11-13assigned by reference error in XML_RSS parse
#12342BogusBug1.2.82007-10-25inserts a newline before first umlaut with Pear XML-Parser
#12775Wont fixReq1.2.82007-12-26New feature in XML Parser
#12778Wont fixReq1.2.82007-12-27Can't get line/column of input
#13120ClosedDoc1.2.82008-02-15Mistake in example code
#13548ClosedBug2008-03-31Which license version?
#16467ClosedBugCVS2009-07-24Unit tests are broken
#17725ClosedBugSVN2010-08-17Patch Avoid deprecated eregi functions
#18385Wont fixBug1.3.42011-03-22Fix deprecated warning (patch)
#19034ClosedBugSVN2011-11-14test fails when executed from package dir (for PEAR QA team)
#19035ClosedBugSVN2011-11-14remove error_reporting (for PEAR QA team)
#19173ClosedBugSVN2011-12-30upgrade PHPUnit require statements & other fixes (for PEAR QA Team)
#19261BogusBug1.3.42012-01-30Wrong package.xml
#19363Wont fixBug1.3.42012-04-01PHP 5.4 incompatibility
#20942ClosedBug1.3.52015-08-21Broken PEAR installation
#21045OpenReq1.3.62016-03-23Fix deprecated syntax