* @throws ParserConfigurationException
*/
public static GPathResult xml(com.google.appengine.api.xmpp.Message message) throws IOException, SAXException, ParserConfigurationException {
if (message.isXml()) {
XmlSlurper slurper = new XmlSlurper();
return slurper.parseText(message.getStanza());
} else {
throw new RuntimeException("You can't get the XML of this message as this is not an XML message.");
}
}