Definition Type: Element
Name: xmlfilecontent_state
Namespace: http://oval.mitre.org/XMLSchema/oval-definitions-5#independent
Type: oval-def:StateType
Containing Schema: independent-definitions-schema.xsd
Abstract
Documentation:
The xmlfilecontent_state element contains entities that are used to check the file path and name, as well as the xpath used and the value of the this xpath.
Collapse XSD Schema Diagram:
Drilldown into value_of in schema independent-definitions-schema_xsd Drilldown into xpath in schema independent-definitions-schema_xsd Drilldown into filename in schema independent-definitions-schema_xsd Drilldown into path in schema independent-definitions-schema_xsd Drilldown into notes in schema oval-definitions-schema_xsd Drilldown into Signature in schema xmldsig-core-schema_xsd Drilldown into deprecated in schema oval-definitions-schema_xsd Drilldown into comment in schema oval-definitions-schema_xsd Drilldown into operator in schema oval-definitions-schema_xsd Drilldown into version in schema oval-definitions-schema_xsd Drilldown into id in schema oval-definitions-schema_xsd Drilldown into StateType in schema oval-definitions-schema_xsdXSD Diagram of xmlfilecontent_state in schema independent-definitions-schema_xsd (Open Vulnerability and Assessment Language (OVAL®))
Collapse XSD Schema Code:
<xsd:element name="xmlfilecontent_state" substitutionGroup="oval-def:state">
    <xsd:annotation>
        <xsd:documentation>The xmlfilecontent_state element contains entities that are used to check the file path and name, as well as the xpath used and the value of the this xpath.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="oval-def:StateType">
                <xsd:sequence>
                    <xsd:element name="path" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Specifies the absolute path to a file on the machine.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="xmlstepath" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="ind-def:xmlfilecontent_state/ind-def:path">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the path entity of a xmlfilecontent_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="filename" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>The filename element specifies the name of the file.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="xmlstefilename" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="ind-def:xmlfilecontent_state/ind-def:filename">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the filename entity of a xmlfilecontent_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="xpath" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>Specifies an Xpath expression describing the nodes to look at.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="xmlstexpath" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="ind-def:xmlfilecontent_state/ind-def:xpath">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the xpath entity of a xmlfilecontent_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="value_of" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
                        <xsd:annotation>
                            <xsd:documentation>The value element checks the value of the nodes found.</xsd:documentation>
                            <xsd:appinfo>
                                <sch:pattern id="xmlstevalue_of" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                                    <sch:rule context="ind-def:xmlfilecontent_state/ind-def:value_of">
                                        <sch:assert test="not(@datatype) or @datatype='string'">
                                            <sch:value-of select="../@id" /> - datatype attribute for the value_of entity of a xmlfilecontent_state should be 'string'</sch:assert>
                                    </sch:rule>
                                </sch:pattern>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
Signature ds:Signature 0 1
notes oval-def:notes 0 1
path ind-def:path 0 1
filename ind-def:filename 0 1
xpath ind-def:xpath 0 1
value_of ind-def:value_of 0 1
Collapse Child Attributes:
Name Type Default Value Use
id oval-def:id Required
version oval-def:version Required
operator oval-def:operator AND Optional
comment oval-def:comment Optional
deprecated oval-def:deprecated false Optional
Collapse Derivation Tree:
Collapse References:
oval-def:state