private void writerMember(XmlWriter writer, DataTypeComponent member) {
		XmlAttributes attrs = new XmlAttributes();
		// TODO: how should we output bitfields (packed/non-packed)
		// TODO: multiple components at same offset (e.g., zero-length arrays) could throw-off IDA XML import
		attrs.addAttribute("OFFSET", member.getOffset(), true);
		attrs.addAttribute("DATATYPE", member.getDataType().getDisplayName());
		attrs.addAttribute("DATATYPE_NAMESPACE", member.getDataType().getCategoryPath().getPath());
		if (member.getFieldName() != null) {
			attrs.addAttribute("NAME", member.getFieldName());
		}
		attrs.addAttribute("SIZE", member.getLength(), true);
		writer.startElement("MEMBER", attrs);
		writeRegularComment(writer, member.getComment());
		DisplaySettingsHandler.writeSettings(writer, member.getDefaultSettings());
		writer.endElement("MEMBER");
	}
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