/** * Returns true if the message is XML encoded. Note that this * message does not perform a very robust check, and does not * validate for well-formedness. It is only intended to perform * a simple check for XML vs. ER7 messages. * * @param theMessage message to be examined * @return true if message is XML-encoded */ public static boolean isXmlEncoded(String theMessage) { try { assertXmlEncoded(theMessage); return true; } catch (Exception e) { return false; } }
/** * Returns true if the message is XML encoded. Note that this * message does not perform a very robust check, and does not * validate for well-formedness. It is only intended to perform * a simple check for XML vs. ER7 messages. * * @param theMessage message to be examined * @return true if message is XML-encoded */ public static boolean isXmlEncoded(String theMessage) { try { assertXmlEncoded(theMessage); return true; } catch (Exception e) { return false; } }