Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Inheritance Problem
Inheritance Problem [message #598013] Tue, 25 April 2006 02:09
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 469
Registered: July 2009
Location: Germany ✈ Vancouver
Senior Member


I'm trying to define a simple inheritance model from a web tutorial. I
failed using the XSD sample editor (2.2 RC1), i.e. it didn't let me
define the base type for the extension (it was set to anyType).

Thus, I took the snippet and copied it into a sample schema. But I think
there is something wrong because I get an error annotation that the base
element could not be found.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:this="http:///test/myschema"

<xsd:complexType name="Address">
<!-- stuff -->

<xsd:complexType name="USAddress">
<xsd:extension base="Address">
<!-- stuff -->

As this is my first step in this stuff I probably doing something wrong
here. Any ideas what?

Cu, Gunnar

Gunnar Wagenknecht
Previous Topic:XML Generation and element hiding
Next Topic:Inheritance Problem
Goto Forum:

Current Time: Thu Nov 26 07:22:27 GMT 2015

Powered by FUDForum. Page generated in 0.02080 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software