homepage Welcome to WebmasterWorld Guest from 107.22.70.215
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
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
RyujinKiryuu




msg:4599098
 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

 

coopster




msg:4602016
 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:
[php.net...]

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved