BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

I wonder if there is a way to convert a SAS Dataset into an XML file which complies with the XSD provided by an organisation?

 

I found a way on the web to convert a dataset into an xml file but it does not guaranty that the obtain XML file complies with the provided XSD file.

 

Therefore, imagine that I have a XSD file and a Dataset and that I would like to combine this information in order to obtain an XML file that fulfill the organisation standard,

 

Is there an expert who could help me with that issue?

 

Regards,

 

1 REPLY 1
Patrick
Opal | Level 21

@alepage

I believe you would need to use an XMLMAP in your libname statement to control XML generation.

You can use the XMLMapper to create such a map from an XSD.

https://support.sas.com/downloads/package.htm?pid=1278 

 

I haven't done more than a bit of "playing around" with this but given that an XSD can describe much more than simple tables, I would expect that there are limits to what XSD's the XMLMapper can convert without manual intervention.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1259 views
  • 0 likes
  • 2 in conversation