1. Go to this page and download the library: Download josemmo/uxml library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
josemmo / uxml example snippets
use UXML\UXML;
$xml = \UXML\UXML::newInstance('RootTagName');
$domElement = new DOMElement('TagName');
$xml = \UXML\UXML::fromElement($domElement);
$xml = \UXML\UXML::fromString('<a xmlns:ns="urn:abc"><ns:b /></a>');
echo $xml->get('ns:b'); // <ns:b />
echo $xml->get('abc:b'); // Is NULL as the prefix does not exist
echo $xml->get('{urn:abc}b'); // <ns:b />
$xml = \UXML\UXML::newInstance('Test');
$xml->element(); // Returns a [DOMElement] object
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.