Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ua.tests/service/schema/xml/search.xsd')
-rw-r--r--org.eclipse.ua.tests/service/schema/xml/search.xsd25
1 files changed, 25 insertions, 0 deletions
diff --git a/org.eclipse.ua.tests/service/schema/xml/search.xsd b/org.eclipse.ua.tests/service/schema/xml/search.xsd
new file mode 100644
index 000000000..b71105144
--- /dev/null
+++ b/org.eclipse.ua.tests/service/schema/xml/search.xsd
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+ <xs:element name="searchHits">
+ <xs:complexType mixed="false">
+ <xs:sequence>
+ <xs:element ref="hit" minOccurs="0" maxOccurs="unbounded" /> <!-- hits result could be zero -->
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="hit" abstract="false" nillable="false">
+ <xs:complexType mixed="false">
+ <xs:sequence>
+ <xs:element name="summary" type="xs:string" minOccurs="1" maxOccurs="1" />
+ </xs:sequence>
+ <xs:attribute name="href" type="xs:string" use="required" /> <!-- attribute for hit -->
+ <xs:attribute name="label" type="xs:string" use="required" /> <!-- attribute for hit -->
+ <xs:attribute name="isPotentialHit" type="xs:boolean" /> <!-- optional attribute for hit -->
+ <xs:attribute name="score" type="xs:double" use="required" /> <!-- attribute for hit -->
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>

Back to the top