You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Roland Pereira <Pe...@crlcorp.com> on 2004/12/01 17:51:01 UTC

Error compiling file

Hello,
 
 
New to XMLBeans. I went through the tutorials and successfully compiled the
easy.xsd and java files. Also ran the finally compiled java file.
 
However when I am trying to compile another av.xsd file I am getting the
following error.
 
Any idea what this error is and how to eleminate this error?
 
Which line number does this refer to?
 
Do I have to get a different version of the XMLBeans?
 
Would appreciate some help on this.
 
Thanks
 
==================Errors ==================================
 
av.xsd:0: error: String: '' does not match pattern for xs:NCName
av.xsd:0: error: String: '' does not match pattern for xs:NCName
av.xsd:0: error: Attribute not allowed: minOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: maxOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: String: '' does not match pattern for xs:NCName
av.xsd:0: error: Attribute not allowed: minOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: maxOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: minOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: maxOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: minOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
av.xsd:0: error: Attribute not allowed: maxOccurs in element HYPERLINK
"mailto:attribute@http://www.w3.org/2001/XMLSchema"attribute@http://www.w3.o
rg/2001/XMLSchema
Time to build schema type system: 1.344 seconds
BUILD FAILED
 
============================================================================
=
 

++++++++++++++++++++av.xsd file
++++++++++++++++++++++++++++++++++++++++++++++
 
 
 
<xsd:schema xmlns:xsd="HYPERLINK
"http://www.w3.org/2001/XMLSchema"http://www.w3.org/2001/XMLSchema" 
    targetNamespace="HYPERLINK
"http://www.mapquest.com/Advantage"http://www.mapquest.com/Advantage"
   xmlns:mq="HYPERLINK
"http://www.mapquest.com/Advantage"http://www.mapquest.com/Advantage"
   elementFormDefault="qualified">
   
<xsd:annotation>
   <xsd:documentation xml:lang="en">
      Schema for Mapquest Advantage
      Copyright 2003 Mapquest.com. All rights reserved.
   </xsd:documentation>
</xsd:annotation>
 
<xsd:simpleType name="distanceUnit">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="mi"/>
    <xsd:enumeration value="km"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:simpleType name="mapType">
  <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="1"/>
    <xsd:maxInclusive value="9"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:simpleType name="mapSize">
  <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="100"/>
    <xsd:maxInclusive value="700"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:simpleType name="mapStyle">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="default"/>
    <xsd:enumeration value="classic"/>
    <xsd:enumeration value="bw"/>
    <xsd:enumeration value="european"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:simpleType name="geocodeQuality">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="ADDRESS"/>
    <xsd:enumeration value="STREET"/>
    <xsd:enumeration value="INTERSECTION"/>
    <xsd:enumeration value="ZIP"/>
    <xsd:enumeration value="ZIP7"/>
    <xsd:enumeration value="ZIP9"/>
    <xsd:enumeration value="CITY"/>
    <xsd:enumeration value="COUNTY"/>
    <xsd:enumeration value="STATE"/>
    <xsd:enumeration value="COUNTRY"/>
    <xsd:enumeration value="USER_DEFINED"/>
    <xsd:enumeration value="NO_GEOCODE"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:simpleType name="zoomLevels">
  <xsd:restriction base="xsd:integer">
    <xsd:minInclusive value="1"/>
    <xsd:maxInclusive value="10"/>
  </xsd:restriction>
</xsd:simpleType>
 
<xsd:complexType name="distance">
 <xsd:simpleContent>
  <xsd:extension base="xsd:double">
   <xsd:attribute name="units" type="mq:distanceUnit"/>
  </xsd:extension>
 </xsd:simpleContent>
</xsd:complexType>
 
<xsd:complexType name="rollover">
   <xsd:sequence>
      <xsd:element name="x" type="mq:mapSize" minOccurs="1" maxOccurs="1"/>
      <xsd:element name="y" type="mq:mapSize" minOccurs="1" maxOccurs="1"/>
      <xsd:element name="data" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="recordId" type="xsd:positiveInteger" minOccurs="1"
maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="count" type="xsd:positiveInteger"/>
</xsd:complexType>
 

<xsd:complexType name="map">
   <xsd:sequence>
      <xsd:element name="height" type="mq:mapSize" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="width" type="mq:mapSize" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="type" type="mq:mapType" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="zoomLevel" type="mq:zoomLevels" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="latitude" type="xsd:double" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="longitude" type="xsd:double" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="mapStyle" type="mq:mapStyle" minOccurs="0"
maxOccurs="1"/>
  <xsd:element name="request" type="xsd:anyURI" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="mapSessionId" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="rollover" type="mq:rollover" minOccurs="0"
maxOccurs="1"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="userFields">
   <xsd:sequence>
      <xsd:element name="" type="xsd:string" minOccurs="0" maxOccurs="10"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="searchFields">
   <xsd:sequence>
      <xsd:element name="" type="xsd:string" minOccurs="0" maxOccurs="20"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="location">
   <xsd:sequence>
      <xsd:element name="number" type="xsd:positiveInteger" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="name" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="address" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="city" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="county" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="stateProvince" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="postalCode" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="country" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="recordId" type="xsd:positiveInteger" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="latitude" type="xsd:double" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="longitude" type="xsd:double" minOccurs="0"
maxOccurs="1"/>
  <xsd:element name="distance" type="mq:distance"/>
      <xsd:element name="dataSource" type="xsd:string" minOccurs="0"
maxOccurs="1"/>   
      <xsd:element name="geocodeQuality" type="mq:geocodeQuality"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="iconId" type="xsd:positiveInteger" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="map" type="mq:map" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="userFields" type="mq:userFields" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="searchFields" type="mq:searchFields" minOccurs="0"
maxOccurs="1"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="locationCollection">
   <xsd:sequence>
      <xsd:element name="status" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="location" type="mq:location" minOccurs="0"
maxOccurs="unbounded"/>
   </xsd:sequence>
   <xsd:attribute name="count" type="xsd:positiveInteger"/>
</xsd:complexType>
 
<xsd:complexType name="maneuverCollection">
   <xsd:sequence>
      <xsd:element name="maneuver" type="mq:maneuver" minOccurs="0"
maxOccurs="unbounded"/>
      <xsd:element name="totalTime" type="xsd:long" minOccurs="1"
maxOccurs="1"/>
  <xsd:element name="totalDistance" type="mq:distance"/>
      <xsd:element name="prequel" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="sequel" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="count" type="xsd:positiveInteger"/>
   <xsd:attribute name="latwCount" type="xsd:long" minOccurs="0"
maxOccurs="1"/>
</xsd:complexType>
 
<xsd:complexType name="maneuver">
   <xsd:sequence>
      <xsd:element name="number" type="xsd:positiveInteger"/>
      <xsd:element name="text" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="time" type="xsd:long" minOccurs="1" maxOccurs="1"/>
  <xsd:element name="distance" type="mq:distance"/>
      <xsd:element name="thumbnailMap" type="mq:map" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="searchResults" type="mq:locationCollection"
minOccurs="0" maxOccurs="1"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="parametersCollection">
   <xsd:sequence>
      <xsd:element name="" type="xsd:string" minOccurs="0"
maxOccurs="unbounded"/>
   </xsd:sequence>
   <xsd:attribute name="count" type="xsd:positiveInteger"/>
</xsd:complexType>
 
<xsd:complexType name="inputCollection">
   <xsd:sequence>
      <xsd:element name="locations" type="mq:locationCollection"
minOccurs="0" maxOccurs="1"/>
      <xsd:element name="origin" type="mq:locationCollection" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="destination" type="mq:locationCollection"
minOccurs="0" maxOccurs="1"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="locMapResponse">
   <xsd:sequence>
      <xsd:element name="parameters" type="mq:parametersCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="input" type="mq:inputCollection" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="locations" type="mq:locationCollection"
minOccurs="1" maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="status" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
</xsd:complexType>
 
<xsd:complexType name="routeResponse">
   <xsd:sequence>
      <xsd:element name="parameters" type="mq:parametersCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="input" type="mq:inputCollection" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="origin" type="mq:locationCollection" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="destination" type="mq:locationCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="overviewMap" type="mq:map" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="corridorWidth" type="mq:distance" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="maneuvers" type="mq:maneuverCollection"
minOccurs="0" maxOccurs="1"/>
      </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="searchResponse">
   <xsd:sequence>   
      <xsd:element name="parameters" type="mq:parametersCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="input" type="mq:inputCollection" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="locations" type="mq:locationCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="map" type="mq:map" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="radius" type="mq:distance" minOccurs="0"
maxOccurs="1"/>
    <xsd:element name="proxIconId" type="xsd:positiveInteger"/>
      <xsd:element name="searchResults" type="mq:locationCollection"
minOccurs="0" maxOccurs="1"/>
      <xsd:element name="nextData" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
      <xsd:element name="prevData" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="status" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
</xsd:complexType>
 
<xsd:complexType name="poiMapResponse">
   <xsd:sequence>
      <xsd:element name="parameters" type="mq:parametersCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="input" type="mq:inputCollection" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="locations" type="mq:locationCollection"
minOccurs="1" maxOccurs="1"/>
      <xsd:element name="poiResults" type="mq:locationCollection"
minOccurs="0" maxOccurs="1"/>
      <xsd:element name="map" type="mq:map" minOccurs="0" maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="status" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
</xsd:complexType>
 
<xsd:complexType name="errorResponse">
   <xsd:sequence>
      <xsd:element name="parameters" type="mq:parametersCollection"
minOccurs="0" maxOccurs="1"/>
      <xsd:element name="code" type="xsd:positiveInteger" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="text" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
   </xsd:sequence>
</xsd:complexType>
 
<xsd:complexType name="advantageResponse">
   <xsd:choice>
      <xsd:element name="locMap" type="mq:locMapResponse" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="route" type="mq:routeResponse" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="search" type="mq:searchResponse" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="poiMap" type="mq:poiMapResponse" minOccurs="1"
maxOccurs="1"/>
      <xsd:element name="error" type="mq:errorResponse" minOccurs="1"
maxOccurs="1"/>
   </xsd:choice>
</xsd:complexType>
<xsd:element name="advantage" type="mq:advantageResponse"/>
 
</xsd:schema>
 
 
 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++
CONFIDENTIALITY NOTICE: The information in this message, and any attachment,
is intended for the sole use of the individual and entity to whom it is
addressed. This information may be privileged, confidential, and protected
from disclosure. If you are not the intended recipient you are hereby
notified that you have received this communication in error and that any
review, disclosure, dissemination, distribution or copying of it, or its
contents, is strictly prohibited. If you think that you have received this
message in error please notify the sender and destroy all copies of this
communication and any attachments. Thank you.