I have some updates: The XML output is looking much better thanks to some trial-and-error testing. What I've realized is that the syntax for many of these elements are not consistent with documentation around the web. Oh well, now I know.
I have a new question about mapping and pulling relationship type codes and relationship type names from related entities. In my newest version of my export map, I have mapped some related entities to the dc:contributor field, with a restrictToRelationshipTypes option. I tried mapping an XML attribute to that element, @dc:AgentClass, to show the specific relationship type of those entities (what I could call a contributor role). In the XML, that mapped attribute (dc:AgentClass) is showing, but not pulling the data.
I attached another .zip file, and the fields I'm talking about are highlighted in the export map. I guess my concern is that it seems like the relationship_typecode was mapped correctly, since it's showing up in the export, but why wouldn't it pull the data? Did I miss something?