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

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