⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localinfo.xsd

📁 目前在JAVA下编程时对XML的操作很重要
💻 XSD
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This XML Schema describes xml documents containing weather information of a location, based on zipcode.
     xml schema document weather.xsd is imported. Global element localInfo is a container element 
     for weather information.
-->
<xsd:schema  targetNamespace="http://www.localInfo.com/LI" xmlns="http://www.localInfo.com/LI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:ns1 = "http://www.helloWeather.com/weather">

<xsd:import namespace="http://www.helloWeather.com/weather" schemaLocation="weather.xsd"/>

<xsd:element name="localInfo">
  <xsd:complexType>
   <xsd:sequence>
    <xsd:element ref="ns1:localWeather"/>   
   </xsd:sequence>
  <xsd:attribute ref="Zipcode"/>
 </xsd:complexType>
 </xsd:element>

 <xsd:attribute name="Zipcode" type="xsd:string"/>

</xsd:schema>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -