Why Use an XMLMap when Exporting?

To export an XML document that was imported using an XMLMap, you can use the XMLMap. The XMLMap syntax tells the XML engine how to map the SAS data set back into the specific XML document structure.
To export an XML document using an XMLMap, specify the XML engine nickname XMLV2 in the LIBNAME statement, and use the XMLMAP= option to specify the file.