Re: parsing an InputStream from HTTP

2004-12-14 Thread Jon Schewe
On Tue, 2004-12-14 at 12:56, Robert Koberg wrote: Jon Schewe wrote: > On Tue, 2004-12-14 at 11:16, Robert Koberg wrote: > >>/Alistair Young wrote: >>> Is there any way in Xerces/JAXP to parse an HTTP stream? I have an XML >>> doc as POST data, received via HTTP. Create an InputStream for the

Re: parsing an InputStream from HTTP

2004-12-14 Thread Robert Koberg
Jon Schewe wrote: On Tue, 2004-12-14 at 11:16, Robert Koberg wrote: /Alistair Young wrote: Is there any way in Xerces/JAXP to parse an HTTP stream? I have an XML doc as POST data, received via HTTP. Create an InputStream for the bytes and pass it to DocumentBuilder.parse(InputStream). It always t

Re: parsing an InputStream from HTTP

2004-12-14 Thread Jon Schewe
On Tue, 2004-12-14 at 11:16, Robert Koberg wrote: Alistair Young wrote: > Is there any way in Xerces/JAXP to parse an HTTP stream? I have an XML > doc as POST data, received via HTTP. Create an InputStream for the bytes > and pass it to DocumentBuilder.parse(InputStream). It always throws a

Re: parsing an InputStream from HTTP

2004-12-14 Thread Robert Koberg
Alistair Young wrote: Is there any way in Xerces/JAXP to parse an HTTP stream? I have an XML doc as POST data, received via HTTP. Create an InputStream for the bytes and pass it to DocumentBuilder.parse(InputStream). It always throws a premature end of file exception. The only way that works is

parsing an InputStream from HTTP

2004-12-14 Thread Alistair Young
Is there any way in Xerces/JAXP to parse an HTTP stream? I have an XML doc as POST data, received via HTTP. Create an InputStream for the bytes and pass it to DocumentBuilder.parse(InputStream). It always throws a premature end of file exception. The only way that works is to write it to file f

Re: DeferredDocumentImpl?

2004-12-14 Thread Alistair Young
thanks Joseph. That makes sense. Alistair On 14 Dec 2004, at 14:04, Joseph Kesselman wrote: On Tuesday, 12/14/2004 at 01:09 GMT, "Alistair Young" It seems to get populated as you do things on it, such as getNodeName/getNodeValue etc. For instance, after parsing, DeferredDocumentImpl.firstChild i

DeferredDocumentImpl?

2004-12-14 Thread Joseph Kesselman
On Tuesday, 12/14/2004 at 01:09 GMT, "Alistair Young" > It seems to get > populated as you do things on it, such as getNodeName/getNodeValue etc. > For instance, after parsing, DeferredDocumentImpl.firstChild is sometimes > null, or points to a structure full of nulls. After calling > getNodeNa

DeferredDocumentImpl?

2004-12-14 Thread Alistair Young
I wonder if anyone can help. When debugging, I seem to get strange behaviour with XercesJ 2.6.2 - the debugger gives a DeferredDocumentImpl after parsing an XML file and everything in it is null. It seems to get populated as you do things on it, such as getNodeName/getNodeValue etc. For instance, a