[prefix_]preProcessFeed
Use this function to perform any operations at the start of processing a feed. If paging is performed using the functions getFeedUrlParameters
and getNextUrlParameters
, this function is only called for the first page. If paging parameters are set in the URL by the getFeedUrls
function and updated using the getNextUrls
or getNextUrlXPaths
, then this function will be called for each page.
Inputs: | xml (XmlDocument) |
Outputs: | [NONE] |
See also: |
[prefix_]getFeedUrlParameters
|
Example
function myPrefix_preProcessFeed(xml) if (get_feed_param("LATEST_ID") == nil) set_feed_param("LATEST_ID") = xml:XPathValue("/atom:feed/atom:entry/atom:id") end end