How do you handle a request from XMLHTTP with JSP or Servlet?

That is xmlhttp (IE 5 DOM) sends a XML doc as a post to the server and can
receive XML doc response. I can send and receive on the IE side fine.

If it was ASP, you could then put the whole request object straight into
a DOMDocument with something like

How would you do this in JSP or Servlet?