# match-path

Deprecated as of DirXML 2.0 - use DirXMLScript <if-src-dn> for object placement policy or <do-find-matching-object> and <arg-dn> for object matching policy..

<match-path> is used to specify:

- Rule selection criteria for the enclosing <placement-rule>. When used as such, the src-dn attribute of the source <add> event is compared with prefix and is considered a match if the src-dn is in the subtree whose root is prefix. The namespace of the path is that of event source.
- Object selection criteria for the enclosing <matching-rule>. When used as such, prefix is used as the dest-dn for the <query> generated by the enclosing rule. The namespace of the path is that of event destination.

When the namespace of the path is eDirectory, the format is slash format, eg. \treename\container\...\leaf. If the leading \ is omitted, the path is assumed to be relative to the tree root.

When the namespace of the path is the application namespace, the format of the path is application dependent and should be documented by the driver writer.

Example

See <matching-rules> and <placement-rules>

## 1. Allowed Content

> EMPTY

## 2. Attributes

> Attribute | Value(s) | Default Value
> --- | --- | ---
> prefix | CDATA The root-most portion of the path or distinguished name to match. | #REQUIRED

## 3. Content Declaration

> Empty

## 4. Parent Elements

> matching-rule
>   Object matching rule. Deprecated as of DirXML 2.0.
> placement-rule
>   Object placement rule. Deprecated as of DirXML 2.0.

Top Elements || All Elements || Tree