Valid in: | Anywhere |
Category: | Data Access |
XML Only
.
XMLV2 Only
.
XML
Only
or XMLV2 Only
,
the functionality is available for both engine nicknames.
'C:\My
Documents\XML'
.
'C:\My Documents\XML\myfile.xml'
.
filename bedrock 'C:\XMLdata\fred.xml'; libname bedrock xml; proc print data=bedrock.fred; run;
To specify a fileref for the XML document that does not match the libref, you can use the XMLFILEREF= option. For example, the following code writes to the XML document Wilma.XML:
filename cartoon 'C:\XMLdata\wilma.xml'; libname bedrock xml xmlfileref=cartoon; proc print data=bedrock.wilma; run;
You must include the XMLMAP= option to specify the physical location of the generated XMLMap file with either the complete pathname, filename, and file extension, or with a file reference that is associated with the physical location for the DISK or TEMP device type only. The AUTOMAP= option does not support accessing an XMLMap file by using access methods such as FTP, SFTP, URL, or WebDAV.
You can assign the generated XMLMap file to a temporary location, which is deleted at the end of the SAS session. To do this, associate a file reference to a physical location and specify the TEMP device type.
When the format catalog is updated, the default behavior is that any new SAS formats that are created by converting CDISC ODM CodeList elements will overwrite any existing SAS formats that have the same name. To prevent existing SAS formats from being overwritten, specify FORMATNOREPLACE=YES.
Use this option only for the CDISCODM markup type with FORMATACTIVE=YES.
Use this option for the CDISCODM markup type only.
1.98
,
the generated output for ELEMENT is <PRICE> 1.98
</PRICE>
and for ATTRIBUTE is <COLUMN
name="PRICE"value="1.98" />
.
Use this option for the GENERIC markup type only.
rawvalue="value"
). SAS
uses the base64 encoding of a portable machine representation. (The
base64 encoding method converts binary data into ASCII text and vice
versa and is similar to the MIME format.)
rawvalue=
attribute
from the named element in the XML document. It converts that value
into numeric variable content. The PCDATA content of the element is
ignored. When importing, XMLDOUBLE=INTERNAL is not supported for the
XMLV2 engine nickname.
The combination of the character set and translation table (encoding method) results in the file's encoding.
filename cartoon 'C:\XMLdata\wilma.xml'; libname bedrock xml xmlfileref=cartoon; proc print data=bedrock.wilma; run;
.xml
instead
of .map
.
libname test xml 'C:\XMLdata\my.xml' xmlmap='C:\XMLdata\my.map'; proc print data=test.my; run;
The XML engine nickname supports XMLMap syntax versions 1.0, 1.1, and 1.2. The XML engine nickname does not support XMLMap syntax versions 1.9 or 2.1.
&
.
For example, to allow attribute values to contain both single and
double quotation marks, the apostrophe or single quotation mark character
(') can be represented as '
and
the double quotation mark character (") can be represented as "
.
Use XMLPROCESS=PERMIT cautiously. If an XML document consists of non-escaped characters, the content is not standard XML construction. The option is provided for convenience, not to encourage invalid XML markup.
Use this option only for the GENERIC and MSACCESS markup types with XMLMETA=SCHEMADATA.