Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By robertlove on
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
FeedAPI
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?
Giving FeedAPI a go
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/