#31 [xhtml]

Posting XML over HTTP - Step #3

Parse the response:

InputStream is = ...;
String encoding = connection.getContentEncoding();

Reader r = encoding==null ?
   new InputStreamReader(r) :
   new InputStreamReader(r,encoding);


xmlReader.parse(new InputSource(r));

connection.disconnect();