Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b71105144475543659f508189282f090c9e6d958 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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