Having one of the above schema ( either one ):

<xs:element name="OBJ_VERSION" nillable="true">
        <xs:simpleType>
                <xs:restriction base="xs:integer">
                        <xs:minInclusive value="0"/>
                        <xs:maxInclusive value="1"/>
                </xs:restriction>
        </xs:simpleType>
</xs:element>

or 

<xs:element name="OBJ_VERSION" type="xs:integer"/>

I have create an instance of ABLAGE_DOKUMENT class in ablage. I make
unmarshall of the data from the following XML described bellow:

<MXOFFICE_REQUEST OPERATION="ORDER_HISTORY_SAVE">
<ABLAGE_DOKUMENT>
        <LFDNR>2234</LFDNR>
        <MANDANT>998</MANDANT>
        <DOKUMENTENTYP>RECHNUNG</DOKUMENTENTYP>
        <DOKUMENTENNR>22</DOKUMENTENNR>
        <DATUMZEIT>2003-12-03</DATUMZEIT>
        <MITARBEITER>Rolland</MITARBEITER>
        <STICHWORT>RECHNUNG ERSTELLEN</STICHWORT>
        <DOKUMENT>ssss</DOKUMENT>
        <DOKUMENT_ENCODING>BASE64</DOKUMENT_ENCODING>
        <OBJ_FORMAT>XML</OBJ_FORMAT>
        <OBJ_VERSION></OBJ_VERSION> ////////carefull here
        <ADD_INFO><x>ttt</x></ADD_INFO>
        <REF_NR>32323</REF_NR>
        <REFERENZ_TYP></REFERENZ_TYP>
        <DOKUMENT_NAME>32323</DOKUMENT_NAME>
</ABLAGE_DOKUMENT>

</MXOFFICE_REQUEST>

When I ask for 

ablage.getOBJ_VERSION()

I get 0 and not NULL. Can this behaviour be customized? I need null like
will be normal to have. In case of String I have  "" (empty) also and not
null. Any help will be great apreciated.

Marius Florian MAilat

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to