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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.