Given this as your XML: <Data> <Type>type of data</Type> </Data>
Here is one way to map it assuming you want to map the <Type> to a field named "data".
<structure name="Data"> <value name="Type" field="data"style="element"/> </structure>
The main thing is that style should probably not be "text". It should probably be element in this case unless <Type> has attributes.
Cameron
Luigia Fassina wrote:
Hi,
sorry in binding.xml I have declared Data of style="text" and "<Type>type of data</Type>" is only text not tag xml
<mapping class="Data" abstract="true">
<value field="data" style="text" get-method="getData" set-method="setData" usage="optional"/>
</mapping>
Regards
Luigia
----- Original Message ----- *From:* Paul Ferraro <mailto:[EMAIL PROTECTED]> *To:* Luigia Fassina <mailto:[EMAIL PROTECTED]> *Sent:* Thursday, April 22, 2004 6:55 PM *Subject:* Re: [jibx-users] marshall problem with "<"
Type should be style="element"
Paul
Luigia Fassina wrote:
> Hi,
> > If I marshall an xml message in this format (in binding.xml I
> have declared Type has style="text")
> > <Data><Type>type of data</Type></Data>
> > I have this results
> > <Data><Type>type of data</Type></Data>
> > in which < is replaced by < (the > has no problem)
> > Is this known as bug or I'm making some error?
> > Regards
> Luigia
>
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
