Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Creating new XML Doc with PHP

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

New User

joined:Aug 3, 2013
posts: 1
votes: 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.


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


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

joined:July 31, 2003
votes: 2

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:

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members