For xmlattr commands only.
<attribvalue> is the value of the XML metadata attribute you are testing. It can be a text value, a number, or a date.
For example, if <xpath> specifies the title attribute, then set <attribvalue> to 'Sales Q1 2007' to detect documents whose Title property includes that term:
WHERE apm/event/file/title CONTAINS "Sales Q1 2007"
If <xpath> specifies an x-header in an email, you can set <attribvalue> to the value of the x-header. For example, this lookup tests whether the 'x-vpm-state' x-header is set to 'sensitive':
xmlattr WHERE apm/event/email/header/item[@name='x-vpm-state'] IS "sensitive"
For example, if <xpath> specifies the file size attribute, then set <attribvalue> to 1,048,576 to detect files with a minimum size of 1 MB. Note that the file size attribute is measured in bytes, not KB or MB:
WHERE apm/event/file/size >= 1048576
Note: You do not need to enclose numeric values in double quotes.
For example, if <xpath> specifies the ‘date modified’ attribute, then to detect all imported files that have been modified since 21 May 2007, set <attribvalue> to the following.
WHERE apm/event/file/modified >= "2007-05-21"
Note that dates must take the following format:
2007-05-21T18:00:00
If the time element (T18:00:00 in the example above) is omitted, the time defaults to midnight. For example:
2007-05-21 is equivalent to:
2007-05-21T00:00:00
<attribvalue> can also test the value of properties in a file’s ‘property set’ (if included in the file’s XML metadata). In effect, property sets are collections of related file attributes.
For example, the ‘Version’ property set for an executable file typically contains properties such as Company, File Version and Language. A lookup command to test the value of a property takes the following format:
WHERE apm/event/file/property_set[@name="Version"] /property[@name="Language"] IS "English"
Similarly, a Microsoft Word document can include a ‘Custom’ property set, which can include any custom properties defined for that document. For example, an organization may use ‘Security’ and ‘Status’ custom properties to define a document’s audience and to indicate whether the document has been approved. A lookup command to test these custom properties takes the following format:
WITH apm/event/file/property_set[@name="Custom"] WHERE (property[@name="Security"] IS "Public") AND (property[@name="Status"] IS "Approved")
In all cases, the @name property identifier must be enclosed in square brackets.
Copyright © 2014 CA.
All rights reserved.
|
|