---
schema_version: "1"
id: bb377b3dcd3df9325fb50a72a525e208f3de6005975018b4b958372298bba96d
title: Dtd (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.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-dtd
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2a04a260938c2941dc385e8e3fa6f1493b5e697b067810d7bd5bd0b77a3f2774
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# 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.6/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.6/dw-dtd-types)
