Hello,
Here's the situation...
When I execute the code below, I am getting an xml file (see the partial file below).
The root element is TABLE and instances of element are CLASS.
Is there a nice and simple way to change TABLE for ROWSETS and CLASS for ROW.
Regards,
***********************************************************************************************************************
libname export xml "\\...\Documents\Test\Temp\class.xml";
Data Temp;
set sashelp.class;
run;
data export.class;
set sashelp.class;
run;
/* Here's the partial content of the xml file
The root element is TABLE and instances of element are CLASS
<?xml version="1.0" encoding="windows-1252" ?>
<TABLE>
<CLASS>
<Name> Alfred </Name>
<Sex> M </Sex>
<Age> 14 </Age>
<Height> 69 </Height>
<Weight> 112.5 </Weight>
</CLASS>
<CLASS>
<Name> Alice </Name>
<Sex> F </Sex>
<Age> 13 </Age>
<Height> 56.5 </Height>
<Weight> 84 </Weight>
</CLASS>
*/
Modify the tagset used:
http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002484784.htm
See tagset= option.
And:
http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002975327.htmc
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.