PHP XML Parsers
Introduction to XML parsing.
PHP XML Parsers
XML (eXtensible Markup Language) is used to describe data.
PHP has two types of XML parsers:
- Tree-Based Parsers: Holds the entire document in memory and transforms the XML document into a tree structure. (e.g., SimpleXML, DOM).
- Event-Based Parsers: Reads one node at a time and allows you to interact with it in real-time. (e.g., XML Expat Parser).