Hello folks,
I'm using the HTTP Module[1] for sending request. The response has he http:response element which is XML. Then at the end of that element is the body of the response. If your ask for text/plain then you will have the text just after the closing </http:response>.
<http:response status="200" message="OK"> ... </http:response>Hello World!
In my case the media-type of the response is XML. I have something like the following:
<http:response status="200" message="OK"> ... </http:response><service> <hello/> </service>
How am I suppose to parse this output? That is the EXPpath spec, I have to deal with that. But parsing it with BaseX give the following error:
No elements allowed after closed root element.
True, that is not valid XML document. What is the best solution to parse separately the http:response and the body?
Thanks, -- Philippe