<br><font size=2 face="sans-serif">Hi Boris,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for the quick respond. &nbsp;</font>
<br><font size=2 face="sans-serif">The data I am streaming in is not in
XML format. &nbsp;Only the processed data that will output in XML. &nbsp;</font>
<br><font size=2 face="sans-serif">If you don't mind, I would like to see
an example of the work around. &nbsp;</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. &nbsp;Our admin still try to</font>
<br><font size=2 face="sans-serif">put thing together. &nbsp;</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 &lt;boris@codesynthesis.com&gt;</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 &lt;Ricky_H_Linh@raytheon.com&gt;</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 &lt;xsd-users@codesynthesis.com&gt;</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 &lt;Ricky_H_Linh@raytheon.com&gt; writes:<br>
<br>
&gt; I am looking for an example of how to use Serialization to XML. I
am<br>
&gt; working with a large data which can't all fit in memory.<br>
&gt; ie: &nbsp;I am streaming in data from a file, processing the data
and want to<br>
&gt; write the processed data out &nbsp;into xml.<br>
&gt;<br>
&gt; &nbsp;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>
 &nbsp; &nbsp; code on AIX with XL C++?<br>
[attachment &quot;signature.asc&quot; deleted by Ricky H Linh/US/Raytheon]
</tt></font>
<br>