Forum Moderators: coopster

Message Too Old, No Replies

Creating new XML Doc with PHP

         

RyujinKiryuu

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

10+ Year Member



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

coopster

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

WebmasterWorld Administrator 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...]