Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » extension base
extension base [message #597791] Fri, 17 March 2006 13:40
tatini venkate is currently offline tatini venkateFriend
Messages: 19
Registered: July 2009
Junior Member

I am new to this group and XSD.

I have gone through news group and understand that to resolve extension
base elements we should use GetContentType(). But I was not able to

Can any one please share me code snipped to resolve the below schema.

Advance Thanks

<xs:schema xmlns:xs=""
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="Address">
<xs:element name="name" type="xs:string"/>
<xs:element name="street" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:attribute name="Person" type="xs:string"/>
<xs:complexType name="USAddress">
<xs:extension base="Address">
<xs:element name="state" type="xs:string"/>
<xs:element name="zip" type="xs:string"/>
<xs:attribute name="Surname" type="xs:string"/>
<xs:complexType name="NYAddress">
<xs:extension base="USAddress">
<xs:attribute name="RentControlled" type="xs:boolean"/>
<xs:element name="address" type="NYAddress"/>
Previous Topic:XSD indent serialization using JDK 1.5
Next Topic:Stack overflow when opening XSD
Goto Forum:

Current Time: Mon Jan 18 10:48:37 GMT 2021

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

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

Back to the top