homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Creating new XML Doc with PHP

Msg#: 4599096 posted 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.





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

Msg#: 4599096 posted 11:59 pm on Aug 14, 2013 (gmt 0)

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:

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved