[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    Can we generate a 40 Meg xml file using xmlBeans
From:       <Sateesh.Kumar () iflexsolutions ! com>
Date:       2004-07-19 10:58:11
Message-ID: 4421DECD1639A149826D84B0F3EE8F1F08E6AA44 () fmg-op ! opal ! i-flex ! com
[Download RAW message or body]

Hi,

I have a requirement of generating a huge xml file of size >=40 MB using
xml beans. I'm using Schema generated classes to generate the xml.  As
per the framework restriction the file shouldn't be copied onto the hard
disk, it should only be saved into the Database. I'm having the
following my doubts in my mind.

 

Can we generate an xml as large as 40 MB with xml beans? If not, is
there any alternative like generating the xml in parts and merging them
at the end?

Using Schema generated classes is a must for me to generate the xml. 

After creating an element if I try to push it to the database instead of
adding the element to the XML Document object, will it save my memory?
Since, I'm not holding the Fragment in the memory after creating, and
then it should be garbage collected right.

 

Somebody please advice me an optimum solution.

 

Thanks in advance.

 

Regards,
Sateesh




 


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Calisto MT";
	panose-1:2 4 6 3 5 5 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:#606420;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink="#606420">

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a requirement of generating a huge xml file of size
&gt;=40 MB using xml beans. I&#8217;m using Schema generated classes to
generate the xml. &nbsp;As per the framework restriction the file shouldn&#8217;t
be copied onto the hard disk, it should only be saved into the Database. I&#8217;m
having the following my doubts in my mind.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Can we generate an xml as large as 40 MB with xml beans? If
not, is there any alternative like generating the xml in parts and merging them
at the end?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Using Schema generated classes is a must for me to generate
the xml. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>After creating an element if I try to push it to the
database instead of adding the element to the XML Document object, will it save
my memory? Since, I&#8217;m not holding the Fragment in the memory after
creating, and then it should be garbage collected right.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Somebody please advice me an optimum \
solution.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#333300" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#333300'>Thanks in \
advance.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#333300" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#333300'><o:p>&nbsp;</o:p></span></font></p>


<p class=MsoNormal><em><b><i><font size=3 color="#333300" face="Calisto MT"><span
style='font-size:12.0pt;font-family:"Calisto MT";color:#333300;font-weight:
bold'>Regards,</span></font></i></b></em><b><font color="#333300"
face="Calisto MT"><span style='font-family:"Calisto MT";color:#333300;
font-weight:bold'><br>
<em><i><font face="Calisto MT"><span style='font-family:"Calisto \
MT"'>Sateesh</span></font></i></em></span></font></b><i><font size=2 color="#333300" \
face="Calisto MT"><span style='font-size:10.0pt; font-family:"Calisto \
MT";color:#333300;font-style:italic'><br> </span></font></i><font size=4 \
color="#333300" face="Calisto MT"><span style='font-size:13.5pt;font-family:"Calisto \
MT";color:#333300'><br> <br>
</span></font><em><b><i><font color="#333300" face="Calisto MT"><span
style='font-family:"Calisto \
MT";color:#333300;font-weight:bold'><o:p></o:p></span></font></i></b></em></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic