Thanks, it seems to work correctly.

Emmanuel

-----Message d'origine-----
De: Martin van den Bemt <[EMAIL PROTECTED]>
A: Jakarta Commons Developers List <[EMAIL PROTECTED]>
Date: 19/01/03
Objet: Re: Re:Re: [Betwixt] complex recursion

Fixed in cvs HEAD and in the alpha release branch.
I'll wait for an update on the testcases a bit, since I updated the
recursion testcases quite a bit. (actually checking content now). Since
I have a refactor going on of BeanWriter at the same time, I must be
positive that any fixes to the testcases still are working when I
finished the refactor :)

Mvgr,
Martin

On Sun, 2003-01-19 at 10:21, Emmanuel Venisse wrote:
> Hi Martin,
> 
> I modify the test case, Element class and add Subelement.java and
> recursion3.xml
> 
> Index: Element.java
> ===================================================================
> RCS file:
>
/home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/re
> cursion/Element.java,v
> retrieving revision 1.3
> diff -r1.3 Element.java
> 75a76
> >     ArrayList subelements;
> 84a86
> >         subelements = new ArrayList();
> 112a115,124
> >     public void addSubelement(Subelement subelement)
> >     {
> >         subelements.add(subelement);
> >     }
> >     
> >     public List getSubelements()
> >     {
> >         return subelements;
> >     }
> > 
> Index: TestRecursion.java
> ===================================================================
> RCS file:
>
/home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/re
> cursion/TestRecursion.java,v
> retrieving revision 1.6
> diff -r1.6 TestRecursion.java
> 133a134,150
> >      * This will test reading a complex recursive xml file
> >      */
> >     public void
testComplexReadWithoutCollectionsInElementRoundTrip()
> >     throws Exception
> >     {
> >        
>
System.out.println("\ntestComplexReadWithoutCollectionsInElement()\n");
> >         XMLIntrospector intro = createXMLIntrospector();
> >         BeanReader reader = new BeanReader();
> >         reader.registerBeanClass(ElementBean.class);
> >         reader.setXMLIntrospector(intro);
> >         Object object =
>
reader.parse(getTestFileURL("src/test/org/apache/commons/betwixt/recursi
> on/recursion3.xml"));
> >         StringWriter buffer = new StringWriter();
> >         write (object, buffer, false);
> >         System.out.println("buffer : "+buffer);
> >     }
> >     
> >     /**
> 
> 
> Emmanuel
> 
> -----Message d'origine-----
> De: Martin van den Bemt <[EMAIL PROTECTED]>
> A: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> Date: 17/01/03
> Objet: Re: [Betwixt] complex recursion
> 
> 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:  
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> _____________________________________________________________________
> 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
> 
> _____________________________________________________________________
> GRAND JEU SMS : Pour gagner un NOKIA 7650, envoyez le mot IF au 61321
> (prix d'un SMS + 0.35 euro). Un SMS vous dira si vous avez gagné.
> Règlement : http://www.ifrance.com/_reloc/sign.sms
> 
> 
> 
> --
> To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 
> 



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

_____________________________________________________________________
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


_____________________________________________________________________
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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to