April 2026
Intermediate
1009 pages
34h 15m
English
XMLReader and XMLWriter are new XML access variants that are modeled on the XmlReader and XmlWriter from the Microsoft .NET Framework. They are similar to access via SAX but are even easier to use.
XMLReader and XMLWriter have been integrated directly into the PHP core since PHP 5.1.
In contrast to the event-based SAX parser, XMLReader has a cursor-oriented parser, familiar from reading files. This means that the XML elements are run through individually. More detailed information on the respective element can then be obtained via various properties. Constants such as XMLREADER::ELEMENT determine what type of element it is (tag, text, etc.). A complete overview can be found at http://s-prs.co/v602242 ...
Read now
Unlock full access