---
schema_version: "1"
id: 3876ed0c5e15157a40ab2cf3e3b087a418b300e4eb34a9bb5dfb514ad533f93d
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.6/dw-dtd-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-dtd-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7f9a4c4bbcd7d4040bf8404256fc0050f56a952004347601efbb4f9bcaac453c
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

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