The biggest problem I can think of with PHP is it's poor XML support. Right now, you can read XML files, yes, and put them in arrays etc. But can you build XML files? Well, kind of...
You can build XML files line by line, with
PHP Code:
print "<Child>Node</Child>";
But I would rather be able to see this...
PHP Code:
xml_build('Child', Node);
Aswell as building it to it's own flatfile (.xml) file, such as:
PHP Code:
<Animal>
<Name>Dog</Name>
</Animal>
... would be:
PHP Code:
$start = "xml_new('/xml_files/animal.xml', '/xsl_files/animal.xsl', '/dtd_files/animal.dtd')";
xml_build('Animal','','o');
xml_build('Name', 'Dog', 'v');
xml_build('Animal','','c');
xml_close($start);
Where animal.xml would be the XML flatfile output, animal.xsl would be the template file attached to it (where it would write that into the XML file), and the DTD file would be tagged with the XML file as well. The "o" in the xml_build means "open tag", "c" means "close tag", "v" means "value" (it has a value) etc.
That above example is very primitive, and it probably shouldn't look or work like that. However, it should be easy like that. As easy as writing tables to a MySQL database, or easier.
Then, finally, we could have the ability to make PHP forms that can build XML files based on textfield values!
Bookmarks