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

# Dtd (dw::xml::Dtd)

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

This module contains helper functions for working with XML doctype declarations.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::xml::Dtd` to the header of your DataWeave script.

_Introduced in DataWeave version 2.5.0._

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-dtd-functions-doctypeasstring">docTypeAsString</a></p></td><td><p>Transforms a <code>DocType</code> value to a string representation.</p></td></tr></tbody></table>

## Types

- [Dtd Types](https://docs.mulesoft.com/dataweave/2.11/dw-dtd-types)
