using xmlreader and xmlwriter to modify and rewrite a feed?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I am very new to PHP. What I need to do is read an XML file (RSS feed)
into memory, iterate through the file changing one particular value
for each entry, and write a new XML file with a different name.

I have a pretty good understanding of how to use xmlreader to read the
XML file and get at the values for each item in the feed. What I'm
wondering is, can I use xmlwriter simultaneously with xmlreader to
modify one of the values (if it's the value that needs modifying), and
rewrite the XML file? It seems as if that would be possible, but I
wonder if there are any examples out there that might help me wrap my
head around it.



Site Timeline