Namespace problem???

J

John Resler

I am receiving the following validation error in the latest version of
XMLSpy :
This file is not valid:
The complex type of element 'wx:Identifier' does not allow attribute
'ICAO_ID' and no attribute wild card matches it.

Within the schema though, there is a definition of wx:position and within
the Station type there is an element Location of type wx:position which has
an ICAO_ID attribute.
Can somebody explain this problem for me??

This is one of the elements from the xml document (the schema follows).

XML Doc snippet:
<?xml version="1.0" encoding="UTF-8"?>
<wx:WXStations xmlns:wx="http://mil-web.ks.boeing.com/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mil-web.ks.boeing.com/
file:///U:/eclipse_projects/java_projects/xml/project_schemas/wxstation.xsd">
<wx:Station Name="AMBLER" State="AK">
<wx:Identifier IATA_ID="AKP" ICAO_ID="PAKP"/>
<wx:Location Elevation="642" Latitude="68 08N" Longitude="151 44W"/>
<wx:Station-Capabilities Metar="X"/>
</wx:Station>



XML Schema :

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by LEEANN
JOHANSOOZ (THE BOEING COMPANY) -->
<xs:schema xmlns:wx="http://mil-web.ks.boeing.com/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://mil-web.ks.boeing.com/"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="WXStations">
<xs:annotation>
<xs:documentation>Represents the root node of all weather stations in
U.S. and U.S. posessions</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Station" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Identifier" type="wx:Identifier" minOccurs="0">
<xs:annotation>
<xs:documentation>An identifier used by ICAO and FAA authorities to
designate the station. Because some stations are temporary in nature, the
existence of an Identifier is optional.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Location" type="wx:position"/>
<xs:element name="Station-Capabilities" type="wx:StationCapabilities"
minOccurs="0">
<xs:annotation>
<xs:documentation>Six different markers to indicate the weather
reporting cababilities of the station (e.g: Metars reporting, Nexrad Radar
Capability, etc.)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="State" type="wx:State-Territory" use="required">
<xs:annotation>
<xs:documentation>A Two letter abbreviation of the location of the
weather station, politically (Statewise).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Name" use="required">
<xs:annotation>
<xs:documentation>The Name of the station, listed as a maximum 16
character representation.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="16"/>
<xs:whiteSpace value="preserve"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Synoptic" use="optional">
<xs:annotation>
<xs:documentation>This number's semantics are not well understood by
the developer at this time but apparently it is an indicator of whether the
station provides "Synoptic" or potentially composite forecasts as opposed to
strictly Meso forecasts which are Numerical Weather
Predictions.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="11111"/>
<xs:maxInclusive value="99999"/>
<xs:totalDigits value="5"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="State-Territory">
<xs:annotation>
<xs:documentation>two letter abbreviation for U.S. states, territories
and posessions</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:length value="2"/>
<xs:enumeration value="AK"/>
<xs:enumeration value="AL"/>
<xs:enumeration value="AR"/>
<xs:enumeration value="AZ"/>
<xs:enumeration value="CA"/>
<xs:enumeration value="CO"/>
<xs:enumeration value="CT"/>
<xs:enumeration value="DC"/>
<xs:enumeration value="DE"/>
<xs:enumeration value="FL"/>
<xs:enumeration value="GA"/>
<xs:enumeration value="GU"/>
<xs:enumeration value="HI"/>
<xs:enumeration value="IA"/>
<xs:enumeration value="ID"/>
<xs:enumeration value="IL"/>
<xs:enumeration value="IN"/>
<xs:enumeration value="KS"/>
<xs:enumeration value="KY"/>
<xs:enumeration value="LA"/>
<xs:enumeration value="MA"/>
<xs:enumeration value="MD"/>
<xs:enumeration value="ME"/>
<xs:enumeration value="MI"/>
<xs:enumeration value="MN"/>
<xs:enumeration value="MO"/>
<xs:enumeration value="MS"/>
<xs:enumeration value="MT"/>
<xs:enumeration value="NC"/>
<xs:enumeration value="ND"/>
<xs:enumeration value="NE"/>
<xs:enumeration value="NH"/>
<xs:enumeration value="NJ"/>
<xs:enumeration value="NM"/>
<xs:enumeration value="NV"/>
<xs:enumeration value="NY"/>
<xs:enumeration value="OH"/>
<xs:enumeration value="OK"/>
<xs:enumeration value="OR"/>
<xs:enumeration value="PA"/>
<xs:enumeration value="PR"/>
<xs:enumeration value="RI"/>
<xs:enumeration value="SC"/>
<xs:enumeration value="SD"/>
<xs:enumeration value="TN"/>
<xs:enumeration value="TX"/>
<xs:enumeration value="UT"/>
<xs:enumeration value="VA"/>
<xs:enumeration value="VI"/>
<xs:enumeration value="VT"/>
<xs:enumeration value="WA"/>
<xs:enumeration value="WI"/>
<xs:enumeration value="WV"/>
<xs:enumeration value="WY"/>
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Position">
<xs:annotation>
<xs:documentation>position in three dimensional space of a weather
station</xs:documentation>
</xs:annotation>
<xs:attribute name="Latitude" use="required">
<xs:annotation>
<xs:documentation>Represents the latitude of the station as a six
character string with N or S appended.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="6"/>
<xs:pattern value="(\D{2} \D{2}[NS])"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Longitude" use="required">
<xs:annotation>
<xs:documentation>Represents the longitude of the station as a seven
character string with E or W appended.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="7"/>
<xs:pattern value="(\d|{3} \d{2}[EW])"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Elevation" use="required">
<xs:annotation>
<xs:documentation>A numeric value in meters above/below
sea-level</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:short">
<xs:minInclusive value="-400"/>
<xs:maxInclusive value="8850"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="StationCapabilities">
<xs:annotation>
<xs:documentation>Represents the capabilities of a wx
station</xs:documentation>
</xs:annotation>
<xs:attribute name="Metar" use="optional">
<xs:annotation>
<xs:documentation>The scheduled weather forecaster observation, at the
end of the hour.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="X"/>
<xs:enumeration value="Z"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Nexrad" use="optional">
<xs:annotation>
<xs:documentation>NEXRAD is the next generation RADAR with improved
capabilites for moisture detection, airborne particulates etc. This RADAR
contains modes to improve the detection of Snow, CAT, etc. as it can detect
motion of some smaller airborne particulates. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="X"/>
<xs:enumeration value="Z"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Auto" use="optional">
<xs:annotation>
<xs:documentation>Auto contains a character which represents whether the
site is an Automated Weather Observation Site (AWOS), Automated Surface
Observation Site (ASOS) or Meso which is a Numerical Weather Prediction of
the weather.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="A"/>
<xs:enumeration value="W"/>
<xs:enumeration value="M"/>
<xs:enumeration value="H"/>
<xs:enumeration value="G"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="AvSpec">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="V"/>
<xs:enumeration value="A"/>
<xs:enumeration value="T"/>
<xs:enumeration value="U"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="UpperAir" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="X"/>
<xs:enumeration value="W"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="OfficeType" use="optional">
<xs:annotation>
<xs:documentation>Represents the capabilities of the station as single
characters that either exist, are listed as obsolete or do not
exist</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="F"/>
<xs:enumeration value="R"/>
<xs:enumeration value="C"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="Identifier">
<xs:annotation>
<xs:documentation>Contains the ICAO, IATA or both
identifiers.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="0">
<xs:element name="ICAO_ID" minOccurs="0">
<xs:annotation>
<xs:documentation>The four letter International Civil Aviation
Organization designator.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="IATA_ID" minOccurs="0">
<xs:annotation>
<xs:documentation>The three letter FAA designator</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top