Hi Alberto, I got it now, Thanks again for your help. My observations (or things I've learned :)
To access grammar information it's necessary to derive Xerces parser. This is not what I expected to do but it works. Determining the scope of an element is a expensive job. In a generic case first I have to traverse the parent chain until top level and second navigate downwards using scopes. At the end I'm able to get the annotation of my element as string. But this one is a XML snippet containing whole annotation text. All what I wanted to get was the appinfo element of annotation.... I guess using xs:appinfo is not a common use case. Regards, Michael
