---
schema_version: "1"
id: 1d0966bbdd3bc9243d88dcd7a8e9cf2b59432eda88fdbca24f0da0a531db939e
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.12/dw-dtd-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-dtd-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2e4b5ab14f638d79f350ac775c410dfa9a7bc16caf822059bfc1af1e73a04aa0
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# 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>
