public static Response parseXML(InputStream is) throws SAMLException {
  Document doc=XMLUtils.toDOMDocument(is,SAMLUtils.debug);
  Element root=doc.getDocumentElement();
  return new Response(root);
}

public static Response parseXML ( InputStream is ) throws SAMLException { Document doc = XMLUtils . toDOMDocument ( is , SAMLUtils . debug ) ; Element root = doc . getDocumentElement ( ) ; return new Response ( root ) ; }
returns response object based on the xml document received from server . this method is used primarily at the client side . the schema of the xml document is describe above .
