public Element toXml() {
		Element result = new Element(XML_ELEMENT_NAME);

		XmlUtilities.setStringAttr(result, "preBytes", preBytes);
		XmlUtilities.setStringAttr(result, "firstBytes", firstBytes);
		XmlUtilities.setStringAttr(result, "address", address);
		Element returnBytesListEle = new Element("returnBytesList");
		result.addContent(returnBytesListEle);
		for (String s : returnBytes) {
			Element rbNode = new Element("returnBytes");
			XmlUtilities.setStringAttr(rbNode, "value", s);
			returnBytesListEle.addContent(rbNode);
		}
		if (firstInst != null) {
			result.addContent(firstInst.toXml("firstInst"));
		}
		if (preInst != null) {
			result.addContent(preInst.toXml("preInst"));
		}
		if (returnInst != null) {
			Element returnInstListEle = new Element("returnInstList");
			result.addContent(returnInstListEle);
			for (InstructionSequence is : returnInst) {
				returnInstListEle.addContent(is.toXml());
			}
		}
		if (contextRegisters != null) {
			Element contextRegistersListEle = new Element("contextRegistersList");
			result.addContent(contextRegistersListEle);
			for (ContextRegisterInfo cri : contextRegisters) {
				contextRegistersListEle.addContent(cri.toXml());
			}
		}

		return result;
	}
Converts this object instance into XML.

@return new jdom Element populated with all the datas
Ghidra/Features/BytePatterns/src/main/java/ghidra/bitpatterns/info/FunctionBitPatternInfo.java