If you create a new OMElement

File file= new File("line-item.xml");
         FileInputStream fis= new FileInputStream(file);
         XMLInputFactory xif= XMLInputFactory.newInstance();
         XMLStreamReader reader= xif.createXMLStreamReader(fis);
        StAXOMBuilder builder= new StAXOMBuilder(reader);
         lineItem= builder.getDocumentElement();


On 3/2/06, Lakshmi Chaparala <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to stream xml back to the client using axis2 implementation.
> Do I have to build OMElement before I stream xml or can I just send XML
> across from the server?
>
> I used XMStreamReader to stream and also set builder caching to false but
> axis2 blocks on the call and the client times out before it gets any
> response.
>
> We have to send a large set of xml back to the client and if I build
> OMElement, out server's memory jumps really high. I am trying to reduce this
> memory footprint by streaming xml as a string and not as an OMElement. Can
> this be done?
>
> Thanks
>
> Lakshmi
>
>
>
>
>


--
============================
Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani

Reply via email to