From: Ustuntas Y. <yam...@kz...> - 2007-08-02 10:06:55
|
Hello, We are building a Document in an extension module but DocumentImpl has a = node size limit of 128. Here is out code: ----------------------------------------- MemTreeBuilder builder =3D context.getDocumentBuilder(); builder.startDocument(); builder.startElement(new QName("cache", null, null), null); for (Event evt : events) { builder.startElement(new QName("c", null, null), null); ... builder.endElement(); } builder.endElement(); return (NodeValue) builder.getDocument(); ----------------------------------------- This works fine when the "events" list size is less than 128. If it is = over I get an ArrayIndexOutOfBoundsException. Is the only way to solve this to increase NODE_SIZE field value in = DocumentImpl? Or is there another approach for this? Maybe another way to create the = document.. We have tried with the Document implementation of Sun but couldn't find = a way to pass it as a return param in the method. Thanks :) -- Yaman |