What PHP framework is better for XML support?
Recently do a project, data storage is a number of XML format files, to read and write, query and other operations! Ask everyone php talent, is there any good PHP framework?
------to solve the idea----------------------
PHP provides 3 sets of XML parsing functions (classes) is not enough for you?
------to solve the idea----------------------
Write an XML operation class yourself
------to solve the idea----------------------
The PHP core provides a lot of functions and extensions that can read and write XML well.
------to solve the idea----------------------
The SimpleXML extension provides a very simple and easy-to-use toolset that transforms XML into an object with generic property selectors and array iterators.
XML to Array
if (file_exists (' Test.xml ')) {
$xml = simplexml_load_file (' Test.xml ');
Print_r ($xml);
} else {
Exit (' Failed to open test.xml. ');
}
------to solve the idea----------------------
It feels better to be simplexml.