Jump to content

PHP and XML


Drumminxx

Recommended Posts

I started this project that updates about a dozen xml files that provides data for a flash website.

my question is does php have any functions for writing to xml files?

to be more specific... I can parse the xml with no problem using php functions so thats cool.

updating it however, I can not find any info on this.

My best solutions are to treat them as text files and use a series of strpos, stristr, etc. to update the files or use a database to store the info and add, edit or delete from the database and then rewrite the xml files.

any thoughts on this....

thanks
Link to comment
https://forums.phpfreaks.com/topic/12850-php-and-xml/
Share on other sites

A couple of years ago, I used xml_parser_create and some of its sibling functions.

But, last Fall I had to do another project and found the pear package 'XML_Serializer' was much better.

I mention 'last Fall' because things seem to change and there may be something better in the Pear repository now.
Link to comment
https://forums.phpfreaks.com/topic/12850-php-and-xml/#findComment-49329
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.