---
schema_version: "1"
id: 9675f28a0c8a488974a64e12fed4bbf5ea7d74349cc8f51abd2ee18f85cb0b94
title: Tree Types (dw::util::Tree)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-tree-types.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-tree-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 707def205e2b83371a6809eebd63655f8059419a985da53d6e2118e3f6e2f586
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# Tree Types (dw::util::Tree)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>Path</p></td><td><div><div><p><code>type Path = Array&lt;PathElement&gt;</code></p></div></div></td><td><div><div><p>Type that consists of an array of <code>PathElement</code> values that identify the location of a node in a tree. An example is <code>[{kind: OBJECT_TYPE, selector: "user", namespace: null}, {kind: ATTRIBUTE_TYPE, selector: "name", namespace: null}] as Path</code>.</p></div><div><p><em>Introduced in DataWeave version 2.2.2.</em></p></div></div></td></tr><tr><td><p>PathElement</p></td><td><div><div><p><code>type PathElement = {| kind: "Object" | "Attribute" | "Array", selector: String | Number, namespace: Namespace | Null |}</code></p></div></div></td><td><div><div><p>Type that represents a selection of a node in a path. An example is <code>{kind: ARRAY_TYPE, selector: "name", namespace: null} as PathElement</code>.</p></div><div><p><em>Introduced in DataWeave version 2.2.2.</em></p></div></div></td></tr></tbody></table>
