As mentioned, there are two alternatives when it comes to performing XML processing in your PHP/Oracle application. You can perform any required XML processing using either PHP's XML extensions (or PEAR XML packages) or Oracle's XML features.
In the following sections, you will learn how to construct XML from relational data using the XML capabilities of both PHP and Oracle.
PHP provides three general extensions allowing you to work with XML. These extensions are listed in the following table:
PHP extension |
Description |
---|---|
XML extension |
The XML extension implements the SAX (Simple API for XML) approach to parsing and accessing XML content. The SAX parsing mechanism is memory efficient since it doesn't require the entire XML document to be stored in memory. This makes the SAX approach useful for certain type of operations on XML, for example, searching. |
DOM extension |
The DOM extension provides APIs for working with XML... |