XMLReader functions

Introduction

The XMLReader extension is an XML Pull parser. The reader acts as a
cursor going forward on the document stream and stopping at each node
on the way.

Encoding

It is important to note that internally, libxml uses the UTF-8 encoding
and as such, the encoding of the retrieved contents will always be in
UTF-8 encoding.

Installation

The XMLReader extension is available in PECL as of PHP 5.0.0 and is
included and enabled as of PHP 5.1.0 by default. It can be enabled
by adding the argument --enable-xmlreader
(or --with-xmlreader before 5.1.0)
to your configure line. The libxml
extension is required.