Edit XML Extension


JPHP XML Library is an easy-to-use library for XML parsing and generation.

Usage

use php\xml\XmlProcessor;

$processor = new XmlProcessor();
$document = $processor->parse('<product><name>Hello</name></product>');

$name = $document->get('/product/name'); // Use xpath expression.