public static Element byteArrayToXml(byte[] bytes) {
		ByteArrayInputStream is = new ByteArrayInputStream(bytes);
		SAXBuilder sax = createSecureSAXBuilder(false, false);

		try {
			return sax.build(is).getRootElement();
		}
		catch (Exception e) {
			Msg.error(XmlUtilities.class, "Unexpected Exception: " + e.getMessage(), e);
		}
		return null;
	}
Converts the specified byte array into an XML element.

@param bytes the XML bytes
@return an XML element
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlUtilities.java