You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Wallace <pw...@twowaytv.com.au> on 2005/08/15 09:38:43 UTC
Input stream
Hi All,
I have a socket receiving streams of XML. I receive an InputStream,
but short of a dirty hack, do not know when (or how) I pass the
stream/contents to be parsed. Any thoughts/resources on parsing streaming
XML please?
Thanks
Paul.
Re: Input stream
Posted by Wade Chandler <hw...@yahoo.com>.
You can use different things, but directly programming
you can use SAX2, XMLReader, and
XMLReaderFactory.createXMLReader....see JDK javax.xml
package documentation. You could use a DOM object,
but I wouldn't recommend it because of memory usage.
You can change the underlying XML parser impls for
your JDK as well.
Hope it helps,
Wade
--- Chris Lamprecht <cl...@gmail.com> wrote:
> See XmlPull:
>
> http://www.xmlpull.org/
>
> On 8/15/05, Paul Wallace <pw...@twowaytv.com.au>
> wrote:
> > Hi All,
> > I have a socket receiving streams of XML. I
> receive an InputStream,
> > but short of a dirty hack, do not know when (or
> how) I pass the
> > stream/contents to be parsed. Any
> thoughts/resources on parsing streaming
> > XML please?
> >
> > Thanks
> >
> > Paul.
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Input stream
Posted by Chris Lamprecht <cl...@gmail.com>.
See XmlPull:
http://www.xmlpull.org/
On 8/15/05, Paul Wallace <pw...@twowaytv.com.au> wrote:
> Hi All,
> I have a socket receiving streams of XML. I receive an InputStream,
> but short of a dirty hack, do not know when (or how) I pass the
> stream/contents to be parsed. Any thoughts/resources on parsing streaming
> XML please?
>
> Thanks
>
> Paul.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org