Hi,
I fogot mention that the version of Castor I use is the latest stable version 
to download at the moment (1.2 in MANIFEST file)

Also two castor.properties parameter I use:
org.exolab.castor.parser.namespaces=true
org.exolab.castor.xml.naming=mixed

Terv.
Antoni

-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: 9. huhtikuuta 2008 15:13
To: [email protected]
Subject: Re: [castor-user] How to use hierarchical objects with wrapper



Alatalo, Antoni wrote:
> Hi,
> I have Object A that has Collection of Objects A. Normal hierarchy
> structure.
> I got to work it almost well except two details.
> The collection is wrapped. It should look like this Lets name
> namespace like bar <bar:foo name="1">
>         <bar:children>
>                 <bar:foo name="2*"*/>
>                 <bar:foo name="3"/>
>         </bar:children>
> </bar:foo>
>
> The problem is that chioldren while marhalling doen't get bar prefix.
> This is output after marshalling
> <bar:foo name="1">
>         <children>
>                 <bar:foo name="2*"*>
>                         <children/>
>                 </bar:foo>
>                 <bar:foo name="3">
>                         <children/>
>                 </bar:foo>
>         </children>
> </bar:foo>
>
> How can i configure mapper to use prefix with "children" wrapper?
> Without this xml is not valid!
What version of Castor are you using ? And what does your mapping for the 
relevant classes look like ? It looks like you are using the locations 
attribute on the field mapping for the 'bar' children ?

> Teh next thing is empty collection. How can i configure mapper to
> exclude empty or null not required values?
Can you show us some sample XML that highlights your problem ? It just isn't 
fully clear to me what the problem is.

>
> Thank you
> *Antoni Alatalo
> *Ohjelmistoasiantuntija
> Kuntatoimiala, sosiaalitoimi
> _________________________________________
>
> *Logica **- Releasing your potential
>
> *Karvaamokuja 2
> PL 38
> 00381 Helsinki
> Vaihde: 010 302 010
> Suora: 040 583 1097
> [EMAIL PROTECTED]
> _www.logica.fi_ <http://www.logicacmg.fi> WM-datan nimi on nyt
> *Logica.*
>
>


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

    http://xircles.codehaus.org/manage_email




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

    http://xircles.codehaus.org/manage_email


Reply via email to