summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2009-04-16 21:05:34 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2009-04-16 21:05:34 +0000
commit3a1364ed5cc20c25264aa48523a050a087fe3267 (patch)
treed11da480101f0c86b1d7941f415f0152b7ba25d7 /examples
parent9050a3c4c547b7bcbe3b0e9505fedc961603a296 (diff)
removed example lines from SurrogateReader sources; added additional example file
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5816 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'examples')
-rw-r--r--examples/surrogate_generic.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/surrogate_generic.xml b/examples/surrogate_generic.xml
new file mode 100644
index 000000000..ea75f78da
--- /dev/null
+++ b/examples/surrogate_generic.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- YaCy surrogate file generic element notion -->
+<!--
+ This is a generic surrogate file which is an alternative
+ intermediate document description file for index harvesting.
+
+ For details please see surrogate_dublin_core.xml
+
+ This file format has a generic content description, but YaCy
+ is currently not flexible enough to allow generic index content
+ descriptions. This file only shows a possible framework
+ for future developments.
+-->
+
+<surrogate>
+
+ <document>
+ <element name="title">
+ <value><![CDATA[Alan Smithee]]></value>
+ </element>
+ <element name="url">
+ <value>http://de.wikipedia.org/wiki/Alan_Smithee</value>
+ </element>
+ <element name="docdatetime">
+ <value>2009-04-14T00:00:00Z</value>
+ </element>
+ <element name="language">
+ <value>de</value>
+ </element>
+ <element name="body">
+ <value><![CDATA[Der als Filmregisseur oft genannte '''Alan Smithee''' ist ein Anagramm]]></value>
+ </element>
+ <element name="categories">
+ <value><![CDATA[Fiktive Person;Pseudonym]]></value>
+ </element>
+ </document>
+
+</surrogate> \ No newline at end of file