Forum Moderators: coopster

Message Too Old, No Replies

XML parsing with php

         

asantos

7:53 pm on Jun 28, 2006 (gmt 0)

10+ Year Member



Do you know any good libraries (or small classes) that allow me to:

* read xml generated files
* generate xml files
* insert nodes to existing xml files

Thanks,
Andres

coopster

8:17 pm on Jun 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you are going to do any XML work at all I would recommend using PHP5 and the SimpleXML [php.net] functions as well as the DOM [php.net] functions.

asantos

8:21 pm on Jun 28, 2006 (gmt 0)

10+ Year Member



Actually, my hosting server only provides PHP 4 ... any suggestions?

coopster

8:33 pm on Jun 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Get a different host ;)

Well, folks were parsing XML long before PHP5, but you will notice in PHP5 that it was all overhauled. That is why I recommend using PHP5 functions rather than the old XML functions. Look in the manual links there and you will find the information is still there.