The SAS Output Delivery System and reporting techniques

Hierarchial XML

Reply
Contributor
Posts: 21

Hierarchial XML

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?
Super Contributor
Super Contributor
Posts: 3,174

Re: Hierarchial XML

Suggested Google advanced search argument for this topic:

hierarchical xml site:sas.com


Scott Barry
SBBWorks, Inc.
Contributor
Posts: 21

Re: Hierarchial XML

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Hierarchial XML

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
SAS Super FREQ
Posts: 8,864

Re: Hierarchial XML

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
Ask a Question
Discussion stats
  • 4 replies
  • 162 views
  • 0 likes
  • 3 in conversation