Change the XML with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gubak
Forum Newbie
Posts: 3
Joined: Tue Jul 12, 2005 12:07 am

Change the XML with PHP

Post 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!
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post 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.
Post Reply