Connecting to Common Data Sources |
The following figure provides a logical view of using XML files as a data source.
Establishing Connectivity to XML Files
The following steps describe how to specify a SAS XML library in SAS Management Console. Assume that the XML library will point to an XML file that contains climate information (climate.xml). The XML file is in generic format, as defined for the SAS XML LIBNAME engine. For more information, see the SAS XML LIBNAME Engine: User's Guide.
To register an XML library, perform the following steps:
In SAS Management Console, expand Data Library Manager. Right-click Libraries. Then, select the New Library option to access the New Library wizard.
Select SAS XML library from the SAS Data list. Click Next.
Enter an appropriate library name in the Name field (for example, XML Lib). Click Next.
Enter information about the library, such as the following:
Field | Sample Value |
---|---|
Name |
XML Lib |
Libref |
xmllib |
Engine |
XML |
XML File |
C:\sources\xml\climate.xml |
XML Type |
GENERIC |
Library Access |
READONLY |
Click Finish to save the wizard settings.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.