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>


Any suggestions?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to