Web feed with base64 encoded metadata, Full content feed – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 38

Advertising
background image

Google Search Appliance: Feeds Protocol Developer’s Guide

38

Web Feed with Base64 Encoded Metadata

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN" "">
<gsafeed>

<header>

<datasource>example3</datasource>
<feedtype>metadata-and-url</feedtype>

</header>
<group>

<record url="http://example.com/myfeed.html" action="add" mimetype="text/

html">

<metadata>

<meta encoding="base64binary" name="cHJvamVjdF9uYW1l"

content="Y2lyY2xlZ19yb2Nrcw=="/>

</metadata>

</record>

</group>

</gsafeed>

Full Content Feed

<?xml version="1.0" encoding="UTF8"?>
<!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN" "">
<gsafeed>

<header>

<datasource>sample</datasource>
<feedtype>full</feedtype>

</header>
<group>

<record url="http://www.corp.enterprise.com/hello01" mimetype="text/plain"

last-modified="Tue, 6 Nov 2007 12:45:26 GMT">
<content>This is hello01</content>

</record>
<record url="http://www.corp.enterprise.com/hello02" mimetype="text/plain"

lock="true">
<content>This is hello02</content>

</record>
<record url="http://www.corp.enterprise.com/hello03" mimetype="text/html">
<content><![CDATA[

<html>

<head><title>namaste</title></head>
<body>

This is hello03

</body>

</html>

]]></content>
</record>
<record url="http://www.corp.enterprise.com/hello04" mimetype="text/html">

<content encoding="base64binary">Zm9vIGJhcgo</content>

</record>

</group>

</gsafeed>

Advertising