Re: easiest way to CREATE XML with PHP5?
| From: | Robert Cummings | Date: | Sun, 18 Jul 2004 04:42:43 +0000 |
| Subject: | Re: easiest way to CREATE XML with PHP5? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190877@lists.php.net to get a copy of this message | ||
On Sun, 2004-07-18 at 00:40, CD Baby wrote:
> I see all these articles and tutorials about reading and parsing XML files.
>
> But what about creating and writing XML files with PHP5?
>
> Is the DOM the only way?
> It seems like such a bloated overkill.
> I just want to make simple little XML files like this:
>
> <music>
> <album upc="123456789">
> <artist>Pink Floyd</artist>
> <title>Dark Side of the Moon</title>
> <songs>
> <song num="1">
> <title>Comfortably Numb</title>
> <length>4:32</length>
> </song>
> <song num="2">
> <title>Some Other Song Title</title>
> <length>6:15</length>
> </song>
> </songs>
> </album>
> </music>
fprintf()
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'