But where is DOMParser? I'm looking at the 2.6.0 API documentation and see no such class.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 to write it > to file first, then parse it. Hi, InputStream is = request.getInputStream(); DOMParser parser = new DOMParser();
|
Jon Schewe | http://mtu.net/~jpschewe GPG signature at http://mtu.net/~jpschewe/gpg.sig.html For I am convinced that neither death nor life, neither angels nor demons, neither the present nor the future, nor any powers, neither height nor depth, nor anything else in all creation, will be able to separate us from the love of God that is in Christ Jesus our Lord. - Romans 8:38-39 |
