error 2000 - Can not build schema

Hi,
 
I would like some help.
I cant parse a determined XML document. 
It always shows the following message:
 
testegml.xml<Line 2, Column 149>: XSD-2000: (Error) Can not build schema ' ' located at 'gml_format.xsd'
 
These are the files, they are in the same location:
testegml.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<OBJECT xmlns:gml="  <http://www.opengis.net/gml> http://www.opengis.net/gml" xmlns:xsi="  <http://www.w3.org/2001/XMLSchema-instance> http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gml_format.xsd">
   <ANY name="aluno1.jpg" dir="/home/weiss/temp/">
   <gml:location>
        <gml:Point>
         <gml:coord><gml:X>1.0</gml:X><gml:Y>1.0</gml:Y></gml:coord>
        </gml:Point>
    </gml:location>
   </ANY>
</OBJECT>
 
gml_format.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="  <http://www.w3.org/2001/XMLSchema> http://www.w3.org/2001/XMLSchema" xmlns:gml="  <http://www.opengis.net/gml> http://www.opengis.net/gml">
 <xs:import namespace="  <http://www.opengis.net/gml> http://www.opengis.net/gml" schemaLocation="feature.xsd"/>
 
<xs:element name="OBJECT">
<xs:complexType>
<xs:sequence>
    <xs:element name="ANY">
    <xs:complexType>
     <xs:sequence>
            <xs:element ref="gml:location"/>
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required"/>
      <xs:attribute name="dir" type="xs:string" use="optional"/>
      <xs:attribute name="image" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
 
I would like some help to define the namespaeces. I think there is some problem that cant see.
Thanks,
    Gerson

Received on Thursday, 12 September 2002 04:34:11 UTC