Page 1 of 1

Change the XML with PHP

Posted: Tue Jan 31, 2006 3:57 am
by gubak
Hi everyone!
First of all i am new in XML (I have some basic knowledge). I have got a project where I have to change an XML. Do I have to install some libraries to use XML command in PHP? Where can I find description about php and XML?

Thank you!

Posted: Tue Jan 31, 2006 4:21 am
by CoderGoblin
http://www.php.net/manual/ref.xml.php has some information although I would recommend a google search for PHP XML.

One of the questions you need to ask yourself however is are you needing to "parse" XML or just modify it. If all you need to do is modify it you would be better in my opinion to look at regular expression. (preg_match and it's family) as well as file handling.

All the best.