How do you convert a xml file into rss?

Discussion in 'XML & RSS' started by Sheepish, Apr 18, 2007.

  1. #1
    The title says it all, really. I have a datafile xml but I want it in rss2 to import it into a script. Can anyone suggest a fairly straightforward way of doing this?

    Thanks.
     
    Sheepish, Apr 18, 2007 IP
  2. Midano

    Midano Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    "XML file" is a very broad definition. It could be anything. Could be a proprietory format based on custom DTD, so it won't necessarily be compatible with RSS because RSS has a very limited set of predefined fields.
    If it IS compatible (meaning it could be converted into RSS) - your best bet would be writing a custom script to parse your XML source and output the RSS.
     
    Midano, Apr 18, 2007 IP