473,503 Members | 722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Namespace problem???

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>

Jul 20 '05 #1
0 1193

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1905
by: Marcin Kalicinski | last post by:
Is the code below ill formed (because operator >> is defined in different namespace than class B)? It fails with VS 2005 Beta. I don't know if I should redesign my code or if I should find a...
7
7420
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
5
10026
by: Alexis | last post by:
Hello, I have a set of classes I created from schema files using the xsd.exe tool. I'm using namespaces in the clases ( I had to because I have some classes with the same name but not the same...
0
2780
by: richwangler | last post by:
This problem should be easily reproducable if anybody has the time. I need to build the following XML programatically and decided to use the XMLSerializer. I simplified the XML (myExample.xml)...
5
2450
by: Mike Oliszewski | last post by:
Given the following c# code: namespace Company2 { public class SomeFunctions { public void FunctionA() { // Do Something. }
10
6629
by: anders | last post by:
I have 2 external assemblies A1 and A2 that both define class X in the global namespace. I need to use both assemblies in my VB project but the names X are ambiguous. How can I get around this...
4
3072
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
30
4063
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
3
2918
by: George | last post by:
I am currently developing an xbrl validation software that takes an xml instance file and a lot of schemas(xsd files) and validates it against the xsd files. I am using Visual basic in visual...
7
2944
by: Armin Zingler | last post by:
Hi all, I have a Form called "Main": Public Class Main Private Sub Button1_Click( _ ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.