XML

3 entries

Simple XML Object Access Function SimpleXML object-style XML handling: the document maps to an object tree you traverse with -> and property syntax, plus xpath queries. One of PHP's two XML philosophies alongside DOM — object access buys brevity, node operations buy control. DOM Tree Parsing Function DOM-style XML parsing: the whole document loads into an in-memory node tree with random access to any element, attribute or text node, and modifications serialize back to XML. One of the two big philosophies, opposite to streaming (XMLReader, see xmlreader_writer). Streaming XML Function Streaming-style XML: pull-based node-by-node reading (event driven, only the current node in memory, large-file friendly) and forward-only writing. Opposite to DOM loading the whole tree — the third XML philosophy.