1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
3 | targetNamespace="http://www.sitemaps.org/schemas/sitemap/0.9"
|
4 | xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
5 | elementFormDefault="qualified">
|
6 | <xsd:annotation>
|
7 | <xsd:documentation>
|
8 | XML Schema for Sitemap files.
|
9 | Last Modifed 2008-03-26
|
10 | </xsd:documentation>
|
11 | </xsd:annotation>
|
12 |
|
13 | <xsd:element name="urlset">
|
14 | <xsd:annotation>
|
15 | <xsd:documentation>
|
16 | Container for a set of up to 50,000 document elements.
|
17 | This is the root element of the XML file.
|
18 | </xsd:documentation>
|
19 | </xsd:annotation>
|
20 | <xsd:complexType>
|
21 | <xsd:sequence>
|
22 | <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
|
23 | <xsd:element name="url" type="tUrl" maxOccurs="unbounded"/>
|
24 | </xsd:sequence>
|
25 | </xsd:complexType>
|
26 | </xsd:element>
|
27 |
|
28 | <xsd:complexType name="tUrl">
|
29 | <xsd:annotation>
|
30 | <xsd:documentation>
|
31 | Container for the data needed to describe a document to crawl.
|
32 | </xsd:documentation>
|
33 | </xsd:annotation>
|
34 | <xsd:sequence>
|
35 | <xsd:element name="loc" type="tLoc"/>
|
36 | <xsd:element name="lastmod" type="tLastmod" minOccurs="0"/>
|
37 | <xsd:element name="changefreq" type="tChangeFreq" minOccurs="0"/>
|
38 | <xsd:element name="priority" type="tPriority" minOccurs="0"/>
|
39 | <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
|
40 | </xsd:sequence>
|
41 | </xsd:complexType>
|
42 |
|
43 | <xsd:simpleType name="tLoc">
|
44 | <xsd:annotation>
|
45 | <xsd:documentation>
|
46 | REQUIRED: The location URI of a document.
|
47 | The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt).
|
48 | </xsd:documentation>
|
49 | </xsd:annotation>
|
50 | <xsd:restriction base="xsd:anyURI">
|
51 | <xsd:minLength value="12"/>
|
52 | <xsd:maxLength value="2048"/>
|
53 | </xsd:restriction>
|
54 | </xsd:simpleType>
|
55 |
|
56 | <xsd:simpleType name="tLastmod">
|
57 | <xsd:annotation>
|
58 | <xsd:documentation>
|
59 | OPTIONAL: The date the document was last modified. The date must conform
|
60 | to the W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime).
|
61 | Example: 2005-05-10
|
62 | Lastmod may also contain a timestamp.
|
63 | Example: 2005-05-10T17:33:30+08:00
|
64 | </xsd:documentation>
|
65 | </xsd:annotation>
|
66 | <xsd:union>
|
67 | <xsd:simpleType>
|
68 | <xsd:restriction base="xsd:date"/>
|
69 | </xsd:simpleType>
|
70 | <xsd:simpleType>
|
71 | <xsd:restriction base="xsd:dateTime"/>
|
72 | </xsd:simpleType>
|
73 | </xsd:union>
|
74 | </xsd:simpleType>
|
75 |
|
76 | <xsd:simpleType name="tChangeFreq">
|
77 | <xsd:annotation>
|
78 | <xsd:documentation>
|
79 | OPTIONAL: Indicates how frequently the content at a particular URL is
|
80 | likely to change. The value "always" should be used to describe
|
81 | documents that change each time they are accessed. The value "never"
|
82 | should be used to describe archived URLs. Please note that web
|
83 | crawlers may not necessarily crawl pages marked "always" more often.
|
84 | Consider this element as a friendly suggestion and not a command.
|
85 | </xsd:documentation>
|
86 | </xsd:annotation>
|
87 | <xsd:restriction base="xsd:string">
|
88 | <xsd:enumeration value="always"/>
|
89 | <xsd:enumeration value="hourly"/>
|
90 | <xsd:enumeration value="daily"/>
|
91 | <xsd:enumeration value="weekly"/>
|
92 | <xsd:enumeration value="monthly"/>
|
93 | <xsd:enumeration value="yearly"/>
|
94 | <xsd:enumeration value="never"/>
|
95 | </xsd:restriction>
|
96 | </xsd:simpleType>
|
97 |
|
98 | <xsd:simpleType name="tPriority">
|
99 | <xsd:annotation>
|
100 | <xsd:documentation>
|
101 | OPTIONAL: The priority of a particular URL relative to other pages
|
102 | on the same site. The value for this element is a number between
|
103 | 0.0 and 1.0 where 0.0 identifies the lowest priority page(s).
|
104 | The default priority of a page is 0.5. Priority is used to select
|
105 | between pages on your site. Setting a priority of 1.0 for all URLs
|
106 | will not help you, as the relative priority of pages on your site
|
107 | is what will be considered.
|
108 | </xsd:documentation>
|
109 | </xsd:annotation>
|
110 | <xsd:restriction base="xsd:decimal">
|
111 | <xsd:minInclusive value="0.0"/>
|
112 | <xsd:maxInclusive value="1.0"/>
|
113 | </xsd:restriction>
|
114 | </xsd:simpleType>
|
115 |
|
116 | </xsd:schema>
|