Welcome to WebmasterWorld Guest from 54.211.86.24

Forum Moderators: coopster & jatar k

Creating new XML Doc with PHP

   
6:34 pm on Aug 3, 2013 (gmt 0)



Hello, I have been trying to make a php script that will create an XML doc, reopen it, and put user generated data from a form into it.

I've tried servile different ways to do this, though I'm kind of a noob when it comes to php, and don't know how to correctly use some of the code I'm working with.

This is the code I'm trying to use, don't know how to properly use it because php.net doesn't have a good description for it, only lists the code and what it does.

$doc = domxml_new_doc ( string "something_else" );




Any help would be appreciated.

Thanks.

RyujinKiryuu
11:59 pm on Aug 14, 2013 (gmt 0)

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



Welcome to WebmasterWorld, RyujinKiryuu.

Have you considered SimpleXML? It may be easier for you. There is an example page as well showing how to use the API:
[php.net...]
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month