You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Stefan Lischke <li...@novacom.net> on 2002/05/20 22:56:05 UTC

getContent() vs. getContentAsDOM()

Hi,

i really wanna know what is faster to get the Content of an XMLResource,
just the plain text or by a w3c DOM.

I'm asking cause i have to make a decission wether to implement the w3c.dom
Interface or to build my own XML-Constructors and Serialize Method.

thanks

stefan


Re: getContent() vs. getContentAsDOM()

Posted by Juozas Baliuka <ba...@centras.lt>.
Hi,
It depends on situation but
I think it must faster to use getContentAsSAX,
DOM must use more memory. If will use content as stream it will be extra
operation to
parse it.


> Hi,
>
> i really wanna know what is faster to get the Content of an XMLResource,
> just the plain text or by a w3c DOM.
>
> I'm asking cause i have to make a decission wether to implement the
w3c.dom
> Interface or to build my own XML-Constructors and Serialize Method.
>
> thanks
>
> stefan
>