public Element getXmlRoot(boolean includeDefaultBindings) {

		SaveState saveState = new SaveState(XML_ELEMENT_NAME);

		writeNonWrappedOptions(includeDefaultBindings, saveState);

		Element root = saveState.saveToXml();
		root.setAttribute(NAME_ATTRIBUTE, name);

		writeWrappedOptions(includeDefaultBindings, root);

		return root;
	}
Return an XML element for the option names and values.
Note: only those options which have been explicitly set
will be included.

@param includeDefaultBindings true to include default key binding values in the xml
@return the xml root element
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/ToolOptions.java