xp-framework/xp-contrib — pull request #22 by thekid (2012-11-28 14:18:08+00:00)
Title: GSA Indexer API

This pull request adds an API to the GSA (Google Search Appliance)'s xml feed.

Usage:
```groovy
$feed= new XmlFeed($this.getClass().getSimpleName(), FeedType::$INCREMENTAL);
foreach ($record in $records) {
$feed.addRecord('add', new ContentRecord($record['url'], 'text/html',
'

' ~
'

' ~ $record['title'] ~ '

' ~
'

' ~
$record['body'] ~
'

'
));
}

try {
new FeedConnection('http://gsa-test01.examplecom:19900/xmlfeed').publish($feed);
} catch (FeedPublishingException $e) {
// Handle
}
```