Hello Castor-guros,
I have some problems in unmarshalling my xml files to
my defined objects. I am using a mapping file for
my XML to be parsed. Then I figured out that I need
to define every element of my XML file to my mapping
file. Is it possible to ignore some of fields in the
XML and continue to unmarshall it?
e.g.
Input XML file:
<MyRootElement>
<MyFirstNeededElement/>
<IgnoreMeElement/>
</MyRootElement>
Mapping file:
<mapping>
<class name="test.DummyRoot">
<map-to xml=MyRootElement"/>
<field name="dummyElement" type="string">
<bind-xml name="MyFirstNeededElement"/>
</field>
</class>
</mapping>
My Java Classes:
package test;
public class DummyRoot
{
String dummyElement;
}
Do I need something to do with my mapping file
to get rid of the "IgnoreMeElement" and produce
a the instance of test.DummyRoot object?
Thanks.
Charlie
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev