473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XML schema, importing another schema

Hello

I ma trying to import GML (Geography markup language) into some project,
but I getting "Undefined type" error:

Invalid: Undefined type
gml{http://www.opengis.net/gml/3.2}:PointPropertyType referenced as type
definition of point

Does anybody have an idea?

Schema is following:
--------------------------
<?xml version = "1.0" encoding = "UTF-8"?>

<schema
xmlns = "http://www.w3.org/2001/XMLSchema"
targetNamespace = "http://lucas.ucs.ed.ac.uk/test/"
xmlns:zblsa = "http://lucas.ucs.ed.ac.uk/test/"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml/3.2.1"
elementFormDefault = "qualified">

<import namespace="http://www.opengis.net/gml/3.2.1"
schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>

<element name="point" type="gml:PointPropertyType"/>

</schema>
---------------------------

And instance is
---------------------------
<?xml version="1.0"?>

<zblsa:point
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml/3.2.1"
xsi:schemaLocation = "http://lucas.ucs.ed.ac.uk/test/
http://89.201.135.5/shema.xsd"
xmlns:zblsa="http://lucas.ucs.ed.ac.uk/test/">

<gml:Point gml:id="1">
<gml:pos>1 2</gml:pos>
</gml:Point>
</zblsa:point>
----------------------------
Jun 27 '08 #1
1 2285
Boris Ozegovic wrote:
I ma trying to import GML (Geography markup language) into some project,
but I getting "Undefined type" error:

Invalid: Undefined type
gml{http://www.opengis.net/gml/3.2}:PointPropertyType referenced as type
definition of point

Does anybody have an idea?

Schema is following:
--------------------------
<?xml version = "1.0" encoding = "UTF-8"?>

<schema
xmlns = "http://www.w3.org/2001/XMLSchema"
targetNamespace = "http://lucas.ucs.ed.ac.uk/test/"
xmlns:zblsa = "http://lucas.ucs.ed.ac.uk/test/"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml/3.2.1"
elementFormDefault = "qualified">

<import namespace="http://www.opengis.net/gml/3.2.1"
schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
That schema includes seven others, make sure one of them defines a type
named PointPropertyType as a top level type.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 27 '08 #2

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

Similar topics

2
by: maddalimurali | last post by:
Hello all, My xml and schema file header are as follows. 1) cisGlobals.xsd. <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://www.talgov.com/cisGlobals"...
2
by: Fezboy | last post by:
Greetings! I'm trying to import elements declared in the METS and MODS XML Schema into my own. I've gotten to the point where the xsd validates, but when I try to validate a document against...
8
by: Poonam | last post by:
Hi, Can some one please help me with (or point me to) a very simple but working code sample that shows how to import XML Schema. I have tried many samples out there on internet but nothing seems...
2
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
3
by: farseer | last post by:
Hello, i have a schema which also imports the XHTML schema: <xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/> This...
2
by: Ali | last post by:
I am having problem compiling schema contained in WSDL file when analyzing schema types contained in it (for example http://www.ebout.net/net/GoogleSearch.wsdl). Following code demonstrates my...
3
by: dantohester | last post by:
Hi there, I have the following situation: I want to create an XML document that contains 2 parts: a) a XHTML part (it can be either version 1.0 or 1.1 ) b) a non XHTML part that contains some...
1
by: Arndt Jonasson | last post by:
Let's say an XML Schema schema A uses types from another schema B. Then, if I understand things correctly, A needs to import schema B (maybe "importing its namespace" is more correctly put). It is...
0
by: =?Utf-8?B?RmlsaXBwbyBCZXR0aW5hZ2xpbw==?= | last post by:
I am trying to use a web service that publishes a WSDL with external schema (.XSD files), unfortunately the .NET wsdl.exe is not able to generate the proxy class for it. It seems that wsdl.exe...
2
by: yannick.beot | last post by:
Hi, I have a problem with nested namespace in a schema. I defined a schema A. A is importing a schema B with the namespace nsB and a schema C with the namespace nsC. But both B and C are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.