You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2002/09/10 21:01:20 UTC
Extracting annotation
I could like to extract the annotation information stored in the schema. I
believe there was a question posted a while ago. Is there any way I could
obtain this information rather than manually parsing it.
Thanks
Kiran
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Extracting annotation
Posted by "Peter A. Volchek" <Pe...@ti.com.od.ua>.
> I could like to extract the annotation information stored in the schema. I
> believe there was a question posted a while ago. Is there any way I could
> obtain this information rather than manually parsing it.
> Thanks
> Kiran
>
If you really need it, you should do the following:
- Create a SchemaAnnotation class that fits your needs
- Modify the corresponding classes that may hold the annotation, to keep the
instance of SchemaAnnotation class.
(DatatypeValidator, ComplexTypeInfo, SchemaAttDef, SchemaElementDecl,
SchemaGrammar)
- Modify TraverseSchema.cpp to fill the annotation
- When Xerces team implements his own annotation support, remove your code.
Regards
Peter A. Volchek
P.S.
I have sent you the modified sources so that may use them as an example.
Unfortunately I was not able to post them to forum because of the message
size limit
(ezmlm-reject: fatal: Sorry, I don't accept messages larger than 100000
bytes (#5.2.3) )
If anyone else requires them as an example, let me know and I will send them
asap.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org