hakre / xmlreaderiterator
Iterators for PHP XMLReader for ease of parsing
Installs: 171 496
Dependents: 1
Suggesters: 0
Security: 0
Stars: 58
Watchers: 2
Forks: 15
Open Issues: 5
Requires
- ext-dom: *
- ext-simplexml: *
- ext-xmlreader: *
- ext-xmlwriter: *
Requires (Dev)
- ext-bz2: *
- ext-libxml: *
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-12-18 18:11:10 UTC
README
Change Log:
-
0.1.12
maintenance release with fixes. -
0.1.11
maintenance release with fixes. addedXMLReader::CDATA
andXMLReader::WHITESPACE
node support forXMLWritingIteration
. addedXMLReaderItertor::skipNextRead()
for nested iterations. -
0.1.10
maintenance release with fixes. -
0.1.9
maintenance release with fixes. addedXMLReaderNode::expand()
. -
0.1.8
maintenance release with fixes. -
0.1.7
maintenance release with fixes. -
0.1.6
maintenance release with fixes. added xml-file-scanner command-line tool example. -
0.1.5
maintenance release with tests and newXMLReaderNextIteration
to iterate inXMLReader::next()
fashion. -
0.1.4
maintenance release with fixes. -
0.1.3
addedXMLSequenceStream
, a PHP stream wrapper to read XML from files which are a sequence of XML documents. Works transparently withXMLReader
. -
0.1.2
addedXMLWritingIteration
, an iteration to write withXMLWriter
fromXMLReader
. -
0.1.0
composer support has been added. -
0.0.23
first try of a compatibility layer for PHP installs with a libxml version below version 2.6.20. functions with compatibility checks areXMLReaderNode::readOuterXml()
andXMLReaderNode::readString()
. -
0.0.21
moved library into new repository and addedXMLReaderAggregate
. -
0.0.19
addedXMLElementXpathFilter
, aFilterIterator
forXMLReaderIterator
by an xpath expression.$reader = new XMLReader(); $reader->open($xmlFile); $it = new XMLElementIterator($reader); $list = new XMLElementXpathFilter( $it, '//user[@id = "1" or @id = "6"]//message' ); foreach($list as $message) { echo " * ", $message->readString(), "\n"; }
Stackoverflow Q&A for the XMLReader Iterators
the latest on top (for more examples, checkout the
examples
folder):