---
schema_version: "1"
id: 3d745b8b44ef86755f37c301b1989e1cd97d413c8855fa1bfd506502b317232c
title: Dtd Types (dw::xml::Dtd)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-dtd-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-dtd-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0c8fec29118cb475e6e3e3ac858be98874168b97106060898e89501428985743
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# Dtd Types (dw::xml::Dtd)

> 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>DocType</p></td><td><div><div><p><code>type DocType = { rootName: String, publicId?: String, systemId?: String, internalSubset?: String }</code></p></div></div></td><td><div><div><p>DataWeave type for representing a doctype declaration that is part of an XML file. Supports the following fields:</p></div><div><ul><li><p><code>rootName</code>: Root element of the declaration.</p></li><li><p><code>publicId</code>: Publicly available standard (optional).</p></li><li><p><code>systemId</code>: Local URL (optional).</p></li><li><p><code>internalSubset</code>: Internal DTD subset (optional).</p></li></ul></div><div><p><em>Introduced in DataWeave version 2.5.0.</em></p></div></div></td></tr></tbody></table>
