Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Trying to create an XSD annotation element
Trying to create an XSD annotation element [message #33959] Thu, 11 December 2003 17:57 Go to next message
Hayden Marchant is currently offline Hayden MarchantFriend
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 19:09 Go to previous message
Eclipse UserFriend
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 19:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Trying to create an XSD annotation element
Next Topic:Headless xsd2genmodel ?
Goto Forum:
  


Current Time: Fri Mar 29 13:01:55 GMT 2024

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

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

Back to the top