Dear all,
I try to build a JDOM Document with a ServletInputStream as argument, but stumble upon a JDOMParseException.
The code that produces the error is:
ServletInputStream inputStream = request.getInputStream();
SaxBuilder builder = new SaxBuilder();
builder.build(inputStream);
The errormessage I receive is:
org.jdom.input.JDOMParseException: Error on line 1: Content is not allowed in prolog.
I tried it with different XML files.
Has anyone had success with using a ServletInputStream as argument, or should I always first write the XML file to a temporary location and reread it afterwards (which seems a more inefficient way of tackling the problem).
Thanks very much,
Gert
I try to build a JDOM Document with a ServletInputStream as argument, but stumble upon a JDOMParseException.
The code that produces the error is:
ServletInputStream inputStream = request.getInputStream();
SaxBuilder builder = new SaxBuilder();
builder.build(inputStream);
The errormessage I receive is:
org.jdom.input.JDOMParseException: Error on line 1: Content is not allowed in prolog.
I tried it with different XML files.
Has anyone had success with using a ServletInputStream as argument, or should I always first write the XML file to a temporary location and reread it afterwards (which seems a more inefficient way of tackling the problem).
Thanks very much,
Gert