Iterators for PHP XMLReader for Ease of Parsing
0.1.12maintenance release with fixes.0.1.11maintenance release with fixes. addedXMLReader::CDATAandXMLReader::WHITESPACEnode support forXMLWritingIteration. addedXMLReaderItertor::skipNextRead()for nested iterations.0.1.10maintenance release with fixes.0.1.9maintenance release with fixes. addedXMLReaderNode::expand().0.1.8maintenance release with fixes.0.1.7maintenance release with fixes.0.1.6maintenance release with fixes. added xml-file-scanner command-line tool example.0.1.5maintenance release with tests and newXMLReaderNextIterationto iterate inXMLReader::next()fashion.0.1.4maintenance release with fixes.0.1.3addedXMLSequenceStream, a PHP stream wrapper to read XML from files which are a sequence of XML documents. Works transparently withXMLReader.0.1.2addedXMLWritingIteration, an iteration to write withXMLWriterfromXMLReader.0.1.0composer support has been added.0.0.23first 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.21moved library into new repository and addedXMLReaderAggregate.0.0.19addedXMLElementXpathFilter, aFilterIteratorforXMLReaderIteratorby an xpath expression.$reader = newXMLReader(); $reader->open($xmlFile); $it = newXMLElementIterator($reader); $list = newXMLElementXpathFilter( $it, '//user[@id = "1" or @id = "6"]//message' ); foreach($listas$message) { echo" * ", $message->readString(), "\n"; }
the latest on top (for more examples, checkout the
examples folder):