Home » Archived » XML Schema Definition (XSD) » Help with XSDAnnotation
| |
Re: Help with XSDAnnotation [message #30600 is a reply to message #30530] |
Mon, 29 September 2003 20:58 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Lance,
This looks to be a DOM question. ;-)
I'll try to have a look at it when I have some time, but it seems to me that the
code either works, or has a null pointer exception; either way, it's DOM that's
involved.
Lance Phillips wrote:
> I'm calling XSDSchemaBuildingTools.addUserInformation on an
> XSDSimpleTypeDefinition passing in null for the sourceURI and some text for
> the documentation. However, when I come out of the method my newly created
> Annotation has null for the value of the documentation. In debug mode I get
> to the
> userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text)) line
> and everything seems OK. I'm unable to step into the DOM code as I don't
> have source... but the resulting userInfo does NOT have my text as a child.
>
> Any ideas?
>
> thanks,
>
> lp
|
|
| |
Re: Help with XSDAnnotation [message #30743 is a reply to message #30670] |
Tue, 30 September 2003 12:04 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Lance,
The editor has a number of shortcomings. It doesn't have the ability to create
anything within an XSDAnnotation (because those things are DOM and not EMF
objects).
Lance Phillips wrote:
> Thanks Ed... I seem to be having problems editing Annotations in the
> XSDEditor. I can't do anything with them in the properties panel. I was
> hoping to create a valid example in the editor that I could then steal from
> ;) Is there a bug? We have not rolled up to the latest driver yet.
>
> thanks,
>
> lp
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:3F789D08.5132DF03@ca.ibm.com...
> > Lance,
> >
> > This looks to be a DOM question. ;-)
> >
> > I'll try to have a look at it when I have some time, but it seems to me
> that the
> > code either works, or has a null pointer exception; either way, it's DOM
> that's
> > involved.
> >
> >
> > Lance Phillips wrote:
> >
> > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > XSDSimpleTypeDefinition passing in null for the sourceURI and some text
> for
> > > the documentation. However, when I come out of the method my newly
> created
> > > Annotation has null for the value of the documentation. In debug mode I
> get
> > > to the
> > > userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> line
> > > and everything seems OK. I'm unable to step into the DOM code as I
> don't
> > > have source... but the resulting userInfo does NOT have my text as a
> child.
> > >
> > > Any ideas?
> > >
> > > thanks,
> > >
> > > lp
> >
|
|
|
Re: Help with XSDAnnotation [message #30813 is a reply to message #30743] |
Tue, 30 September 2003 14:40 |
Lance Phillips Messages: 210 Registered: July 2009 |
Senior Member |
|
|
Ed,
Any plans to improve the editor? We were planning on borrowing heavily
from it for an editor we are creating.
thanks,
lp
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:3F79713F.46E56CB2@ca.ibm.com...
> Lance,
>
> The editor has a number of shortcomings. It doesn't have the ability to
create
> anything within an XSDAnnotation (because those things are DOM and not EMF
> objects).
>
>
> Lance Phillips wrote:
>
> > Thanks Ed... I seem to be having problems editing Annotations in the
> > XSDEditor. I can't do anything with them in the properties panel. I
was
> > hoping to create a valid example in the editor that I could then steal
from
> > ;) Is there a bug? We have not rolled up to the latest driver yet.
> >
> > thanks,
> >
> > lp
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:3F789D08.5132DF03@ca.ibm.com...
> > > Lance,
> > >
> > > This looks to be a DOM question. ;-)
> > >
> > > I'll try to have a look at it when I have some time, but it seems to
me
> > that the
> > > code either works, or has a null pointer exception; either way, it's
DOM
> > that's
> > > involved.
> > >
> > >
> > > Lance Phillips wrote:
> > >
> > > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > > XSDSimpleTypeDefinition passing in null for the sourceURI and some
text
> > for
> > > > the documentation. However, when I come out of the method my newly
> > created
> > > > Annotation has null for the value of the documentation. In debug
mode I
> > get
> > > > to the
> > > >
userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> > line
> > > > and everything seems OK. I'm unable to step into the DOM code as I
> > don't
> > > > have source... but the resulting userInfo does NOT have my text as a
> > child.
> > > >
> > > > Any ideas?
> > > >
> > > > thanks,
> > > >
> > > > lp
> > >
>
|
|
|
Re: Help with XSDAnnotation [message #30845 is a reply to message #30813] |
Tue, 30 September 2003 14:47 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Lance,
No, the editor is very low on the list of priorities. It's just meant as a full
scale example from which others can beg, borrow, and steal. ;-)
Lance Phillips wrote:
> Ed,
> Any plans to improve the editor? We were planning on borrowing heavily
> from it for an editor we are creating.
>
> thanks,
>
> lp
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:3F79713F.46E56CB2@ca.ibm.com...
> > Lance,
> >
> > The editor has a number of shortcomings. It doesn't have the ability to
> create
> > anything within an XSDAnnotation (because those things are DOM and not EMF
> > objects).
> >
> >
> > Lance Phillips wrote:
> >
> > > Thanks Ed... I seem to be having problems editing Annotations in the
> > > XSDEditor. I can't do anything with them in the properties panel. I
> was
> > > hoping to create a valid example in the editor that I could then steal
> from
> > > ;) Is there a bug? We have not rolled up to the latest driver yet.
> > >
> > > thanks,
> > >
> > > lp
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:3F789D08.5132DF03@ca.ibm.com...
> > > > Lance,
> > > >
> > > > This looks to be a DOM question. ;-)
> > > >
> > > > I'll try to have a look at it when I have some time, but it seems to
> me
> > > that the
> > > > code either works, or has a null pointer exception; either way, it's
> DOM
> > > that's
> > > > involved.
> > > >
> > > >
> > > > Lance Phillips wrote:
> > > >
> > > > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > > > XSDSimpleTypeDefinition passing in null for the sourceURI and some
> text
> > > for
> > > > > the documentation. However, when I come out of the method my newly
> > > created
> > > > > Annotation has null for the value of the documentation. In debug
> mode I
> > > get
> > > > > to the
> > > > >
> userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> > > line
> > > > > and everything seems OK. I'm unable to step into the DOM code as I
> > > don't
> > > > > have source... but the resulting userInfo does NOT have my text as a
> > > child.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > thanks,
> > > > >
> > > > > lp
> > > >
> >
|
|
| |
Re: Help with XSDAnnotation [message #578795 is a reply to message #30530] |
Mon, 29 September 2003 20:58 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lance,
This looks to be a DOM question. ;-)
I'll try to have a look at it when I have some time, but it seems to me that the
code either works, or has a null pointer exception; either way, it's DOM that's
involved.
Lance Phillips wrote:
> I'm calling XSDSchemaBuildingTools.addUserInformation on an
> XSDSimpleTypeDefinition passing in null for the sourceURI and some text for
> the documentation. However, when I come out of the method my newly created
> Annotation has null for the value of the documentation. In debug mode I get
> to the
> userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text)) line
> and everything seems OK. I'm unable to step into the DOM code as I don't
> have source... but the resulting userInfo does NOT have my text as a child.
>
> Any ideas?
>
> thanks,
>
> lp
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Help with XSDAnnotation [message #578936 is a reply to message #30670] |
Tue, 30 September 2003 12:04 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lance,
The editor has a number of shortcomings. It doesn't have the ability to create
anything within an XSDAnnotation (because those things are DOM and not EMF
objects).
Lance Phillips wrote:
> Thanks Ed... I seem to be having problems editing Annotations in the
> XSDEditor. I can't do anything with them in the properties panel. I was
> hoping to create a valid example in the editor that I could then steal from
> ;) Is there a bug? We have not rolled up to the latest driver yet.
>
> thanks,
>
> lp
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:3F789D08.5132DF03@ca.ibm.com...
> > Lance,
> >
> > This looks to be a DOM question. ;-)
> >
> > I'll try to have a look at it when I have some time, but it seems to me
> that the
> > code either works, or has a null pointer exception; either way, it's DOM
> that's
> > involved.
> >
> >
> > Lance Phillips wrote:
> >
> > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > XSDSimpleTypeDefinition passing in null for the sourceURI and some text
> for
> > > the documentation. However, when I come out of the method my newly
> created
> > > Annotation has null for the value of the documentation. In debug mode I
> get
> > > to the
> > > userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> line
> > > and everything seems OK. I'm unable to step into the DOM code as I
> don't
> > > have source... but the resulting userInfo does NOT have my text as a
> child.
> > >
> > > Any ideas?
> > >
> > > thanks,
> > >
> > > lp
> >
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Help with XSDAnnotation [message #578994 is a reply to message #30743] |
Tue, 30 September 2003 14:40 |
Lance Phillips Messages: 210 Registered: July 2009 |
Senior Member |
|
|
Ed,
Any plans to improve the editor? We were planning on borrowing heavily
from it for an editor we are creating.
thanks,
lp
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:3F79713F.46E56CB2@ca.ibm.com...
> Lance,
>
> The editor has a number of shortcomings. It doesn't have the ability to
create
> anything within an XSDAnnotation (because those things are DOM and not EMF
> objects).
>
>
> Lance Phillips wrote:
>
> > Thanks Ed... I seem to be having problems editing Annotations in the
> > XSDEditor. I can't do anything with them in the properties panel. I
was
> > hoping to create a valid example in the editor that I could then steal
from
> > ;) Is there a bug? We have not rolled up to the latest driver yet.
> >
> > thanks,
> >
> > lp
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:3F789D08.5132DF03@ca.ibm.com...
> > > Lance,
> > >
> > > This looks to be a DOM question. ;-)
> > >
> > > I'll try to have a look at it when I have some time, but it seems to
me
> > that the
> > > code either works, or has a null pointer exception; either way, it's
DOM
> > that's
> > > involved.
> > >
> > >
> > > Lance Phillips wrote:
> > >
> > > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > > XSDSimpleTypeDefinition passing in null for the sourceURI and some
text
> > for
> > > > the documentation. However, when I come out of the method my newly
> > created
> > > > Annotation has null for the value of the documentation. In debug
mode I
> > get
> > > > to the
> > > >
userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> > line
> > > > and everything seems OK. I'm unable to step into the DOM code as I
> > don't
> > > > have source... but the resulting userInfo does NOT have my text as a
> > child.
> > > >
> > > > Any ideas?
> > > >
> > > > thanks,
> > > >
> > > > lp
> > >
>
|
|
|
Re: Help with XSDAnnotation [message #579026 is a reply to message #30813] |
Tue, 30 September 2003 14:47 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lance,
No, the editor is very low on the list of priorities. It's just meant as a full
scale example from which others can beg, borrow, and steal. ;-)
Lance Phillips wrote:
> Ed,
> Any plans to improve the editor? We were planning on borrowing heavily
> from it for an editor we are creating.
>
> thanks,
>
> lp
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:3F79713F.46E56CB2@ca.ibm.com...
> > Lance,
> >
> > The editor has a number of shortcomings. It doesn't have the ability to
> create
> > anything within an XSDAnnotation (because those things are DOM and not EMF
> > objects).
> >
> >
> > Lance Phillips wrote:
> >
> > > Thanks Ed... I seem to be having problems editing Annotations in the
> > > XSDEditor. I can't do anything with them in the properties panel. I
> was
> > > hoping to create a valid example in the editor that I could then steal
> from
> > > ;) Is there a bug? We have not rolled up to the latest driver yet.
> > >
> > > thanks,
> > >
> > > lp
> > >
> > > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > > news:3F789D08.5132DF03@ca.ibm.com...
> > > > Lance,
> > > >
> > > > This looks to be a DOM question. ;-)
> > > >
> > > > I'll try to have a look at it when I have some time, but it seems to
> me
> > > that the
> > > > code either works, or has a null pointer exception; either way, it's
> DOM
> > > that's
> > > > involved.
> > > >
> > > >
> > > > Lance Phillips wrote:
> > > >
> > > > > I'm calling XSDSchemaBuildingTools.addUserInformation on an
> > > > > XSDSimpleTypeDefinition passing in null for the sourceURI and some
> text
> > > for
> > > > > the documentation. However, when I come out of the method my newly
> > > created
> > > > > Annotation has null for the value of the documentation. In debug
> mode I
> > > get
> > > > > to the
> > > > >
> userInfo.appendChild(userINfo.getOwnerDocument().createTextN ode(text))
> > > line
> > > > > and everything seems OK. I'm unable to step into the DOM code as I
> > > don't
> > > > > have source... but the resulting userInfo does NOT have my text as a
> > > child.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > thanks,
> > > > >
> > > > > lp
> > > >
> >
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Wed Sep 25 12:33:45 GMT 2024
Powered by FUDForum. Page generated in 0.04613 seconds
|