2017 © Pedro Peláez
 

library xmlreaderiterator

Iterators for PHP XMLReader for ease of parsing

image

hakre/xmlreaderiterator

Iterators for PHP XMLReader for ease of parsing

  • Sunday, October 2, 2016
  • by hakre
  • Repository
  • 2 Watchers
  • 39 Stars
  • 24,697 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 4 Open issues
  • 9 Versions
  • 9 % Grown

The README.md

Iterators for [PHP XMLReader] for Ease of Parsing

Change Log:

  • 0.1.12 maintenance release with fixes., (*1)

  • 0.1.11 maintenance release with fixes. added XMLReader::CDATA and XMLReader::WHITESPACE node support for XMLWritingIteration. added XMLReaderItertor::skipNextRead() for nested iterations., (*2)

  • 0.1.10 maintenance release with fixes., (*3)

  • 0.1.9 maintenance release with fixes. added XMLReaderNode::expand()., (*4)

  • 0.1.8 maintenance release with fixes., (*5)

  • 0.1.7 maintenance release with fixes., (*6)

  • 0.1.6 maintenance release with fixes. added xml-file-scanner command-line tool example., (*7)

  • 0.1.5 maintenance release with tests and new XMLReaderNextIteration to iterate in XMLReader::next() fashion., (*8)

  • 0.1.4 maintenance release with fixes., (*9)

  • 0.1.3 added XMLSequenceStream, a PHP stream wrapper to read XML from files which are a sequence of XML documents. Works transparently with XMLReader., (*10)

  • 0.1.2 added XMLWritingIteration, an iteration to write with XMLWriter from XMLReader., (*11)

  • 0.1.0 composer support has been added., (*12)

  • 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 are XMLReaderNode::readOuterXml() and XMLReaderNode::readString()., (*13)

  • 0.0.21 moved library into new repository and added XMLReaderAggregate., (*14)

  • 0.0.19 added XMLElementXpathFilter, a FilterIterator for XMLReaderIterator by an xpath expression., (*15)

    $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):, (*16)

The Versions

02/10 2016

dev-report/12

dev-report/12 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

22/07 2015

dev-wrapper-test

dev-wrapper-test https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

07/07 2015

dev-develop-php-5.2

dev-develop-php-5.2 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

07/07 2015

dev-master

9999999-dev https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

07/07 2015

dev-develop

dev-develop https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

07/07 2015

v0.1.10

0.1.10.0 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

31/05 2015

v0.1.9

0.1.9.0 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

14/03 2015

v0.1.8

0.1.8.0 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader

31/08 2014

0.1.7

0.1.7.0 https://github.com/hakre/XMLReaderIterator

Iterators for PHP XMLReader for ease of parsing

  Sources   Download

AGPL-3.0

The Development Requires

xml iterator xmlreader