public void write(XmlWriter writer, TaskMonitor monitor) throws CancelledException {
		monitor.setMessage("Writing DATA TYPES ...");

		writer.startElement("DATATYPES");

		Iterator<?> it = dataManager.getAllDataTypes();
		while (it.hasNext()) {
			writeDataType(writer, (DataType) it.next());
			if (monitor.isCancelled()) {
				throw new CancelledException();
			}
		}
		writer.endElement("DATATYPES");
	}
Writes datatypes into XML using the specified XML writer.
@param writer the XML writer
@param monitor the task monitor
@throws CancelledException if the user cancels the write operation
Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/DataTypesXmlMgr.java