# DTD for TDM file

**URL:** <https://forums.toadworld.com/t/dtd-for-tdm-file/2663>\
**Category:** Toad Data Modeler\
**Created:** [March 21, 2012, 1:52pm UTC](https://forums.toadworld.com/t/dtd-for-tdm-file/2663 "2012-03-21T13:52:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin.yao\_171](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@benjamin.yao\_171](https://forums.toadworld.com/u/benjamin.yao_171)\
**Post date:** [March 21, 2012, 1:52pm UTC](https://forums.toadworld.com/t/dtd-for-tdm-file/2663/1 "2012-03-21T13:52:35Z")

</div>

Hello everyone,

Just wondering whether there is a DTD for the TXP model file?

Ben

---

<div class="post-metadata">

**Author:** ![Vaclav\_Frolik](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/vaclav_frolik/32/12_2.png) [@Vaclav\_Frolik](https://forums.toadworld.com/u/Vaclav_Frolik)\
**Post date:** [March 22, 2012, 4:40am UTC](https://forums.toadworld.com/t/dtd-for-tdm-file/2663/2 "2012-03-22T04:40:10Z")

</div>

Hi,

run TDM and open your model. In **Settings | Options** in section **General** enable checkbox **Expert Mode**. Then click **Tools | Generate XSD**. Toad Data Modeler will generate XSD file for \*.txp file. Please note that \*.txp as well as \*.xsd structure depends on selected database platform (Oracle contains different objects than SQL Server etc.).

In general, \*.txp files contains all necessary information that TDM requires. It contains various XML data that is used internally and some items, like data types are stored as GUIDs.

If you wish to work with metadata, I recommend the following:  
Click **Model | Reports / XSL Tranformation…** and choose **Complete XML (XML)** item from the first combo box. Click **Transform** to generate simplified XML file that contains human-readable XML structure. And if you wish to get XSD for the simplified format, click **Model | Reports / XSL Tranformation…** and then click button **More**. Two buttons will appear at bottom of the form: **Save XSD File As…** and **Show XSD file**.

Good luck,

Vaclav
