public void warning(SAXParseException exception) throws SAXException {
throw exception;
}
});
validator.validate(new OMSource(element));
String pidString = element.getAttributeValue(new QName(SyslogConstants.PID));
return new SyslogMessage(element.getAttributeValue(new QName(SyslogConstants.FACILITY)),
element.getAttributeValue(new QName(SyslogConstants.SEVERITY)),
element.getAttributeValue(new QName(SyslogConstants.TAG)),
pidString == null ? -1 : Integer.parseInt(pidString),