1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 * Copyright (C) 2010 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 --> 17 <xsd:schema 18 targetNamespace="http://schemas.android.com/sdk/android/addons-list/1" 19 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 20 xmlns:sa1="http://schemas.android.com/sdk/android/addons-list/1" 21 elementFormDefault="qualified" 22 attributeFormDefault="unqualified" 23 version="1"> 24 25 <!-- 26 A simple list of add-ons sites that is loaded by default by the SDK Manager. 27 --> 28 29 <xsd:element name="sdk-addons-list" type="sa1:addonsListType" /> 30 31 <xsd:complexType name="addonsListType"> 32 <xsd:annotation> 33 <xsd:documentation> 34 A simple list of add-ons site. 35 </xsd:documentation> 36 </xsd:annotation> 37 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 38 <xsd:element name="addon-site" type="sa1:addonSiteType" /> 39 </xsd:choice> 40 </xsd:complexType> 41 42 <!-- The definition of an Add-on Site. --> 43 44 <xsd:complexType name="addonSiteType"> 45 <xsd:annotation> 46 <xsd:documentation>An SDK add-on site.</xsd:documentation> 47 </xsd:annotation> 48 <xsd:all> 49 <!-- The URL of the site. 50 51 This can be either the exact URL of the an XML resource conforming 52 to the latest sdk-addon-N.xsd schema, or it can be the URL of a 53 'directory', in which case the manager will look for a resource 54 named 'addon.xml' at this location. 55 56 Examples: 57 http://www.example.com/android/my_addons.xml 58 or 59 http://www.example.com/android/ 60 61 In the second example, the manager will actually look for: 62 http://www.example.com/android/addon.xml 63 --> 64 <xsd:element name="url" type="xsd:token" /> 65 66 <!-- The UI-visible name of the add-on. --> 67 <xsd:element name="name" type="xsd:normalizedString" /> 68 </xsd:all> 69 </xsd:complexType> 70 71 </xsd:schema> 72