if (elt.getFirstChild() != null) {
message = elt.getFirstChild().<Text>cast().getData();
}
throw new ParserException(ParserException.Type.NotWellFormed, message);
} else if ("html".equals(DOMHelper.getLocalName(elt))) {
String message = DOMHelper.evaluateStringXPath(elt, "./x:body/x:parsererror/x:div/text()", new XPathPrefixResolver() {
@Override
public String resolvePrefix(String prefix) {
if ("x".equals(prefix)) {
return "http://www.w3.org/1999/xhtml";
}