Re: create xml document with PHP
| From: | Manuel Lemos | Date: | Tue, 29 Jan 2002 20:20:04 +0000 |
| Subject: | Re: create xml document with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82602@lists.php.net to get a copy of this message | ||
Hello,
Rodrigo Peres wrote:
>
> Hi list,
>
> I'm new to the xml world, and I need to create a page with data retrieved
> from my database using PHP. The process is the same of create an html page??
> I mean I can use echo to output the xml tags and values?? Since this page
> will be dinamically generated what kind of headers I need to use to this
> page become an xml???
I don't think serving XML directly to the browser is a good idea because
many browsers would not render it.
> I saw many docs in web but all about parse an xml, but not in how to build
> one.
This PHP class does exactly what you need. See the documentation for a
typical example.
Regards,
Manuel Lemos