String xmlString = DOMWriter.printNode(root, true);
msgLog.trace(messagePrefix + "\n" + xmlString);
}
else if (message instanceof byte[])
{
Element root = new XMLFragment(new StreamSource(new ByteArrayInputStream((byte[])message))).toElement();
String xmlString = DOMWriter.printNode(root, true);
msgLog.trace(messagePrefix + "\n" + xmlString);
}
else if (message instanceof String)
{
Element root = new XMLFragment(new StreamSource(new ByteArrayInputStream(((String)message).getBytes()))).toElement();
String xmlString = DOMWriter.printNode(root, true);
msgLog.trace(messagePrefix + "\n" + xmlString);
}
else
{