public static FunctionEntry restoreXml(XmlPullParser parser) {
		FunctionEntry functionEntry = new FunctionEntry();
		XmlElement startEl = parser.start("fentry");
		functionEntry.funcName = startEl.getAttribute("name");
		functionEntry.address = SpecXmlUtils.decodeLong(startEl.getAttribute("addr"));
		parser.end(startEl);
		return functionEntry;
	}
Identifying information for a function within a single executable
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/FunctionEntry.java