See Thread at: http://www.techienuggets.com/Detail?tx=106824 Posted on behalf 
of a User

Hi Every One,

I?m new to Castor and I?m using it to marshall and umrshall my XML file.
I have an XML file that contain 2 elements objects, one of the object has 2 
fields ( String type and Date Type)
Example of my XML file
<?xml version="1.0"  encoding="UTF-8"?>
<people>
        <Person>
                <name>myName2009</name>
                <dateOfBirth>12-11-2009</dateOfBirth>
        </Person>
        <Employee>
                <name>mySecondName</name>
                <employeeID>PR2009</employeeID>
        </Employee>
</people>

and my Person class hase 2 property fields, name (of type String) and 
dateOfBirth field (date type).
When I unmarshall my XML file I got both objects but only the fields of type 
String that has the value, the other field with type Date is null( it's like 
the unmarshalling process just set the String element)

My question as I?m not using any mapping file to unmarshall my XML file,  what 
should I do in my XML file to allow to Castor to unmarchall my XML file with 
all elements that was set in the XML file ?

If you can guide me on this or any link where I can read more about the 
unmarshalling without mapping file.
Thanks in advance for your response,

My Best Regards,
Ghania



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

    http://xircles.codehaus.org/manage_email


Reply via email to