---
title: "Type QName"
description: "Optimize policy statements with type-qname conditions using regular expressions for precise content node targeting. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/access-policies/conditions/type-qname"
---

# Type QName

The `type-qname` condition allows you to constrain a policy statement so that it applies to content nodes that have a matching QName. This condition supports regular expressions, allowing you to focus in on a single path, sub paths or arbitrary matching path structures.

## Configuration

```
{
    "type": "type-qname",
    "config": {
        "qname": "{value regex}"
    }
}
```

## Sample #1

This policy document allows a principal to read content of type `store:book`.

```
{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "type-qname",
            "config": {
                "qname": "store:book"
            }
        }]
    }]
}
```
