summaryrefslogtreecommitdiffstats
path: root/document/src/tests/vespaxml
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/tests/vespaxml')
-rwxr-xr-xdocument/src/tests/vespaxml/fieldpathupdates.xml54
-rw-r--r--document/src/tests/vespaxml/test1.expected.xml5
-rw-r--r--document/src/tests/vespaxml/test1.xml9
-rw-r--r--document/src/tests/vespaxml/test10.xml9
-rw-r--r--document/src/tests/vespaxml/test11.xml8
-rw-r--r--document/src/tests/vespaxml/test12.xml9
-rw-r--r--document/src/tests/vespaxml/test13.xml7
-rw-r--r--document/src/tests/vespaxml/test14.xml8
-rw-r--r--document/src/tests/vespaxml/test15.xml8
-rw-r--r--document/src/tests/vespaxml/test16.xml8
-rw-r--r--document/src/tests/vespaxml/test17.xml9
-rw-r--r--document/src/tests/vespaxml/test18.xml9
-rw-r--r--document/src/tests/vespaxml/test2.expected.xml5
-rw-r--r--document/src/tests/vespaxml/test2.xml7
-rw-r--r--document/src/tests/vespaxml/test20.xml8
-rw-r--r--document/src/tests/vespaxml/test21.xml9
-rw-r--r--document/src/tests/vespaxml/test22.xml9
-rw-r--r--document/src/tests/vespaxml/test23.xml9
-rw-r--r--document/src/tests/vespaxml/test24.xml9
-rw-r--r--document/src/tests/vespaxml/test25.xml9
-rw-r--r--document/src/tests/vespaxml/test26.xml9
-rw-r--r--document/src/tests/vespaxml/test27.xml9
-rw-r--r--document/src/tests/vespaxml/test28.xml10
-rw-r--r--document/src/tests/vespaxml/test29.xml18
-rw-r--r--document/src/tests/vespaxml/test3.xml9
-rw-r--r--document/src/tests/vespaxml/test30.xml15
-rw-r--r--document/src/tests/vespaxml/test32.xml7
-rw-r--r--document/src/tests/vespaxml/test33.xml9
-rw-r--r--document/src/tests/vespaxml/test34.xml7
-rw-r--r--document/src/tests/vespaxml/test35.xml9
-rw-r--r--document/src/tests/vespaxml/test36.xml43
-rw-r--r--document/src/tests/vespaxml/test37.xml23
-rw-r--r--document/src/tests/vespaxml/test4.xml23
-rw-r--r--document/src/tests/vespaxml/test40.xml6
-rw-r--r--document/src/tests/vespaxml/test41.xml22
-rw-r--r--document/src/tests/vespaxml/test42.xml22
-rw-r--r--document/src/tests/vespaxml/test43.xml32
-rw-r--r--document/src/tests/vespaxml/test45.xml6
-rw-r--r--document/src/tests/vespaxml/test46.xml10
-rw-r--r--document/src/tests/vespaxml/test47.xml10
-rw-r--r--document/src/tests/vespaxml/test48.xml6
-rw-r--r--document/src/tests/vespaxml/test49.xml8
-rw-r--r--document/src/tests/vespaxml/test5.expected.xml3
-rw-r--r--document/src/tests/vespaxml/test5.xml6
-rw-r--r--document/src/tests/vespaxml/test50.xml8
-rw-r--r--document/src/tests/vespaxml/test51.xml6
-rw-r--r--document/src/tests/vespaxml/test52.xml10
-rw-r--r--document/src/tests/vespaxml/test53.xml11
-rw-r--r--document/src/tests/vespaxml/test54.xml10
-rw-r--r--document/src/tests/vespaxml/test55.xml11
-rw-r--r--document/src/tests/vespaxml/test56.xml8
-rw-r--r--document/src/tests/vespaxml/test57.xml8
-rw-r--r--document/src/tests/vespaxml/test58.xml15
-rw-r--r--document/src/tests/vespaxml/test59.xml7
-rw-r--r--document/src/tests/vespaxml/test6.xml7
-rw-r--r--document/src/tests/vespaxml/test7.xml9
-rw-r--r--document/src/tests/vespaxml/test8.xml9
-rw-r--r--document/src/tests/vespaxml/test9.xml7
-rw-r--r--document/src/tests/vespaxml/test_arraystruct.xml19
-rw-r--r--document/src/tests/vespaxml/test_doc5.xml8
-rw-r--r--document/src/tests/vespaxml/test_doc6.xml6
-rw-r--r--document/src/tests/vespaxml/test_doc8.xml9
-rw-r--r--document/src/tests/vespaxml/test_externalentity.xml11
-rw-r--r--document/src/tests/vespaxml/test_idprefix.xml13
-rw-r--r--document/src/tests/vespaxml/test_struct.xml9
-rw-r--r--document/src/tests/vespaxml/test_update1.xml12
-rw-r--r--document/src/tests/vespaxml/vespaxmldoctype.cfg133
-rw-r--r--document/src/tests/vespaxml/xxe.txt1
68 files changed, 877 insertions, 0 deletions
diff --git a/document/src/tests/vespaxml/fieldpathupdates.xml b/document/src/tests/vespaxml/fieldpathupdates.xml
new file mode 100755
index 00000000000..c775509f070
--- /dev/null
+++ b/document/src/tests/vespaxml/fieldpathupdates.xml
@@ -0,0 +1,54 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documenttype="news" documentid="doc:test:http://www.ntnu.no/">
+ <assign fieldpath="url">assignUrl</assign>
+ <assign fieldpath="title">assignTitle</assign>
+ <assign fieldpath="last_downloaded">1</assign>
+ <assign fieldpath="value_long">2</assign>
+ <assign fieldpath="value_content">assignContent</assign>
+ <assign fieldpath="stringarr">
+ <item>assignString1</item>
+ <item>assignString2</item>
+ </assign>
+ <assign fieldpath="intarr">
+ <item>3</item>
+ <item>4</item>
+ </assign>
+ <assign fieldpath="longarr">
+ <item>5</item>
+ <item>6</item>
+ </assign>
+ <assign fieldpath="bytearr">
+ <item>7</item>
+ <item>8</item>
+ </assign>
+ <assign fieldpath="floatarr">
+ <item>9</item>
+ <item>10</item>
+ </assign>
+ <assign fieldpath="weightedsetint">
+ <item weight="11">11</item>
+ <item weight="12">12</item>
+ </assign>
+ <assign fieldpath="weightedsetstring">
+ <item weight="13">assign13</item>
+ <item weight="14">assign14</item>
+ </assign>
+
+ <add fieldpath="stringarr">
+ <item>addString1</item>
+ <item>addString2</item>
+ </add>
+ <add fieldpath="longarr">
+ <item>5</item>
+ </add>
+
+ <assign fieldpath="weightedsetint{13}">13</assign>
+ <assign fieldpath="weightedsetint{14}">14</assign>
+ <assign fieldpath="weightedsetstring{add13}">1</assign>
+ <assign fieldpath="weightedsetstring{assign13}">130</assign>
+
+ <remove fieldpath="weightedsetstring{assign14}"/>
+ <remove fieldpath="bytearr"/>
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test1.expected.xml b/document/src/tests/vespaxml/test1.expected.xml
new file mode 100644
index 00000000000..a369cfff4a6
--- /dev/null
+++ b/document/src/tests/vespaxml/test1.expected.xml
@@ -0,0 +1,5 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<document documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+</document>
diff --git a/document/src/tests/vespaxml/test1.xml b/document/src/tests/vespaxml/test1.xml
new file mode 100644
index 00000000000..1c155182b14
--- /dev/null
+++ b/document/src/tests/vespaxml/test1.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd idprefix="doc:crawler:">
+ <document documenttype="news" documentid="http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test10.xml b/document/src/tests/vespaxml/test10.xml
new file mode 100644
index 00000000000..b310f14da1c
--- /dev/null
+++ b/document/src/tests/vespaxml/test10.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title>Test<Title</title>
+ <last_downloaded>hundred</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test11.xml b/document/src/tests/vespaxml/test11.xml
new file mode 100644
index 00000000000..d8cdb32697e
--- /dev/null
+++ b/document/src/tests/vespaxml/test11.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <document type="news" id="doc:crawler/http://www.ntnu���.no/">
+ </document>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test12.xml b/document/src/tests/vespaxml/test12.xml
new file mode 100644
index 00000000000..1f2f3375ade
--- /dev/null
+++ b/document/src/tests/vespaxml/test12.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title></title>
+ <last_downloaded></last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test13.xml b/document/src/tests/vespaxml/test13.xml
new file mode 100644
index 00000000000..8f12ea42c93
--- /dev/null
+++ b/document/src/tests/vespaxml/test13.xml
@@ -0,0 +1,7 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+</vespa>
diff --git a/document/src/tests/vespaxml/test14.xml b/document/src/tests/vespaxml/test14.xml
new file mode 100644
index 00000000000..7e0eaa270ae
--- /dev/null
+++ b/document/src/tests/vespaxml/test14.xml
@@ -0,0 +1,8 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <last_downloaded>123</last_downloaded>
+ </doc>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test15.xml b/document/src/tests/vespaxml/test15.xml
new file mode 100644
index 00000000000..f4b25cd0aea
--- /dev/null
+++ b/document/src/tests/vespaxml/test15.xml
@@ -0,0 +1,8 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title>TestTitle</tit>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test16.xml b/document/src/tests/vespaxml/test16.xml
new file mode 100644
index 00000000000..727e1dc834b
--- /dev/null
+++ b/document/src/tests/vespaxml/test16.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <documentid type="news" id="doc:crawler:http://www.ntnu.no/">
+ </documentid>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test17.xml b/document/src/tests/vespaxml/test17.xml
new file mode 100644
index 00000000000..c0046253c79
--- /dev/null
+++ b/document/src/tests/vespaxml/test17.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/1">
+ </document>
+ </vespaadd>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/2">
+ </document>
+ </vespaadd>
diff --git a/document/src/tests/vespaxml/test18.xml b/document/src/tests/vespaxml/test18.xml
new file mode 100644
index 00000000000..c8798f8fc43
--- /dev/null
+++ b/document/src/tests/vespaxml/test18.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="article" id="doc:crawler/http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test2.expected.xml b/document/src/tests/vespaxml/test2.expected.xml
new file mode 100644
index 00000000000..a369cfff4a6
--- /dev/null
+++ b/document/src/tests/vespaxml/test2.expected.xml
@@ -0,0 +1,5 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<document documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+</document>
diff --git a/document/src/tests/vespaxml/test2.xml b/document/src/tests/vespaxml/test2.xml
new file mode 100644
index 00000000000..9dae17e830f
--- /dev/null
+++ b/document/src/tests/vespaxml/test2.xml
@@ -0,0 +1,7 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test20.xml b/document/src/tests/vespaxml/test20.xml
new file mode 100644
index 00000000000..867c4829c36
--- /dev/null
+++ b/document/src/tests/vespaxml/test20.xml
@@ -0,0 +1,8 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <endoffeed>
+ <name>default</name>
+ <generations>10</generations>
+ <increment>11</increment>
+ </endoffeed>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test21.xml b/document/src/tests/vespaxml/test21.xml
new file mode 100644
index 00000000000..daad994b84b
--- /dev/null
+++ b/document/src/tests/vespaxml/test21.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>21474836480</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test22.xml b/document/src/tests/vespaxml/test22.xml
new file mode 100644
index 00000000000..ec20024693d
--- /dev/null
+++ b/document/src/tests/vespaxml/test22.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <value_long>9223372036854775807</value_long>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test23.xml b/document/src/tests/vespaxml/test23.xml
new file mode 100644
index 00000000000..68afd6ec565
--- /dev/null
+++ b/document/src/tests/vespaxml/test23.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <value_long>-9223372036854775807</value_long>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test24.xml b/document/src/tests/vespaxml/test24.xml
new file mode 100644
index 00000000000..b386bb2c092
--- /dev/null
+++ b/document/src/tests/vespaxml/test24.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <value_long>18446744073709551615</value_long>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test25.xml b/document/src/tests/vespaxml/test25.xml
new file mode 100644
index 00000000000..72a19e8da60
--- /dev/null
+++ b/document/src/tests/vespaxml/test25.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <value_long>18446744073709551616</value_long>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test26.xml b/document/src/tests/vespaxml/test26.xml
new file mode 100644
index 00000000000..698e615c274
--- /dev/null
+++ b/document/src/tests/vespaxml/test26.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>0x123</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test27.xml b/document/src/tests/vespaxml/test27.xml
new file mode 100644
index 00000000000..94c5f3c1d32
--- /dev/null
+++ b/document/src/tests/vespaxml/test27.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler/http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>0x123</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test28.xml b/document/src/tests/vespaxml/test28.xml
new file mode 100644
index 00000000000..f1995d295bb
--- /dev/null
+++ b/document/src/tests/vespaxml/test28.xml
@@ -0,0 +1,10 @@
+<!-- Test content -->
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitleContent</title>
+ <value_content contenttype="text/html" encoding="utf-8" language="en"><![CDATA[<html><body><h1>This is the title</h1></body></html>]]></value_content>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test29.xml b/document/src/tests/vespaxml/test29.xml
new file mode 100644
index 00000000000..1f33b9f7555
--- /dev/null
+++ b/document/src/tests/vespaxml/test29.xml
@@ -0,0 +1,18 @@
+<!-- Test field attribute -->
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news">
+ <field name="uri">doc:crawler:http://www.ntnu.no/</field>
+ <field name="title">TestTitleContent</field>
+ <field name="value_content" contenttype="text/html" encoding="UTF-8" language="NO">This is content</field>
+ <last_downloaded>345</last_downloaded>
+ </document>
+ <document type="news">
+ <field name="uri">doc:crawler:http://www.ntnu.no/2</field>
+ <field name="title">TestTitleContent2</field>
+ <field name="value_content">This is content2</field>
+ <last_downloaded>345</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test3.xml b/document/src/tests/vespaxml/test3.xml
new file mode 100644
index 00000000000..81d87679211
--- /dev/null
+++ b/document/src/tests/vespaxml/test3.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove idprefix="doc:crawler:">
+ <documentid type="news">
+ <uri>http://www.ntnu.no/</uri>
+ <last_downloaded></last_downloaded>
+ </documentid>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test30.xml b/document/src/tests/vespaxml/test30.xml
new file mode 100644
index 00000000000..6fbb6fae8ba
--- /dev/null
+++ b/document/src/tests/vespaxml/test30.xml
@@ -0,0 +1,15 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed xmlns:xsd="http://www.w3.org/2001/XMLSchema-datatypes"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title xsi:type="xsd:hexBinary">E5AEB6E59BADE3808220044BE680AC</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ <document type="news" id="doc:crawler:http://www.ntnu.org/">
+ <title xsi:type="xsd:base64Binary">5a625Zut44CCIARL5oCs</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
+
diff --git a/document/src/tests/vespaxml/test32.xml b/document/src/tests/vespaxml/test32.xml
new file mode 100644
index 00000000000..b2f7976c124
--- /dev/null
+++ b/document/src/tests/vespaxml/test32.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid id="doc:crawler:http://www.ntnu���.no/"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test33.xml b/document/src/tests/vespaxml/test33.xml
new file mode 100644
index 00000000000..264be7f3e02
--- /dev/null
+++ b/document/src/tests/vespaxml/test33.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid>
+ <uri>http://www.ntnu.no/</uri>
+ </documentid>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test34.xml b/document/src/tests/vespaxml/test34.xml
new file mode 100644
index 00000000000..a3c80415899
--- /dev/null
+++ b/document/src/tests/vespaxml/test34.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid id="http://www.ntnu.no/"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test35.xml b/document/src/tests/vespaxml/test35.xml
new file mode 100644
index 00000000000..e02a755cc99
--- /dev/null
+++ b/document/src/tests/vespaxml/test35.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title binaryencoding="base64">VmVzcGEgcnVsZXM=</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test36.xml b/document/src/tests/vespaxml/test36.xml
new file mode 100644
index 00000000000..3eed0c4cb2a
--- /dev/null
+++ b/document/src/tests/vespaxml/test36.xml
@@ -0,0 +1,43 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd idprefix="doc:crawler:">
+ <document type="news" id="http://www.ntnu.no/1">
+ <title>TestTitle1</title>
+ <last_downloaded>100</last_downloaded>
+ <stringarr>
+ <item>one</item>
+ <item>two</item>
+ <item>three</item>
+ <item>four</item>
+ <item>five</item>
+ </stringarr>
+ <intarr>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ </intarr>
+ </document>
+ <document type="news" id="http://www.ntnu.no/2">
+ <title>TestTitle2</title>
+ <intarr>
+ <item>o1</item>
+ </intarr>
+ </document>
+ <document type="news" id="http://www.ntnu.no/3">
+ <title>TestTitle3</title>
+ <intarr>
+ <tem>1</tem>
+ </intarr>
+ </document>
+ <document type="news" id="http://www.ntnu.no/4">
+ <title>TestTitle4</title>
+ <intarr></intarr>
+ </document>
+ <document type="news" id="http://www.ntnu.no/5">
+ <title>TestTitle5</title>
+ <intarr>1</intarr>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test37.xml b/document/src/tests/vespaxml/test37.xml
new file mode 100644
index 00000000000..1c2f6e01006
--- /dev/null
+++ b/document/src/tests/vespaxml/test37.xml
@@ -0,0 +1,23 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd idprefix="doc:crawler:">
+ <document type="news" id="http://www.ntnu.no/1">
+ <title>TestTitle1</title>
+ <last_downloaded>100</last_downloaded>
+ <weightedsetstring>
+ <item>one</item>
+ <item>two</item>
+ <item>three</item>
+ <item>four</item>
+ <item>five</item>
+ </weightedsetstring>
+ <weightedsetint>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ </weightedsetint>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test4.xml b/document/src/tests/vespaxml/test4.xml
new file mode 100644
index 00000000000..7c0c3682cd3
--- /dev/null
+++ b/document/src/tests/vespaxml/test4.xml
@@ -0,0 +1,23 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+
+ <vespaadd idprefix="doc:crawler:">
+ <document type="news" id="http://www.uio.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+
+ <document type="news" id="http://www.dagbladet.no/">
+ <title>Title2</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+
+ <vespaadd>
+ <document type="news" id="doc:crawler2:http://www.vg.no/">
+ <title>Title2</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test40.xml b/document/src/tests/vespaxml/test40.xml
new file mode 100644
index 00000000000..ecfb745415a
--- /dev/null
+++ b/document/src/tests/vespaxml/test40.xml
@@ -0,0 +1,6 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <assign field="title">TestTitle</assign>
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test41.xml b/document/src/tests/vespaxml/test41.xml
new file mode 100644
index 00000000000..052f4076025
--- /dev/null
+++ b/document/src/tests/vespaxml/test41.xml
@@ -0,0 +1,22 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <assign field="stringarr">
+ <item>First</item>
+ <item>Second</item>
+ </assign>
+ <add field="stringarr">
+ <item>Third</item>
+ <item>Fourth</item>
+ </add>
+ <remove field="stringarr">
+ <item>Fifth</item>
+ <item>Sixth</item>
+ </remove>
+ <assign field="intarr">
+ <item>100</item>
+ <item>200</item>
+ </assign>
+ <assign field="intarr"></assign>
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test42.xml b/document/src/tests/vespaxml/test42.xml
new file mode 100644
index 00000000000..da3e94410df
--- /dev/null
+++ b/document/src/tests/vespaxml/test42.xml
@@ -0,0 +1,22 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <assign field="weightedsetstring">
+ <item weight="1">First</item>
+ <item weight="2">Second</item>
+ </assign>
+ <add field="weightedsetstring">
+ <item weight="3">Third</item>
+ <item weight="4">Fourth</item>
+ </add>
+ <remove field="weightedsetstring">
+ <item>Fifth</item>
+ <item>Sixth</item>
+ </remove>
+ <assign field="weightedsetint">
+ <item weight="1">100</item>
+ <item weight="2">200</item>
+ </assign>
+ <assign field="weightedsetint"></assign>
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test43.xml b/document/src/tests/vespaxml/test43.xml
new file mode 100644
index 00000000000..16944dde9fa
--- /dev/null
+++ b/document/src/tests/vespaxml/test43.xml
@@ -0,0 +1,32 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <value_long>1008</value_long>
+ <weightedsetstring>
+ <item weight="1">First</item>
+ <item weight="2">Second</item>
+ </weightedsetstring>
+ </document>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <increment field="value_long" by="1" />
+ <decrement field="value_long" by="2" />
+ <divide field="value_long" by="3" />
+ <multiply field="value_long" by="4" />
+ </update>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <alter field="value_long">
+ <increment by="5" />
+ <decrement by="6" />
+ </alter>
+ <alter field="value_long">
+ <divide by="7" />
+ <multiply by="8" />
+ </alter>
+ </update>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <increment field="weightedsetstring" by="9">
+ <key>First</key>
+ <key>Second</key>
+ </increment>
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test45.xml b/document/src/tests/vespaxml/test45.xml
new file mode 100644
index 00000000000..eb13e59a0da
--- /dev/null
+++ b/document/src/tests/vespaxml/test45.xml
@@ -0,0 +1,6 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documenttype="news" documentid="doc:crawler:http://www.ntnu.no/">
+ <remove field="floatarr" />
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test46.xml b/document/src/tests/vespaxml/test46.xml
new file mode 100644
index 00000000000..75d69f3a8b5
--- /dev/null
+++ b/document/src/tests/vespaxml/test46.xml
@@ -0,0 +1,10 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document documenttype="news" documentid="doc:crawler:http://www.blargh.example.com/" lastmodified="98798787">
+ <value_long>1008</value_long>
+ <weightedsetstring>
+ <item weight="1">First</item>
+ <item weight="2">Second</item>
+ </weightedsetstring>
+ </document>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test47.xml b/document/src/tests/vespaxml/test47.xml
new file mode 100644
index 00000000000..5944158c7c6
--- /dev/null
+++ b/document/src/tests/vespaxml/test47.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- VERY BAD: -->
+ <vespaadd>
+ <documentid type="news">
+ <uri>doc:this:is:very:bad</uri>
+ </documentid>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test48.xml b/document/src/tests/vespaxml/test48.xml
new file mode 100644
index 00000000000..a9bdd94d098
--- /dev/null
+++ b/document/src/tests/vespaxml/test48.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- VERY BAD: -->
+ <documentid type="news" id="doc:this:is:even:worse" />
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test49.xml b/document/src/tests/vespaxml/test49.xml
new file mode 100644
index 00000000000..dc8a67c64bb
--- /dev/null
+++ b/document/src/tests/vespaxml/test49.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- VERY BAD: -->
+ <documentid type="news">
+ <uri>doc:this:is:very:very:ugly</uri>
+ </documentid>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test5.expected.xml b/document/src/tests/vespaxml/test5.expected.xml
new file mode 100644
index 00000000000..164799749c8
--- /dev/null
+++ b/document/src/tests/vespaxml/test5.expected.xml
@@ -0,0 +1,3 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<remove documentid="doc:crawler:http://www.ntnu.no/"/>
+
diff --git a/document/src/tests/vespaxml/test5.xml b/document/src/tests/vespaxml/test5.xml
new file mode 100644
index 00000000000..a6a6f8f0f9f
--- /dev/null
+++ b/document/src/tests/vespaxml/test5.xml
@@ -0,0 +1,6 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid documentid="doc:crawler:http://www.ntnu.no/"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test50.xml b/document/src/tests/vespaxml/test50.xml
new file mode 100644
index 00000000000..0909bcf2795
--- /dev/null
+++ b/document/src/tests/vespaxml/test50.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- OK: -->
+ <vesparemove>
+ <documentid type="news" id="doc:this:an:ok:removal"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test51.xml b/document/src/tests/vespaxml/test51.xml
new file mode 100644
index 00000000000..698a305d33c
--- /dev/null
+++ b/document/src/tests/vespaxml/test51.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- OK: -->
+ <remove documentid="doc:this:is:also:an:ok:removal"/>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test52.xml b/document/src/tests/vespaxml/test52.xml
new file mode 100644
index 00000000000..d569f5ada1b
--- /dev/null
+++ b/document/src/tests/vespaxml/test52.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- OK: -->
+ <vespaadd>
+ <document documentid="doc:blah:blah:blah" documenttype="news">
+ <value_long>2345</value_long>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test53.xml b/document/src/tests/vespaxml/test53.xml
new file mode 100644
index 00000000000..28c2161c956
--- /dev/null
+++ b/document/src/tests/vespaxml/test53.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- HALF BAD, BUT NOT ALLOWED: -->
+ <vespaadd>
+ <document documentid="doc:blah:blah:blah" documenttype="news">
+ <value_long>2345</value_long>
+ </document>
+ <documentid type="news" id="doc:half:bad:add"/>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test54.xml b/document/src/tests/vespaxml/test54.xml
new file mode 100644
index 00000000000..90f41b6d32d
--- /dev/null
+++ b/document/src/tests/vespaxml/test54.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- VERY BAD: -->
+ <vesparemove>
+ <document documentid="doc:bluh:bluh:bluh" documenttype="news">
+ <value_long>45</value_long>
+ </document>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test55.xml b/document/src/tests/vespaxml/test55.xml
new file mode 100644
index 00000000000..8fcd4a31d1f
--- /dev/null
+++ b/document/src/tests/vespaxml/test55.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- HALF BAD, BUT NOT ALLOWED: -->
+ <vesparemove>
+ <documentid type="news" id="doc:this:remove:is:half:bad"/>
+ <document documentid="doc:bluh:bluh:bluh" documenttype="news">
+ <value_long>45</value_long>
+ </document>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test56.xml b/document/src/tests/vespaxml/test56.xml
new file mode 100644
index 00000000000..489ff494fc0
--- /dev/null
+++ b/document/src/tests/vespaxml/test56.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- VERY BAD: -->
+ <vesparemove>
+ <document documentid="doc:bluh:bluh:bluh" documenttype="news" />
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test57.xml b/document/src/tests/vespaxml/test57.xml
new file mode 100644
index 00000000000..6653b0260af
--- /dev/null
+++ b/document/src/tests/vespaxml/test57.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <!-- OK: -->
+ <document documentid="doc:blih:blih:blih" documenttype="news">
+ <value_long>235</value_long>
+ </document>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test58.xml b/document/src/tests/vespaxml/test58.xml
new file mode 100644
index 00000000000..2577f3a0e26
--- /dev/null
+++ b/document/src/tests/vespaxml/test58.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+
+ <document type="news" id="doc:music:http://music.yahoo.com">
+ <url>http://music.yahoo.com</url>
+ <stringarr>
+ <item>yahoo<item>
+ <item>hello</item>
+ </stringarr>
+ </document>
+
+
+
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test59.xml b/document/src/tests/vespaxml/test59.xml
new file mode 100644
index 00000000000..970f5232e7b
--- /dev/null
+++ b/document/src/tests/vespaxml/test59.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <update documentid="doc:blih:blih:blih" documenttype="news">
+ <increment field="title" by="3549" />
+ </update>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test6.xml b/document/src/tests/vespaxml/test6.xml
new file mode 100644
index 00000000000..c67352bbb22
--- /dev/null
+++ b/document/src/tests/vespaxml/test6.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid type="news" id="doc:crawler:http://www.ntnu���.no/"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test7.xml b/document/src/tests/vespaxml/test7.xml
new file mode 100644
index 00000000000..2c346a5b5cf
--- /dev/null
+++ b/document/src/tests/vespaxml/test7.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed idprefix="doc:crawler:">
+ <vespaadd>
+ <document type="news" id="http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100.5</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test8.xml b/document/src/tests/vespaxml/test8.xml
new file mode 100644
index 00000000000..cb9617fefd8
--- /dev/null
+++ b/document/src/tests/vespaxml/test8.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" id="doc:crawler:http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>hundred</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test9.xml b/document/src/tests/vespaxml/test9.xml
new file mode 100644
index 00000000000..8b86da414b8
--- /dev/null
+++ b/document/src/tests/vespaxml/test9.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vesparemove>
+ <documentid id="doc:crawler/http://www.ntnu���.no/"/>
+ </vesparemove>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_arraystruct.xml b/document/src/tests/vespaxml/test_arraystruct.xml
new file mode 100644
index 00000000000..5eeae4aab2d
--- /dev/null
+++ b/document/src/tests/vespaxml/test_arraystruct.xml
@@ -0,0 +1,19 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document documenttype="news" documentid="doc:test:struct">
+ <mystructarr>
+ <item>
+ <intval>36</intval>
+ <stringval>test</stringval>
+ </item>
+ <item>
+ <intval>39</intval>
+ <stringval>test2</stringval>
+ </item>
+ <item>
+ <intval>100</intval>
+ <stringval>cooool</stringval>
+ </item>
+ </mystructarr>
+ </document>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_doc5.xml b/document/src/tests/vespaxml/test_doc5.xml
new file mode 100644
index 00000000000..fa6d9c4726e
--- /dev/null
+++ b/document/src/tests/vespaxml/test_doc5.xml
@@ -0,0 +1,8 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <endoffeed>
+ <name>default</name>
+ <generation>10</generation>
+ <increment>20</increment>
+ </endoffeed>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_doc6.xml b/document/src/tests/vespaxml/test_doc6.xml
new file mode 100644
index 00000000000..2f32701d88e
--- /dev/null
+++ b/document/src/tests/vespaxml/test_doc6.xml
@@ -0,0 +1,6 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <endoffeed>
+ <name>default</name>
+ </endoffeed>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_doc8.xml b/document/src/tests/vespaxml/test_doc8.xml
new file mode 100644
index 00000000000..d636e7baa96
--- /dev/null
+++ b/document/src/tests/vespaxml/test_doc8.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd>
+ <document type="news" version="13" id="http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_externalentity.xml b/document/src/tests/vespaxml/test_externalentity.xml
new file mode 100644
index 00000000000..1d87319b106
--- /dev/null
+++ b/document/src/tests/vespaxml/test_externalentity.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<!DOCTYPE vespafeed [<!ENTITY xxe SYSTEM "xxe.txt">]>
+<vespafeed>
+ <vespaadd idprefix="doc:crawler:">
+ <document documenttype="news" documentid="http://www.ntnu.no/">
+ <title>&xxe;</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_idprefix.xml b/document/src/tests/vespaxml/test_idprefix.xml
new file mode 100644
index 00000000000..e3a177d6606
--- /dev/null
+++ b/document/src/tests/vespaxml/test_idprefix.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+
+ <document type="news" id="http://music.yahoo.com/bobdylan/BestOf">
+ <title>Best of Bob Dylan</title>
+ </document>
+
+ <document type="news" id="http://music.yahoo.com/metallica/BestOf">
+ <title>Best of Metallica</title>
+ </document>
+
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_struct.xml b/document/src/tests/vespaxml/test_struct.xml
new file mode 100644
index 00000000000..c18c9263b4a
--- /dev/null
+++ b/document/src/tests/vespaxml/test_struct.xml
@@ -0,0 +1,9 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <document documenttype="news" documentid="doc:test:struct">
+ <mystruct>
+ <intval>36</intval>
+ <stringval>test</stringval>
+ </mystruct>
+ </document>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/test_update1.xml b/document/src/tests/vespaxml/test_update1.xml
new file mode 100644
index 00000000000..27c7d6214d3
--- /dev/null
+++ b/document/src/tests/vespaxml/test_update1.xml
@@ -0,0 +1,12 @@
+<!-- Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<vespafeed>
+ <vespaadd idprefix="doc:crawler:">
+ <document type="news" id="http://www.ntnu.no/">
+ <title>TestTitle</title>
+ <last_downloaded>100</last_downloaded>
+ </document>
+ <update documenttype="news" documentid="http://www.ntnu.no/">
+ <divide field="last_downloaded" by="0" />
+ </update>
+ </vespaadd>
+</vespafeed>
diff --git a/document/src/tests/vespaxml/vespaxmldoctype.cfg b/document/src/tests/vespaxml/vespaxmldoctype.cfg
new file mode 100644
index 00000000000..3a4aa280e0d
--- /dev/null
+++ b/document/src/tests/vespaxml/vespaxmldoctype.cfg
@@ -0,0 +1,133 @@
+enablecompression false
+datatype[12]
+datatype[0].id 1002
+datatype[0].arraytype[1]
+datatype[0].arraytype[0].datatype 2
+datatype[0].weightedsettype[0]
+datatype[0].structtype[0]
+datatype[0].documenttype[0]
+datatype[1].id 1000
+datatype[1].arraytype[1]
+datatype[1].arraytype[0].datatype 0
+datatype[1].weightedsettype[0]
+datatype[1].structtype[0]
+datatype[1].documenttype[0]
+datatype[2].id 1004
+datatype[2].arraytype[1]
+datatype[2].arraytype[0].datatype 4
+datatype[2].weightedsettype[0]
+datatype[2].structtype[0]
+datatype[2].documenttype[0]
+datatype[3].id 1016
+datatype[3].arraytype[1]
+datatype[3].arraytype[0].datatype 16
+datatype[3].weightedsettype[0]
+datatype[3].structtype[0]
+datatype[3].documenttype[0]
+datatype[4].id 1001
+datatype[4].arraytype[1]
+datatype[4].arraytype[0].datatype 1
+datatype[4].weightedsettype[0]
+datatype[4].structtype[0]
+datatype[4].documenttype[0]
+datatype[5].id 2001
+datatype[5].arraytype[0]
+datatype[5].weightedsettype[1]
+datatype[5].weightedsettype[0].datatype 0
+datatype[5].weightedsettype[0].createifnonexistant false
+datatype[5].weightedsettype[0].removeifzero false
+datatype[5].structtype[0]
+datatype[5].documenttype[0]
+datatype[6].id 2002
+datatype[6].arraytype[0]
+datatype[6].weightedsettype[1]
+datatype[6].weightedsettype[0].datatype 2
+datatype[6].weightedsettype[0].createifnonexistant false
+datatype[6].weightedsettype[0].removeifzero false
+datatype[6].structtype[0]
+datatype[6].documenttype[0]
+datatype[7].id 3000
+datatype[7].arraytype[0]
+datatype[7].weightedsettype[0]
+datatype[7].structtype[1]
+datatype[7].structtype[0].name news.mystruct
+datatype[7].structtype[0].version 0
+datatype[7].structtype[0].field[2]
+datatype[7].structtype[0].field[0].name intval
+datatype[7].structtype[0].field[0].id[0]
+datatype[7].structtype[0].field[0].datatype 0
+datatype[7].structtype[0].field[1].name stringval
+datatype[7].structtype[0].field[1].id[0]
+datatype[7].structtype[0].field[1].datatype 2
+datatype[7].documenttype[0]
+datatype[8].id 103000
+datatype[8].arraytype[1]
+datatype[8].arraytype[0].datatype 3000
+datatype[8].weightedsettype[0]
+datatype[8].structtype[0]
+datatype[8].documenttype[0]
+datatype[9].id 5000
+datatype[9].arraytype[0]
+datatype[9].weightedsettype[0]
+datatype[9].structtype[1]
+datatype[9].structtype[0].name news.header
+datatype[9].structtype[0].version 0
+datatype[9].structtype[0].field[13]
+datatype[9].structtype[0].field[0].name url
+datatype[9].structtype[0].field[0].id[0]
+datatype[9].structtype[0].field[0].datatype 10
+datatype[9].structtype[0].field[1].name title
+datatype[9].structtype[0].field[1].id[0]
+datatype[9].structtype[0].field[1].datatype 2
+datatype[9].structtype[0].field[2].name last_downloaded
+datatype[9].structtype[0].field[2].id[0]
+datatype[9].structtype[0].field[2].datatype 0
+datatype[9].structtype[0].field[3].name value_long
+datatype[9].structtype[0].field[3].id[0]
+datatype[9].structtype[0].field[3].datatype 4
+datatype[9].structtype[0].field[4].name stringarr
+datatype[9].structtype[0].field[4].id[0]
+datatype[9].structtype[0].field[4].datatype 1002
+datatype[9].structtype[0].field[5].name intarr
+datatype[9].structtype[0].field[5].id[0]
+datatype[9].structtype[0].field[5].datatype 1000
+datatype[9].structtype[0].field[6].name longarr
+datatype[9].structtype[0].field[6].id[0]
+datatype[9].structtype[0].field[6].datatype 1004
+datatype[9].structtype[0].field[7].name bytearr
+datatype[9].structtype[0].field[7].id[0]
+datatype[9].structtype[0].field[7].datatype 1016
+datatype[9].structtype[0].field[8].name floatarr
+datatype[9].structtype[0].field[8].id[0]
+datatype[9].structtype[0].field[8].datatype 1001
+datatype[9].structtype[0].field[9].name weightedsetint
+datatype[9].structtype[0].field[9].id[0]
+datatype[9].structtype[0].field[9].datatype 2001
+datatype[9].structtype[0].field[10].name weightedsetstring
+datatype[9].structtype[0].field[10].id[0]
+datatype[9].structtype[0].field[10].datatype 2002
+datatype[9].structtype[0].field[11].name mystruct
+datatype[9].structtype[0].field[11].id[0]
+datatype[9].structtype[0].field[11].datatype 3000
+datatype[9].structtype[0].field[12].name mystructarr
+datatype[9].structtype[0].field[12].id[0]
+datatype[9].structtype[0].field[12].datatype 103000
+datatype[9].documenttype[0]
+datatype[10].id 5001
+datatype[10].arraytype[0]
+datatype[10].weightedsettype[0]
+datatype[10].structtype[1]
+datatype[10].structtype[0].name news.body
+datatype[10].structtype[0].version 0
+datatype[10].structtype[0].field[0]
+datatype[10].documenttype[0]
+datatype[11].id 5002
+datatype[11].arraytype[0]
+datatype[11].weightedsettype[0]
+datatype[11].structtype[0]
+datatype[11].documenttype[1]
+datatype[11].documenttype[0].name news
+datatype[11].documenttype[0].version 0
+datatype[11].documenttype[0].inherits[0]
+datatype[11].documenttype[0].headerstruct 5000
+datatype[11].documenttype[0].bodystruct 5001
diff --git a/document/src/tests/vespaxml/xxe.txt b/document/src/tests/vespaxml/xxe.txt
new file mode 100644
index 00000000000..c8c1b8233cc
--- /dev/null
+++ b/document/src/tests/vespaxml/xxe.txt
@@ -0,0 +1 @@
+scary xxe exploit \ No newline at end of file