private void writerParameter(XmlWriter writer, ParameterDefinition var, int ordinal) {
		XmlAttributes attrs = new XmlAttributes();
		attrs.addAttribute("ORDINAL", ordinal, true);
		DataType dt = var.getDataType();
		if (dt != null) {
			attrs.addAttribute("DATATYPE", dt.getDisplayName());
			attrs.addAttribute("DATATYPE_NAMESPACE", dt.getCategoryPath().getPath());
			attrs.addAttribute("NAME", var.getName());
			attrs.addAttribute("SIZE", var.getLength(), true);
			writer.startElement("PARAMETER", attrs);
			writeRegularComment(writer, var.getComment());
			writer.endElement("PARAMETER");
		}
		else {
			Msg.error(this, "Parameter data type not found " + var);
		}
	}
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