Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » complexContent
complexContent [message #57030] Thu, 13 January 2005 11:59 Go to next message
Eclipse UserFriend
Originally posted by: ooi.de.ibm.com

Hello,

I've search in the XSDPrototypicalSchema and still can't find out how to
do this:

<complexType.... name = "...">
<complexContent>
<restriction base = "...">
</complexContent>
</complexType>

I don't know how to produce the <complexContent> Tag.Can someone gimme a
sample code on how to do that?

Thank you.
Re: complexContent [message #57081 is a reply to message #57030] Thu, 13 January 2005 17:59 Go to previous message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
HT Ooi wrote:
> I don't know how to produce the <complexContent> Tag.Can someone gimme a
> sample code on how to do that?

Hi again,

You don't need to go anything special to get the <complexContent>
element; it will appear if needed. So, just set the base type of one
complex type to another like this:

XSDComplexTypeDefinition base = ...
XSDComplexTypeDefinition derived = ...
derived.setBaseTypeDefinition(base);

Cheers,
Dave
Re: complexContent [message #593576 is a reply to message #57030] Thu, 13 January 2005 17:59 Go to previous message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
HT Ooi wrote:
> I don't know how to produce the <complexContent> Tag.Can someone gimme a
> sample code on how to do that?

Hi again,

You don't need to go anything special to get the <complexContent>
element; it will appear if needed. So, just set the base type of one
complex type to another like this:

XSDComplexTypeDefinition base = ...
XSDComplexTypeDefinition derived = ...
derived.setBaseTypeDefinition(base);

Cheers,
Dave
Previous Topic:showing the prefix
Next Topic:Create a simpleType from a DOM element
Goto Forum:
  


Current Time: Thu Nov 21 12:03:39 GMT 2024

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

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

Back to the top