<br><font size=2 face="sans-serif">Hi Boris,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for the quick respond. </font>
<br><font size=2 face="sans-serif">The data I am streaming in is not in
XML format. Only the processed data that will output in XML. </font>
<br><font size=2 face="sans-serif">If you don't mind, I would like to see
an example of the work around. </font>
<br>
<br><font size=2 face="sans-serif">As for the AIX, I did not have the platform
to try the generated code on yet. Our admin still try to</font>
<br><font size=2 face="sans-serif">put thing together. </font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks again,</font>
<br><font size=2 face="sans-serif">-ricky</font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Boris Kolpackov <boris@codesynthesis.com></b>
</font>
<p><font size=1 face="sans-serif">05/03/2006 12:01 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Ricky H Linh <Ricky_H_Linh@raytheon.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">xsd-users <xsd-users@codesynthesis.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [xsd-users] Serialization to XML</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi Ricky,<br>
<br>
Ricky H Linh <Ricky_H_Linh@raytheon.com> writes:<br>
<br>
> I am looking for an example of how to use Serialization to XML. I
am<br>
> working with a large data which can't all fit in memory.<br>
> ie: I am streaming in data from a file, processing the data
and want to<br>
> write the processed data out into xml.<br>
><br>
> Is the data have to be all in memory before I can Serialize
to file?<br>
<br>
Hm, serialization is only supported in the C++/Tree mapping at the<br>
moment and it does require the whole document to be in memory before<br>
serialization can start. BTW, are you using the C++/Parser to read<br>
in the input data or is it not XML?<br>
<br>
One way to work around this would be to serialize a portion of<br>
processed data into an in-memory buffer and then append it to the<br>
output file. Let me know if you would like an example on how to<br>
do this.<br>
<br>
hth,<br>
-boris<br>
<br>
P.S. Just curious: did you have a chance to try the generated<br>
code on AIX with XL C++?<br>
[attachment "signature.asc" deleted by Ricky H Linh/US/Raytheon]
</tt></font>
<br>