[prefix_]getNextUrlXPaths
Use this function to return XPaths referencing additional feed URLs to be processed with optional function prefixes. All subsequent function calls relating to a particular feed URL require the specified function prefix. This can be used to handle paging or to process different but related feeds.
Inputs: | xml (XmlDocument) |
Outputs: | xpaths (list:{string} or table:{string->string} or table:{string->list:{string}}) |
See also: |
Example
function myPrefix_getNextUrlXPaths(xml) cache_result() return { "/atom:feed/atom:link[@rel='next']/@href", prefix1=xpath1, prefix2={xpath2, xpath3} } end