BookmarkSubscribeRSS Feed
Virpi
Calcite | Level 5
Hi

I'm supposed to write hierarchial XML from SAS 9.1.3. The format of the XML file has to be certain.

How can this hiererchial XML be produced? Would writing new tagset be the best possible way? When I tried to create the hierarchies on data-step, the created child element didn't come out to the XML file...
Perhaps I should use data _null_ and put into file for all of the data?
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggested Google advanced search argument for this topic:

hierarchical xml site:sas.com


Scott Barry
SBBWorks, Inc.
Virpi
Calcite | Level 5
Actually it was best to be done with data-step: creating the hierarchy into one variable and then writing to a file with libname statement.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
If at SAS 9.2, consider the XML engine to do the heavy lifting for you. Consider other DOC-related and references available at the SAS support http://support.sas.com/ website.

Scott Barry
SBBWorks, Inc.

SAS 9.1.3 XML LIBNAME Engine: User's Guide
http://support.sas.com/rnd/base/xmlengine/sxle913/usersguide913.htm

What's New in the SAS 9.2 XML LIBNAME Engine
http://support.sas.com/documentation/cdl/en/engxml/61740/HTML/default/engxmlwhatsnew902.htm

Suggested Google advanced search argument on this topic/post:

sas 9.1.3 generate custom xml site:sas.com
Cynthia_sas
SAS Super FREQ
Hi:
Remember that the ability to create an XML file from a SAS dataset using an XML Map is still "pre-production" in SAS 9.2 -- because it requires the XML92 engine, as described here:
http://support.sas.com/kb/33/793.html

cynthia

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 1067 views
  • 0 likes
  • 3 in conversation