Examples of Client Documents

ComplianceDoc.xml is included in the Client API package as an example of the kind of document you might create to specify compliance with a given policy. It is a plain text file containing XML that can be prepared with any text editor.

Sample Compliance Document

The following is a snippet from that file that tests for the existence on the client of the Windows operating system:

<?xml version="1.0"?>
<BESClientComplianceDocument Version="1.0">
	<Date>13 Jun 2004 13:41:57 -0700</Date>
	<ComplianceItem>
		<Designator>IsWindowsOS</Designator>
		<Expression>name of operating system starts with "Win"</Expression>
		<Description>Is a Windows computer</Description>
		<Comment>Compliant if True</Comment>
	</ComplianceItem>

</BESClientComplianceDocument>

The file is composed of one or more items each with multiple parts, including:

Designator: An identifier for the retrieved value.

Expression: The relevance expression that is evaluated by the API and returned to the specified designator.

Description: A brief description of the retrieved value.

Comment: A comment about this retrieved value.

All compliance documents follow this format, with as many compliance items as wanted. The following sections illustrate the concept with some more samples.