XPathDiscoveryType Complex Type

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The XPathDiscoveryType complex type, in Configuration Manager 2007, describes discovery information for settings discovered from an XML configuration file. The XML configuration file is located by the FilePath child element. The XPath expression in the XPathExpression element is used to query this XML configuration file. The text that is associated with each of the nodes returned from the XPath query is used to create an instance of the parent setting – if the query returns multiple nodes, multiple instances are created. The (prefix, namespace) pairs in the Declarations element indicate the prefixes and their associated namespaces as used in the XPathExpression.

<xs:complexType name="XPathDiscoveryType">
    <xs:complexContent>
        <xs:extension
            base=="DiscoverySourceType"
        >
            <xs:sequence>
                <xs:element name="FilePath"
                    type="FilePathType"
                 />
                <xs:element name="Filter"
                    type="FileFilterType"
                 />
                <xs:element
                    ref="XPathExpressionType"
                 />
                <xs:element
                    minOccurs="0"
                    maxOccurs="1"
                    ref="NamespaceDeclarations"
                 />
            </xs:sequence>
            <xs:attribute name="Depth"
                type="SearchDepthType"
                use="optional"
             />
            <xs:attribute name="Is64Bit"
                type="boolean"
                use="required"
             />
            <xs:attribute name="IsPerUser"
                type="boolean"
                use="optional"
             />
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Child Elements

Element Type Description

FilePath

FilePathType

The (local) path to the XML configuration file that is to be queried.

This path can contain environment variables.

Namespace (WqlQueryDiscoveryType) Element

XPathNamespaceDeclarationType

Declaration of a single XML namespace and prefix used in the XPath expression that discovers a setting.

NamespaceDeclarations Element

XPathNamespaceDeclarationType

The list of (prefix, namespace) declarations.

XPathExpression

XPathExpressionType

A syntactically valid XPath expression into the XML configuration file specified in the FilePath.

The initial context of the query is the document node of the XML document in the configuration file.

See Also

Concepts

Authoring Desired Configuration Management Configuration Baselines and Configuration Items