title: Application of an XPath query to a SOAPMessage in Java
body: <p>currently making a SOAP request using Java's <code>SOAPConnectionFactory</code> and <code>SOAPConnection</code>'s <code>.call()</code> method, which returns a <code>SOAPMessage</code> object, and I would like to apply an XPath query to it. Is this at all possible, or am I going about it completely wrong? </p>
  
  <p>As far as I can work out, I'd have to somehow convert <code>SOAPMessage</code> to an <code>InputSource</code> which I can then apply the XPath to, but I can't quite work out how to go about doing this.</p>
  
  <p>Thanks,
  Peter</p>