The crtdds_xmlvalidate.sas
macro validates the structure and syntax of the define.xml file against
the XML schema for the ODM standard. It can be run at any time. The
SAS Clinical Standards Toolkit includes a call to the crtdds_xmlvalidate.sas
macro immediately following the call to the crtdds_write.sas macro
as the last step of the create_crtdds_define.sas sample driver program.
If you customize the define.xml file after it is generated, then this
macro can be used to validate the changes.
The following
is an example of a call to the crtdds_xmlvalidate.sas macro:
%crtdds_xmlvalidate(_cstLogLevel=info,_cstResultsOverrideDS=work.xmlvalidate);
In this
example, the %crtdds_xmlvalidate macro is being submitted with a log
level of Info. The Results data set is named XMLVALIDATE and resides
in the Work library.
Parameters for the crtdds_xmlvalidate.sas Macro
|
|
|
|
|
Identifies the log level.
Valid values are Info, Warning, Error, and Fatal Error. The default
value is Info.
|
|
|
Provides the opportunity
to designate [LIBNAME.]member as the name of the Results data set.
If this parameter is omitted (default setting), then the Results data
set specified by the &_cstResultsDS global macro variable is used.
|
XML schema
validation results are logged using four log level settings. These
log levels refer to the XML-generated log, not the log that is generated
by SAS.
Log Levels for the crtdds_xmlvalidate.sas Macro
|
|
|
Informational messages
such as the system properties of the current Java environment, and
progress messages. This is the default value.
|
|
Messages that indicate
that there might be an issue with the CRT-DDS document or with the
execution of the validation process.
|
|
Messages that indicate
that something in the define.xml document is invalid with respect
to the normal XML schema for CRT-DDS. Or, a non-fatal error has occurred
during processing.
|
|
Messages that indicate
that the XML document could not be processed at all. There are many
causes, including, file system access errors, incorrect file paths,
and malformed XML.
|
Each message
that is generated during XML validation is associated with one of
these levels. The level that you choose determines what other messages
are generated. For example, if you choose
warning
, then all Warning messages and anything more severe, such as Error
and Fatal Error messages, are generated. If you choose
error
, then only Error and Fatal Error messages are
generated.
The following
is an example of a call to the crtdds_xmlvalidate.sas macro:
%crtdds_xmlvalidate(_cstLogLevel=info,
_cstResultsOverrideDS=work.xmlvalidate);