Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » complexContent
complexContent [message #57030] Thu, 13 January 2005 06: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 12:59 Go to previous message
Eclipse UserFriend
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 12:59 Go to previous message
Eclipse UserFriend
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: Sat Mar 29 10:49:43 EDT 2025

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

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

Back to the top