public static Document readDocFromFile(ResourceFile f) throws JDOMException, IOException {
		SAXBuilder sax = createSecureSAXBuilder(false, false);

		try (InputStream is = f.getInputStream()) {
			Reader r = new InputStreamReader(is, StandardCharsets.UTF_8);
			Document doc = sax.build(r);
			return doc;
		}
	}
Read a File and convert to jdom xml doc.

@param f {@link ResourceFile} to read
@return JDOM {@link Document}
@throws JDOMException if text in file isn't valid XML
@throws IOException if IO error when reading file.
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlUtilities.java