the simplest solution works like:[pre]
libname yourxm xml 'your.xml' ;
proc copy in= sashelp out= yourxm mt= data;
select class ;
libname yourxm clear ;[/pre]
You could create your data set directly in the xml library, but it seems more normal, to just copy them from wherever. For that, proc copy seems simplest.
The XML engine delivered with SAS8.2 is a bit basic, but exists. There is an improved version available for download from the http://support.sas.com/index.html website. (but that isn't the simplest solution, nor the "best" 😉
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.