PHP and XML document creation<

windows

Guest
Hi there,

I have a PHP application that pulls data from a database. What I would like to do is have a hyperlink at the end of each retrieved database record that generates an XML document with the individual records various attributes. I have poked around the web a little for PHP->XML tutorials without much success.

I have seen <!-- m --><a class="postlink" href="http://www.libexpat.org">http://www.libexpat.org</a><!-- m --> - eXpat, which I know PHP has preinstalled as a library. Is this all I need to generate XML documents? I was under the impression that this library parses pre-existing XML documents, which is not what I want.

All links and comments appreciated!It seems that making the XML documents has to be done on the server side while the database view is made. Links to available libraries are here:

<!-- m --><a class="postlink" href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a><!-- m --> - XML::LibXML
<!-- m --><a class="postlink" href="http://xmlsoft.org/XSLT">http://xmlsoft.org/XSLT</a><!-- m --> - XML::LibXSLT

These are written in C as part of Gnome, and can be called with Perl. No mention of PHP though....
 
Back
Top