📄 weather.xsd
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This XML Schema describes xml documents containing weather information of a location, based on zipcode.
It declares one global element localWeather which contains weather details such as temparature, visibilty, map, etc,
of a location identified by global Attibure Zipcode.
-->
<xsd:schema targetNamespace="http://www.helloWeather.com/weather" xmlns="http://www.helloWeather.com/weather" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="localWeather">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Temperature"/>
<xsd:element ref="Humidity" />
<xsd:element ref="Visibility" />
<xsd:element ref="Datetime" />
<xsd:element ref="image" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute ref="Zipcode"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Temperature"
type="xsd:float"/>
<xsd:element name="Humidity"
type="xsd:float"/>
<xsd:element name="Visibility"
type="xsd:float"/>
<xsd:element name="Datetime"
type="xsd:dateTime"/>
<xsd:element name="image"
type="imageType"/>
<xsd:attribute name="Zipcode"
type="xsd:string"/>
<xsd:complexType name="imageType">
<xsd:simpleContent>
<xsd:extension base="xsd:base64Binary" >
<xsd:attribute name="type" use="optional" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -