Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 UserFriend
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 SteinbergFriend
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 SteinbergFriend
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: Sat Apr 20 03:29:25 GMT 2024

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

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

Back to the top