Rolland, Susie (DIS) wrote: > the rss file will be created through a content management system > (Teamsite). Communication people will enter a headline and a link and > the script behind will use the wonderful XML::RSS to insert the new > item. We would like the reverse to happen also, they enter a > headline or a link and the script behind can find the item and delete > it ... a new method for XML:RSS to remove would be really cool ... > right now I am looking at XML::DOM ... is SAX easier?
Actually, I think you can do it with XML::RSS. You would use parse() to bring in the file, then manipulate the @{$rss->{items}} array and write the file back out with as_string(). Look at the docs for XML::RSS for some examples that are close to this... You could subclass XML::RSS and add a method to encapsulate this. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>