Google search appliance feed dtd – Google Search Appliance Feeds Protocol Developers Guide User Manual

Page 41

Advertising
background image

Google Search Appliance: Feeds Protocol Developer’s Guide

41

Google Search Appliance Feed DTD

The gsafeed.dtd file follows. You can view the DTD on your search appliance by browsing to the
http://<APPLIANCE-HOSTNAME>:7800/gsafeed.dtd URL.

<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT gsafeed (header, group+)>
<!ELEMENT header (datasource, feedtype)>
<!-- datasource name should match the regex [a-zA-Z_][a-zA-Z0-9_-]*,

the first character must be a letter or underscore,
the rest of the characters can be alphanumeric, dash, or underscore. -->

<!ELEMENT datasource (#PCDATA)>
<!-- feedtype must be either 'full', 'incremental', or 'metadata-and-url' -->
<!ELEMENT feedtype (#PCDATA)>

<!-- group element lets you group records together and

specify a common action for them -->

<!ELEMENT group ((acl|record)*)>

<!-- record element can have attribute that overrides group's element-->
<!ELEMENT record (acl?,metadata*,content*)>
<!ELEMENT metadata (meta*)>
<!ELEMENT meta EMPTY>
<!ELEMENT content (#PCDATA)>

<!-- acl element allows directly associating acls with a url -->
<!ELEMENT acl (principal*)>
<!ELEMENT principal (#PCDATA)>

Advertising