irkevin Posted July 1, 2008 Share Posted July 1, 2008 Hi php community, I looking for a tutorial or maybe someone who can point me in the right direction I have an XML file with some data in it. Like this: <?xml version="1.0" encoding="ISO-8859-1"?> <news> <story> <title>Intro To Flash 8 Ships Today</title> <date>June 01</date> <body>Friday is the day that many of you have been waiting for. Our new Intro to Flash 8 Training series is available to ship and download. And we have decided to extend the presale price 1 more day to help celebrate the launch of this new product.</body> </story> </news> I want to create a php script that will update any text that is between the code tags of the XML file. Is this possible? Is there any tutorial about this? Quote Link to comment Share on other sites More sharing options...
webent Posted July 1, 2008 Share Posted July 1, 2008 Personally, I use this http://code.google.com/p/php-csv-utils/wiki/Documentation for most all of my xml / csv needs, does just about everything you can imagine... Edit: You know what, I was thinking that it took care of xml also, just looked, it doesn't... sorry... Just disregard my stupid post... but if you can't figure out how to loop through it and update it, you could always feed the xml into a temp db, update it and spit it back out as xml... Quote Link to comment Share on other sites More sharing options...
irkevin Posted July 1, 2008 Author Share Posted July 1, 2008 Well, I wonder how i can apply this code to what I'm trying to do ??? Quote Link to comment Share on other sites More sharing options...
webent Posted July 1, 2008 Share Posted July 1, 2008 Sorry, my bad, read my "Edit:" Quote Link to comment Share on other sites More sharing options...
irkevin Posted July 1, 2008 Author Share Posted July 1, 2008 Well, there must be a way to do this but i cant actually figure how! Hope someone can help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.