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

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