complexContent [message #57030] |
Thu, 13 January 2005 06:59  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03150 seconds