02-07-2013 06:32 AM
I am trying to generate XMl out put from SAS Data set which is having more than two are more rows .also i want to add user defined tags in XML file i am attaching desired xml out put file and sample data set below
02-07-2013 07:37 AM
The following SAS statements export the SAS data set named NHL.TEAMS to an XML document named NHLOUT.XML, using an XMLMap named NHLEXPORT.MAP:
libname nhl 'C:\My Documents\myfiles'; filename out 'C:\My Documents\XML\NHLOUT.xml'; libname out xml92 xmltype=xmlmap xmlmap='C:\My Documents\XML\NHLexport.map'; data out.TEAMS; set nhl.teams; run;
Here's the article on creating the xml map:
05-28-2013 12:35 AM
I do not think this is a helpful answers, I am still dealing a problem which XML mapper doesn't allow to generate 2 or more different table, the best option is to use XML map to create the root, child(so on) tagging. exporting xml are totally different from importing you require edit the map file generated from XML mapper here are some links you may do some research,
Using an XMLMap to Export an XML Document with a Hierarchical Structure
frist step is to use xml mapper to generate the require tag and tree you wanted,
secound you need to add require code for exporting the data( the secound link will teach you how ).
I already ask Sas supporting still not getting any good result from them, they told me to use ODS markup statement.