Definition Type: Element
Name: item
Namespace: http://oval.mitre.org/XMLSchema/oval_results
Type: anyType:http://www.w3.org/2001/XMLSchema
Containing Schema: oval-results-schema.xsd
MinOccurs 1
MaxOccurs unbounded
Abstract
Documentation:
An 'item' element defines a specific comparison to perform on a variable. The required 'variable' attribute provides a link to a variable to use. The optional datatype determines the type of data expected as the value of the 'item' element. (the default datatype is 'string') The required 'operator' attribute defines the operator to use for the comparision. The optional var_ref attribute refers the value of the item to a variable element. Note that the comparision should read: '*variable* is *operator* the value of the item'. Also note that it is implied that the datatypes of the two value being compared are the same.
Collapse XSD Schema Diagram:
Drilldown into result in schema oval-results-schema_xsd Drilldown into version in schema oval-results-schema_xsd Drilldown into var_ref in schema oval-results-schema_xsd Drilldown into operator in schema oval-results-schema_xsd Drilldown into datatype in schema oval-results-schema_xsd Drilldown into variable_version in schema oval-results-schema_xsd Drilldown into variable in schema oval-results-schema_xsdXSD Diagram of item in schema oval-results-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="item" minOccurs="1" maxOccurs="unbounded">
    <xsd:annotation>
        <xsd:documentation>An 'item' element defines a specific comparison to perform on a variable.  The required 'variable' attribute provides a link to a variable to use.  The optional datatype determines the type of data expected as the value of the 'item' element.  (the default datatype is 'string')  The required 'operator' attribute defines the operator to use for the comparision.  The optional var_ref attribute refers the value of the item to a variable element.  Note that the comparision should read: '*variable* is *operator* the value of the item'.  Also note that it is implied that the datatypes of the two value being compared are the same.</xsd:documentation>
        <xsd:appinfo>
            <parent_test>Variable Test</parent_test>
            <cardinality>1</cardinality>
            <content>none</content>
            <valid_datatypes>binary, boolean, component, float, int, string, version</valid_datatypes>
            <valid_operators>equals, not equal, greater than, less than, greater than or equal, less than or equal, bitwise and, bitwise or, pattern match</valid_operators>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="xsd:anyType">
                <xsd:attribute name="variable" type="oval_results:varid" use="required" />
                <xsd:attribute name="variable_version" type="oval_results:versionType" use="optional" default="1" />
                <xsd:attribute name="datatype" type="oval_results:datatypes" use="optional" default="string" />
                <xsd:attribute name="operator" type="oval_results:operators" use="optional" default="equals" />
                <xsd:attribute name="var_ref" type="oval_results:varid" use="optional" />
                <xsd:attribute name="version" type="oval_results:versionType" use="optional" default="1" />
                <xsd:attribute name="result" type="oval_results:resultType" use="required" />
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Attributes:
Name Type Default Value Use
variable oval_results:variable Required
variable_version oval_results:variable_version 1 Optional
datatype oval_results:datatype string Optional
operator oval_results:operator equals Optional
var_ref oval_results:var_ref Optional
version oval_results:version 1 Optional
result oval_results:result Required
<anyAttribute>