Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSD:How to extract xsd:simpleContent ?
XSD:How to extract xsd:simpleContent ? [message #65690] Mon, 09 January 2006 05:50 Go to next message
Eclipse User
Originally posted by: hjyi2000.naver.com

How to extract <xsd:simpleContent> ?
Re: XSD:How to extract xsd:simpleContent ? [message #65734 is a reply to message #65690] Mon, 09 January 2006 15:59 Go to previous message
David Steinberg is currently offline David Steinberg
Messages: 489
Registered: July 2009
Senior Member
wendy wrote:
> How to extract <xsd:simpleContent> ?

Hi Wendy,

Extract it from where?

If you have an XSDComplexTypeDefinition, you can call getContentType()
on it. If the complex type has simple type (if getContentTypeCategory()
returns XSDContentTypeCategory.SIMPLE_LITERAL), you can cast the result
to an XSDSimpleTypeDefinition.

Cheers,
Dave
Re: XSD:How to extract xsd:simpleContent ? [message #597451 is a reply to message #65690] Mon, 09 January 2006 15:59 Go to previous message
David Steinberg is currently offline David Steinberg
Messages: 489
Registered: July 2009
Senior Member
wendy wrote:
> How to extract <xsd:simpleContent> ?

Hi Wendy,

Extract it from where?

If you have an XSDComplexTypeDefinition, you can call getContentType()
on it. If the complex type has simple type (if getContentTypeCategory()
returns XSDContentTypeCategory.SIMPLE_LITERAL), you can cast the result
to an XSDSimpleTypeDefinition.

Cheers,
Dave
Previous Topic:XSD schema tree
Next Topic:getContentType() vs. getContent() on XSDComplexTypeDefinition
Goto Forum:
  


Current Time: Thu Oct 02 10:30:47 GMT 2014

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

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