Hi Leonardo,

leonardo wrote:

> my bad xml that have to read is like this:
> A-file.xml
> <element>
>   <obj1 lg="xx">yyy</obj1>
>   <obj2 lg="xx">yyy</obj2>
>   
>   <obj1 lg="xx">yyy</obj1>
>   <obj2 lg="xx">yyy</obj2>
>   
>   <obj1 lg="xx">yyy</obj1>
>   <obj2 lg="xx">yyy</obj2>
>   ...
> </element>
> 
> element tag have a List of 2 tag
> like an implicitCollection but without a container:
> this will be better
> B-file.xml
> <element>
>   <container>
>     <obj1 lg="xx">yyy</obj1>
>     <obj2 lg="xx">yyy</obj2>
>   </container>
>   <container>
>     <obj1 lg="xx">yyy</obj1>
>     <obj2 lg="xx">yyy</obj2>
>   </container>
>   <container>
>     <obj1 lg="xx">yyy</obj1>
>     <obj2 lg="xx">yyy</obj2>
>   </container>
>   ...
> </element>
> but unlikely this is not my xml.
> 
> can help me on read A-file.xml?

Why don't you write a simple custom converter for the type that is 
represented by the element tag? It's then completely up to you, what you do 
with the individual child elements. Have a look at the converter tutorial, 
it should be really an easy job.

- Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to