Trying to create an XSD annotation element [message #33959] |
Thu, 11 December 2003 17:57 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03063 seconds