RE: Input stream

2005-08-15 Thread Paul Wallace
Hi & thanks, Parsing a file would not normally be a problem, but as it is a stream, there is no EOF and when I parse the stream into: DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); db.parse(in); I get: org.xml.sax.SAXParseException: The processing instru

Re: Input stream

2005-08-15 Thread Wade Chandler
You can use different things, but directly programming you can use SAX2, XMLReader, and XMLReaderFactory.createXMLReadersee 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

Re: Input stream

2005-08-15 Thread Chris Lamprecht
See XmlPull: http://www.xmlpull.org/ On 8/15/05, Paul Wallace <[EMAIL PROTECTED]> 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

Input stream

2005-08-15 Thread Paul Wallace
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.

[Bug 142] New - Feature to forward requests using request dispatcher even if the servlet input stream is empty BugRat Report#161

2001-03-09 Thread bugzilla
multipart/form data in my servlet, I need to read the input stream to +parse the binary data. I use HttpUtils.parsePostData to do this. Note that I do not +use getParameter on the HttpRequest anywhere after this(since that would definitely +fail - I have emptied the input stream into my own data