Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Dis-integeration of CDATA for large files.

Srinivasan Pillai

2004-02-04

Replies:

Hi All,

I have quite large xml file (around 1 MB). I used JDOM to modify the
contents (using XmlOutputter). When I do so for large files, the CDATA
elements divides itself into 2 or more CDATA elements even though I make no
change to it.

For example, this is the original CDATA element I had in the file,

<long_desc><![CDATA[Test description]]></long_desc>

and this is what I saw after the file was modified

<long_desc><![CDATA[Test d]]><![CDATA[escription]]></long_desc>

Eventhough the result text returns "Test description" for both cases, the
file size increases each time I update the file. Would there be any issue
with XmlOutputter ? This does not happen with smaller files. Appreciate
your help.

Thanks,
Srini


----------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------



_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.