RE: [PHP] PHP and XML
| From: | Vincent DUPONT | Date: | Thu, 23 Nov 2006 15:11:10 +0000 |
| Subject: | RE: [PHP] PHP and XML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245091@lists.php.net to get a copy of this message | ||
Hi,
what do you plan to do with XML? Store your adresses, etc?
Then you can create an XML object with simpleXML (see http://be2.php.net/simplexml/)
This will help you in adding nodes and attributes.
Afterward, you can generate a output with $xml->asXML() and store this into a file with
file_put_content($xml->asXML());
If you edit a xml file in a text editor, you will see it is rather simple....
study the simpleXML methods and you are ready !
best whishes !
vincent
-----Original Message-----
From: onewaylife [mailto:rakesh.mishra@gmail.com]
Sent: Thu 23/11/2006 13:57
To: php-general@lists.php.net
Subject: [PHP] PHP and XML
Dear All
I am novice in PHP & XML, while trying I am creating a small application
i.e. Address Book.
In this I am using Apache2, PHP5 and XML no database is used. I have FC5
machines. but I am unable to store the files in XML. If any one share their
experience in this by providing Examples or tutorials etc...
So far I have found tutorial related to porting the information of data from
MySQL to XML and then php with help of DOM.
Thanks
onewaylife
--
View this message in context: http://www.nabble.com/PHP-and-XML-tf2692397.html#a7507917
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php