Building the DOMDocument from the list of XPath's and corresponding data in certain format.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testset
LICENSE
README.md
XPathToXMLProcessor.php
XPathToXMLProcessorTest.php

README.md

XPath to XML Processor

Very basic class for building the DOMDocument from the list of XPath's and corresponding data in certain format. You can specify values of leaf nodes, values of attributes for both hierarchy and leaf nodes. If I've missed something, please, open the ticket and let me know.

Class is slightly tested, so you can run the test under PHPUnit using the command

[admin@developmentvm xpathtoxmlprocessor]$ phpunit XPathToXMLProcessorTest.php

Tutorial on input format is available at http://alexshumilov.ru/xpath-xml-php/, also you can look it up in the test suite.