public void restoreXml(XmlPullParser parser) {
		parser.start("serverconfig");
		while (parser.peek().isStart()) {
			XmlElement el = parser.start();
			if (el.getName().equals("config")) {
				String key = el.getAttribute("key");
				String val = parser.end().getText();
				keyValue.put(key, val);
			}
			else if (el.getName().equals("connect")) {
				ConnectLine connLine = new ConnectLine();
				connLine.isMatched = false;
				connLine.restoreXml(el);
				connectSet.add(connLine);
				parser.end(el);
			}
			else {
				parser.discardSubTree(el);
			}
		}
		parser.end();
	}
Read a set of key/value pairs and connection entries to use for patching, from an XML file
@param parser the XML parser
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/ServerConfig.java