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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.