php8.5
Home/ Manual/ reference / xmlreader/ XMLReader

XMLReader

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.

Intro

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.

Setup Xmlreader

Source: reference/xmlreader/book.xml · from the official PHP manual (php/doc-en)