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

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