[XOM-interest] Appending at the end of an Xml file efficiently

Elliotte Harold elharo at ibiblio.org
Sat Jun 20 09:41:45 EDT 2009


On Fri, Jun 19, 2009 at 11:34 PM, Anvesh Vagiri<yahanvesh at gmail.com> wrote:
> hi,
>
> I am just a newbie to XOM, and i need to append nodes to an existing
> xml file always at the end
> I used the code available here.
>
> http://marc.info/?l=xom-interest&m=117286293113470&w=2
>
> But unfortunately it gives Out of memory error in my java netbeans
> when the file size increases more than just 10-15MB.
>

1. Try running the code outside NetBeans.
2. Use a profiler to see where the memory is going, and if you have a
memory leak somewhere.

-- 
Elliotte Rusty Harold
elharo at ibiblio.org


More information about the XOM-interest mailing list