[xsd-users] Serialization to XML
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Wed May  3 15:01:37 EDT 2006
    
    
  
Hi Ricky,
Ricky H Linh <Ricky_H_Linh at raytheon.com> writes:
> I am looking for an example of how to use Serialization to XML. I am
> working with a large data which can't all fit in memory.
> ie:  I am streaming in data from a file, processing the data and want to
> write the processed data out  into xml.
>
>  Is the data have to be all in memory before I can Serialize to file?
Hm, serialization is only supported in the C++/Tree mapping at the
moment and it does require the whole document to be in memory before
serialization can start. BTW, are you using the C++/Parser to read
in the input data or is it not XML?
One way to work around this would be to serialize a portion of
processed data into an in-memory buffer and then append it to the
output file. Let me know if you would like an example on how to
do this.
hth,
-boris
P.S. Just curious: did you have a chance to try the generated
     code on AIX with XL C++?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060503/cfebe10c/attachment.pgp
    
    
More information about the xsd-users
mailing list