This example
uses the DATA step to restore a data set from an XML document.
libname xmlin xml 'XML-document';
libname target 'SAS-data-library';
data target.grades;
set xmlin.grades;
run;
In the
preceding example, the libref XMLIN points to the location of an XML
document. The XML engine specifies that a SAS data set is to be read.
The libref TARGET points to the location to which the converted SAS
data set will be copied. The SET statement reads the data set XMLIN.GRADES
in XML format, translates it, and copies it to the location that is
specified in the DATA statement.