You check for the generation of xml files based on the metadata of the dataset with the help of XML Engine, or you can try the XML mapper for incorporating complicated xml files that need to be transported along with a xml mapper files that defines the strucutre of the xml file to the xml engine.
Writing the xml file:
http://www2.sas.com/proceedings/sugi29/119-29.pdfods xml file='C:\workshop\ws119\XML\discharge_print.xml';
proc print noobs data=discharge;
run;
ods xml close;
Reading the xml file:
filename defxml "&XMLPATH/CHECK..xml";
filename xmlmap "&SOURCE_PATH/CHECK.map";
libname defxml xml xmlmap=XMLMAP access=READONLY;