You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Jose Miguel Sanchez Martin <jo...@swissrisk.com> on 2006/11/21 13:54:23 UTC

[Axis2] Xml Schema parser and annotations

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


[Axis2] Xml Schema parser and annotations

Posted by Jose Miguel Sanchez Martin <jo...@swissrisk.com>.
Hi Nandika,

Yes, it works!

Thanks so much,

jms.

Nandika Jayawardana wrote:
> Hi jose,
>  
> yes, there was a bug and i corrected it.
> Can you check whether it works now,
>
> Thanks
> Nandika
>
>
> On 11/21/06, *Jose Miguel Sanchez Martin * <jose.sanchez@swissrisk.com 
> <ma...@swissrisk.com>> wrote:
>
>
>     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
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>


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


Re: [Axis2] Xml Schema parser and annotations

Posted by Nandika Jayawardana <ja...@gmail.com>.
Hi jose,

yes, there was a bug and i corrected it.
Can you check whether it works now,

Thanks
Nandika


On 11/21/06, Jose Miguel Sanchez Martin <jo...@swissrisk.com> wrote:
>
>
> 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
>
>