Jump to content

Need someone to point me in the right direction


irkevin

Recommended Posts

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?

Link to comment
Share on other sites

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

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.