Welcome to WebmasterWorld Guest from 54.145.166.247

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

create xml file PHP

   
10:45 pm on Apr 15, 2008 (gmt 0)

5+ Year Member



Hello, I want to create an xml file from php. Is there a quick way of dealing with it? I used SimpleXML in order to extract data from xml files, but I only have a rather lame idea of creating xml files by hard-typing the elements myself...
like:

<root>
<name>Jim</name>
<age>23</age>
</root>

etc...
12:43 pm on Apr 16, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Have you considered the DOM Extension [php.net]? Small example: [webmasterworld.com...]