You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Emmanuel Venisse <ev...@ifrance.com> on 2003/01/15 10:58:53 UTC

[Betwixt] complex recursion

Hi,

I try to use betwixt with a complex recursive xml like this :

<?xml version="1.0"?>
<ElementBean>
    <element name="element1">
        <subelement name="sub1"/>
        <element name="element11">
          <subelement name="sub11"/>
          <element name="element111"/>
          <element name="element112">
            <subelement name="sub112"/>
          </element>
        </element>
        <element name="element12"/>
    </element>
    <element name="element2">
        <subelement name="sub2"/>
    </element>
</ElementBean>

All element are created but only subelements "sub1" and "sub2" are
created. Other subelements are ignored.

any ideas?

Thanks
Emmanuel


_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Betwixt] complex recursion

Posted by Martin van den Bemt <ml...@mvdb.net>.
I've added the recursion stuff in betwixt, the code prevents infinite
loops, but I think I think I made it a bit inflexible :) 
I will expand the testcase to have more recursion in there and try to
fix it..

Mvgr,
Martin

On Wed, 2003-01-15 at 10:58, Emmanuel Venisse wrote:
> Hi,
> 
> I try to use betwixt with a complex recursive xml like this :
> 
> <?xml version="1.0"?>
> <ElementBean>
>     <element name="element1">
>         <subelement name="sub1"/>
>         <element name="element11">
>           <subelement name="sub11"/>
>           <element name="element111"/>
>           <element name="element112">
>             <subelement name="sub112"/>
>           </element>
>         </element>
>         <element name="element12"/>
>     </element>
>     <element name="element2">
>         <subelement name="sub2"/>
>     </element>
> </ElementBean>
> 
> All element are created but only subelements "sub1" and "sub2" are
> created. Other subelements are ignored.
> 
> any ideas?
> 
> Thanks
> Emmanuel
> 
> 
> _____________________________________________________________________
> Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
> http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Betwixt] complex recursion

Posted by Martin van den Bemt <ml...@mvdb.net>.
Emmanuel,

Could you sent over the sources (preferrably with testcase, saves time),
so I can have a look at it (everything is working here, with the
testcase
o.a.commons.betwixt.io.TestRecursion (your example does resemble the
test that is done on recursion2.xml a lot). 
The current cvs version of the test is not up-to-date btw (it's not even
checking on content), but I fixed that locally. 
I will see if I can commit them in cvs seperately from the other changes
I've made, so you can have a look yourself at the testcase.
btw 
You can also send a diff for the bean you use compared to the bean that
is currently is cvs (ElementBean and children), so I can change the
current recursion2.xml and add the subelement element to the testcase.
(please use cvs diff -u )

Mvgr,
Martin

On Wed, 2003-01-15 at 10:58, Emmanuel Venisse wrote:
> Hi,
> 
> I try to use betwixt with a complex recursive xml like this :
> 
> <?xml version="1.0"?>
> <ElementBean>
>     <element name="element1">
>         <subelement name="sub1"/>
>         <element name="element11">
>           <subelement name="sub11"/>
>           <element name="element111"/>
>           <element name="element112">
>             <subelement name="sub112"/>
>           </element>
>         </element>
>         <element name="element12"/>
>     </element>
>     <element name="element2">
>         <subelement name="sub2"/>
>     </element>
> </ElementBean>
> 
> All element are created but only subelements "sub1" and "sub2" are
> created. Other subelements are ignored.
> 
> any ideas?
> 
> Thanks
> Emmanuel
> 
> 
> _____________________________________________________________________
> Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
> http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>