I'm building a news site with Drupal. I want to write a cron that picks up the news stories from XML files and inserts them into the Drupal database. Is there a way to replicate the functionality of the "Create Story" page at "/node/add/story"? Methods available via the API perhaps? Or, if there is any documentation that describes exactly what tables are updated when a new story is added?

Cheers

Comments

yelvington’s picture

The FeedAPI module provides a framework for this. It also includes parsers and processors for RSS data, which you can use as examples to write your own handlers for an XML format that isn't specifically supported.

What XML format are you looking to ingest? NITF?

robertlove’s picture

Very close - NewsML.

Thanks for the response. I'll be pulling back to Drupal 5 and giving FeedAPI a go.

Cheers

Robert Love
Signified
http://signified.com.au/