Here are basic rules for writing an exporter. I will present some examples in the XSLT language because I assume it will be used mostly to write an exporter.
First step of processing an XML is the transformation with an exporter. Of course this step is optional - source document nametree may be transported directly to coordinator if the coordinator accepts nametree's namespace. However if you intend to use an exporter, here are some conditions that must be met:
Most commonly used method to transport the ID of a text is to enclose it in an element with its ID being set as the value of the gene:id attribute. Thus, if the text node's parent element's ID is synthetic then there is a high probability that it is the ID of text we are searching for.