Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

529 lines (521 sloc) 16.238 kB
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>XML_Parser</name>
<channel>pear.php.net</channel>
<summary>XML parsing class based on PHP&apos;s bundled expat</summary>
<description>This is an XML parser based on PHPs built-in xml extension.
It supports two basic modes of operation: &quot;func&quot; and &quot;event&quot;. In &quot;func&quot; mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in &quot;event&quot; mode it uses a set of generic callbacks.
Since version 1.2.0 there&apos;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.</description>
<lead>
<name>Stephan Schmidt</name>
<user>schst</user>
<email>schst@php-tools.net</email>
<active>no</active>
</lead>
<lead>
<name>Chuck Burgess</name>
<user>ashnazg</user>
<email>ashnazg@php.net</email>
<active>yes</active>
</lead>
<developer>
<name>Stig S&amp;#230;ther Bakken</name>
<user>ssb</user>
<email>stig@php.net</email>
<active>no</active>
</developer>
<developer>
<name>Tomas V.V.Cox</name>
<user>cox</user>
<email>cox@php.net</email>
<active>no</active>
</developer>
<date>2015-08-26</date>
<time>11:15:00</time>
<version>
<release>1.3.6</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license>BSD License</license>
<notes>
Fix broken package.xml
</notes>
<contents>
<dir name="/">
<dir name="XML">
<file name="Parser.php" role="php" />
<dir name="Parser">
<file name="Simple.php" role="php" />
</dir>
</dir>
<file name="examples/xml_parser_file.php" role="doc" />
<file name="examples/xml_parser_file.xml" role="doc" />
<file name="examples/xml_parser_funcmode.php" role="doc" />
<file name="examples/xml_parser_handler.php" role="doc" />
<file name="examples/xml_parser_simple1.php" role="doc" />
<file name="examples/xml_parser_simple1.xml" role="doc" />
<file name="examples/xml_parser_simple2.php" role="doc" />
<file name="examples/xml_parser_simple2.xml" role="doc" />
<file name="examples/xml_parser_simple_handler.php" role="doc" />
<file name="tests/001.phpt" role="test" />
<file name="tests/002.phpt" role="test" />
<file name="tests/003.phpt" role="test" />
<file name="tests/004.phpt" role="test" />
<file name="tests/004b.phpt" role="test" />
<file name="tests/005.phpt" role="test" />
<file name="tests/bug-9328.phpt" role="test" />
<file name="tests/bug-9328b.phpt" role="test" />
<file name="tests/bug-9328c.phpt" role="test" />
<file name="tests/bug-9328d.phpt" role="test" />
<file name="tests/test2.xml" role="test" />
<file name="tests/test3.xml" role="test" />
</dir>
</contents>
<dependencies>
<required>
<php>
<min>4.2.0</min>
</php>
<pearinstaller>
<min>1.4.0b1</min>
</pearinstaller>
<package>
<name>PEAR</name>
<channel>pear.php.net</channel>
</package>
</required>
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>1.1.0beta1</release>
<api>1.1.0beta1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-04-16</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- Fixed memory leaks parsing many documents or big files (mroch)
- Fixed setInput() url detection regex (mroch)
- Added setInputString() method, allowing strings to be passed as input (schst)
- Error handling rewritten (cox)
- Increased the overall parsing speed (cox)
- Added free() method (schst
- Added reset() method, that is called when parsing a document so it is possible to parse more than one document per instance (schst)
- Added error codes (schst)
- revamped documentation (cox, schst)
- Fixed bug #516 (url fopen and safe mode) (schst)
- Fixed bug #637 (dependency on PEAR) (schst)
- improved parse() and parseString() to be able to parse more than one document (schst)
- added PHP5 constructor (schst)
- moved xml_parser_create() to _create() for PHP5 compatibility (schst)
- added dependency on PHP 4.2
Thanks to Marshall Roch for commments and contributions and Tomas V.V. Cox
for applying a lot of fixes and improvements.
</notes>
</release>
<release>
<version>
<release>1.1.0beta2</release>
<api>1.1.0beta2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-04-18</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
beta2:
- Fixed calling of __construct
beta1:
- Fixed memory leaks parsing many documents or big files (mroch)
- Fixed setInput() url detection regex (mroch)
- Added setInputString() method, allowing strings to be passed as input (schst)
- Error handling rewritten (cox)
- Increased the overall parsing speed (cox)
- Added free() method (schst
- Added reset() method, that is called when parsing a document so it is possible to parse more than one document per instance (schst)
- Added error codes (schst)
- revamped documentation (cox, schst)
- Fixed bug #516 (url fopen and safe mode) (schst)
- Fixed bug #637 (dependency on PEAR) (schst)
- improved parse() and parseString() to be able to parse more than one document (schst)
- added PHP5 constructor (schst)
- moved xml_parser_create() to _create() for PHP5 compatibility (schst)
- added dependency on PHP 4.2
Thanks to Marshall Roch for commments and contributions and Tomas V.V. Cox
for applying a lot of fixes and improvements.
</notes>
</release>
<release>
<version>
<release>1.1.0</release>
<api>1.1.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2004-04-23</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- Fixed memory leaks parsing many documents or big files (mroch)
- Fixed setInput() url detection regex (mroch)
- Added setInputString() method, allowing strings to be passed as input (schst)
- Error handling rewritten (cox)
- Increased the overall parsing speed (cox)
- Added free() method (schst
- Added reset() method, that is called when parsing a document so it is possible to parse more than one document per instance (schst)
- Added error codes (schst)
- revamped documentation (cox, schst)
- Fixed bug #516 (url fopen and safe mode) (schst)
- Fixed bug #637 (dependency on PEAR) (schst)
- improved parse() and parseString() to be able to parse more than one document (schst)
- added PHP5 constructor (schst)
- moved xml_parser_create() to _create() for PHP5 compatibility (schst)
- added dependency on PHP 4.2
Thanks to Marshall Roch for commments and contributions and Tomas V.V. Cox
for applying a lot of fixes and improvements.
</notes>
</release>
<release>
<version>
<release>1.2.0beta1</release>
<api>1.2.0beta1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-05-17</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
added new class XML_Parser_Simple that provides a stack for the elements so the user only needs to implement one method to handle the tag and cdata.
</notes>
</release>
<release>
<version>
<release>1.2.0beta2</release>
<api>1.2.0beta2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-05-24</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
XML_Parser:
- fixed bug with setMode()
- moved the init routines for the handlers in _initHandlers()
XML_Parser_Simple:
- fixed bug with character data (did not get parsed)
- fixed bug with setMode()
- some refactoring
- added getCurrentDepth() to retrieve the tag depth
- added addToData()
- added new example
</notes>
</release>
<release>
<version>
<release>1.2.0beta3</release>
<api>1.2.0beta3</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-05-25</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- added setHandlerObj() which allows you to have the parser separate from the handler methods
</notes>
</release>
<release>
<version>
<release>1.2.0</release>
<api>1.2.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2004-05-28</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- added setHandlerObj() which allows you to have the parser separate from the handler methods
- fixed bug with setMode()
- moved the init routines for the handlers in _initHandlers()
- added new examples
- fixed test files so they do not fail because of different resource ids
XML_Parser_Simple:
- added new class XML_Parser_Simple that provides a stack for the elements so the user only needs to implement one method to handle the tag and cdata.
</notes>
</release>
<release>
<version>
<release>1.2.1</release>
<api>1.2.1</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2004-10-04</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
fixed bug #2442: Call to &quot;xmltag_ELEMENT_&quot; not correctly managed in function funcEndHandler
</notes>
</release>
<release>
<version>
<release>1.2.2beta1</release>
<api>1.2.2beta1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-12-22</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed small notice in XML_Parser::free(),
- fixed Bug #2939: bug in error routine leads to segmentation fault (raiseError does not free the internal resources anymore)
</notes>
</release>
<release>
<version>
<release>1.2.2</release>
<api>1.2.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2004-12-22</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed small notice in XML_Parser::free(),
- fixed Bug #2939: bug in error routine leads to segmentation fault (raiseError does not free the internal resources anymore)
</notes>
</release>
<release>
<version>
<release>1.2.3</release>
<api>1.2.3</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2005-01-17</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed a bug that occured when using &apos;func&apos; mode and setHandlerObj() (schst)
- added default handlers for &apos;func&apos; mode (schst)
</notes>
</release>
<release>
<version>
<release>1.2.4</release>
<api>1.2.4</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2005-01-18</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed a bug in XML_Parser_Simple when trying to register more than the default handlers and a separate callback object (schst)
</notes>
</release>
<release>
<version>
<release>1.2.5</release>
<api>1.2.5</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2005-02-26</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed Bug #3557 (removed $attribs parameter, which caused a notice)
- fixed Bug #3277 (remove obsolete ini_set(&apos;allow_url_fopen&apos;))
</notes>
</release>
<release>
<version>
<release>1.2.6</release>
<api>1.2.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2005-03-25</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed Bug #3949: reset does not return true on success as the documentation states
- implement Request #3905: replace &quot;.&quot; with &quot;_&quot; in tagnames when using func mode
</notes>
</release>
<release>
<version>
<release>1.2.7</release>
<api>1.2.7</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2005-09-24</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- implemented request #4774: Error message contains column number
</notes>
</release>
<release>
<version>
<release>1.2.8</release>
<api>1.2.8</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2006-12-01</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- fixed bug #5557: Raise a more useful error message when using invalid source encoding
- fixed bug #6078: func-mode does not handle all allowed letters in tags
</notes>
</release>
<release>
<version>
<release>1.3.0a1</release>
<api>1.3.0a1</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2008-08-24</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- switch to BSD License
- switch to package.xml v2
- PEAR CS cleanup
- Fix Doc #13120: Mistake in example code
</notes>
</release>
<release>
<version>
<release>1.3.0</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2008-08-24</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- switch to BSD License
- switch to package.xml v2
- PEAR CS cleanup
- Fix Doc #13120: Mistake in example code
</notes>
</release>
<release>
<version>
<release>1.3.1</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2008-09-15</date>
<license uri="http://www.example.com">BSD License</license>
<notes>
- correct package.xml to reflect switch to BSD License
</notes>
</release>
<release>
<version>
<release>1.3.2</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2009-01-21</date>
<license uri="http://www.example.com">BSD License</license>
<notes>
- Fix Bug #9328: assigned by reference error in XML_RSS parse
- add an AllTests.php for PHPUnit usage
</notes>
</release>
<release>
<version>
<release>1.3.3</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2010-10-25</date>
<license>BSD License</license>
<notes>
Automatically built QA release
Bug #16467 Unit tests are broken - ashnazg
Bug #17725 Patch Avoid deprecated eregi functions - olleolleolle
</notes>
</release>
<release>
<version>
<release>1.3.4</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2010-10-26</date>
<license>BSD License</license>
<notes>
Remove package.php from release
</notes>
</release>
<release>
<version>
<release>1.3.5</release>
<api>1.3.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license>BSD License</license>
<notes>
Add composer compatibility
</notes>
</release>
</changelog>
</package>
Jump to Line
Something went wrong with that request. Please try again.