Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Trying to create an XSD annotation element
Trying to create an XSD annotation element [message #33959] Thu, 11 December 2003 12:57 Go to next message
Hayden Marchant is currently offline Hayden Marchant
Messages: 90
Registered: July 2009
Member
I am trying to build some app info for an annotation element which I'll
then add to an XSDElementDeclaration.

My code is as follows:

XSDAnnotation xsdAnnotation = fXsdFactory.createXSDAnnotation();
xsdElementDeclaration.setAnnotation(xsdAnnotation);
Element applicationInformation =
xsdAnnotation.createApplicationInformation(sourceURI);

My question is , is what do I pass as the sourceURI for the
createApplicationInformation method?

Thanks,
Hayden
Re: Trying to create an XSD annotation element [message #34043 is a reply to message #33959] Thu, 11 December 2003 14:09 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Hayden,

The source attribute on <appinfo> and <documentation> is optional, so you
may choose to pass null. It's a good idea for <appinfo> to identify the
"app" so that when you are looking for your appinfo you can tell it apart
from appinfo that isn't yours.


Hayden Marchant wrote:

> I am trying to build some app info for an annotation element which I'll
> then add to an XSDElementDeclaration.
>
> My code is as follows:
>
> XSDAnnotation xsdAnnotation = fXsdFactory.createXSDAnnotation();
> xsdElementDeclaration.setAnnotation(xsdAnnotation);
> Element applicationInformation =
> xsdAnnotation.createApplicationInformation(sourceURI);
>
> My question is , is what do I pass as the sourceURI for the
> createApplicationInformation method?
>
> Thanks,
> Hayden
Re: Trying to create an XSD annotation element [message #581443 is a reply to message #33959] Thu, 11 December 2003 14:09 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25907
Registered: July 2009
Senior Member
Hayden,

The source attribute on <appinfo> and <documentation> is optional, so you
may choose to pass null. It's a good idea for <appinfo> to identify the
"app" so that when you are looking for your appinfo you can tell it apart
from appinfo that isn't yours.


Hayden Marchant wrote:

> I am trying to build some app info for an annotation element which I'll
> then add to an XSDElementDeclaration.
>
> My code is as follows:
>
> XSDAnnotation xsdAnnotation = fXsdFactory.createXSDAnnotation();
> xsdElementDeclaration.setAnnotation(xsdAnnotation);
> Element applicationInformation =
> xsdAnnotation.createApplicationInformation(sourceURI);
>
> My question is , is what do I pass as the sourceURI for the
> createApplicationInformation method?
>
> Thanks,
> Hayden
Previous Topic:Trying to create an XSD annotation element
Next Topic:Headless xsd2genmodel ?
Goto Forum:
  


Current Time: Tue Jul 22 05:26:17 EDT 2014

Powered by FUDForum. Page generated in 0.01842 seconds