Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » building XSDComplexTypeDefinition programmatically
building XSDComplexTypeDefinition programmatically [message #44838] Wed, 19 May 2004 14:41 Go to next message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

I've written some code to build an XSDComplexTypeDefinition from scratch
by calling to XSDFactory, setting a name, content, etc.

Do I also have to build a DOM representation and pass it into
setElement, or is this done somewhere automatically?

The issue is that my type seems to work fine for current purposes, but
that its element remains null even after a call to updateElement. Since
the XSDComplexTypeDefinition knows its name, etc., I would assume/hope
that it can build its DOM representation by itself.

Thanks for your help,
Christian
Re: building XSDComplexTypeDefinition programmatically [message #44866 is a reply to message #44838] Wed, 19 May 2004 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Christian,

No, the DOM can be created for you, but your complex type needs to be in an
XSDSchema in order to be able to that.


Christian Hoertnagl wrote:

> I've written some code to build an XSDComplexTypeDefinition from scratch
> by calling to XSDFactory, setting a name, content, etc.
>
> Do I also have to build a DOM representation and pass it into
> setElement, or is this done somewhere automatically?
>
> The issue is that my type seems to work fine for current purposes, but
> that its element remains null even after a call to updateElement. Since
> the XSDComplexTypeDefinition knows its name, etc., I would assume/hope
> that it can build its DOM representation by itself.
>
> Thanks for your help,
> Christian
Re: building XSDComplexTypeDefinition programmatically [message #45132 is a reply to message #44866] Fri, 21 May 2004 09:19 Go to previous message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

Ed,

Yes, this made the difference. Thx much.

Ed Merks wrote:

> No, the DOM can be created for you, but your complex type needs to be in an
> XSDSchema in order to be able to that.
Re: building XSDComplexTypeDefinition programmatically [message #587232 is a reply to message #44838] Wed, 19 May 2004 15:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Christian,

No, the DOM can be created for you, but your complex type needs to be in an
XSDSchema in order to be able to that.


Christian Hoertnagl wrote:

> I've written some code to build an XSDComplexTypeDefinition from scratch
> by calling to XSDFactory, setting a name, content, etc.
>
> Do I also have to build a DOM representation and pass it into
> setElement, or is this done somewhere automatically?
>
> The issue is that my type seems to work fine for current purposes, but
> that its element remains null even after a call to updateElement. Since
> the XSDComplexTypeDefinition knows its name, etc., I would assume/hope
> that it can build its DOM representation by itself.
>
> Thanks for your help,
> Christian


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: building XSDComplexTypeDefinition programmatically [message #587330 is a reply to message #44866] Fri, 21 May 2004 09:19 Go to previous message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

Ed,

Yes, this made the difference. Thx much.

Ed Merks wrote:

> No, the DOM can be created for you, but your complex type needs to be in an
> XSDSchema in order to be able to that.
Previous Topic:building XSDComplexTypeDefinition programmatically
Next Topic:A question about walkers/visitors
Goto Forum:
  


Current Time: Thu Apr 25 13:00:04 GMT 2024

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

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

Back to the top