axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Miguel Sanchez Martin" <jose.sanc...@swissrisk.com>
Subject [Axis2] Xml Schema parser and annotations
Date Tue, 21 Nov 2006 12:54:23 GMT

Hi,

The xml schema parser fails to parse XSDs with annotations like for 
example this one:

    <xs:annotation>
      <xs:appinfo>Test</xs:appinfo>
      <xs:appinfo>Test</xs:appinfo>
    </xs:annotation>


Maybe this is a bug in xml_schema_builder.c in the following line:

    static xml_schema_app_info_t*
    handle_app_info(
        xml_schema_builder_t *builder,
        const axis2_env_t *env,
        axiom_node_t *content)
    {
    [...]
        if (!ele_iter &&
    !AXIOM_CHILD_ELEMENT_ITERATOR_HAS_NEXT(ele_iter, env))
            return NULL;
    [...]
    }


Should this && be changed to || ?

Best regards,

jms.




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message