Hello Eric,

Thu, 21 Aug 2008 14:03:26 +0200, /Eric Lilja/:

Hello, my first time posting on this list. I've taken over some code that was written several years ago and I'm supposed to update it. One of the things the code does is parse an xml schema. I encountered a problem when I upgraded xerces to 2.9.1: The method XSElementDeclaration.getAnnotationAttrs() is no longer available. I googled for getAnnotationAttrs to see if I could find information on what I should use instead but google returned zero hits, heh.

Let me clarify with an example schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:foo="http://www.foobar.com/foo";>
    <xs:element name="movies">
        <xs:complexType>
            <xs:sequence>
<xs:element name="movie" type="xs:string" foo:bar="somevalue"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
[...]

If I've got it right in the comp.lang.java.programmer group, you need the "generate-synthetic-annotations" [1] feature available since Xerces 2.7.0. Here's a link to my example in that group, for reference:

http://groups.google.com/group/comp.lang.java.programmer/msg/6d3b9efbd55ad539

[1] http://xerces.apache.org/xerces2-j/features.html#generate-synthetic-annotations

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to