Hi

I'm using the Source Generator to generate the class Download from a Schema.

After unmarshalling, the obj downl contains the correct values from inFile.
A following marshalling to outFile produces an XML that contains only one
<Byte> element with invalid content.

Hasn't anyone else run into this problem before?

Regards Hermann



castor version: 0.9.3.9

Source Generator Options:
-types j2



Java code
---------

        Download                downl = null;

        // unmarshal
        downl = Download.unmarshal(new FileReader(inFile));

        // marshal
        downl.marshal(new FileWriter(outFile));






XML Schema
----------
        <?xml version="1.0" encoding="UTF-8"?>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified">
                <xsd:element name="Download">
                        <xsd:annotation>
                                <xsd:documentation>Describes the Format
</xsd:documentation>
                        </xsd:annotation>
                        <xsd:complexType>
                                <xsd:sequence>
                                        <xsd:element name="Data">
                                                <xsd:complexType>
                                                        <xsd:sequence>
                                                                <xsd:element
name="Byte" type="xsd:byte" maxOccurs="500"/>
                                                        </xsd:sequence>
                                                </xsd:complexType>
                                        </xsd:element>
                                </xsd:sequence>
                        </xsd:complexType>
                </xsd:element>
        </xsd:schema>





inFile
------
        <?xml version="1.0" encoding="UTF-8"?>
        <Download>
                <Data>
                        <Byte>51</Byte>
                        <Byte>52</Byte>
                        <Byte>53</Byte>
                        <Byte>54</Byte>
                        <Byte>55</Byte>
                </Data>
        </Download>



outFile
-------

        <?xml version="1.0"?>
        <Download>
                <Data>
                        <Byte>MzQ1Njc=</Byte>
                </Data>
        </Download>

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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

Reply via email to