Welcome to WebmasterWorld Guest from 54.225.38.176

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

create xml file PHP

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

Junior Member

10+ Year Member

joined:Sept 26, 2005
posts:92
votes: 0


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)

Administrator

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

joined:July 31, 2003
posts:12541
votes: 1


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