Convert DTD to XML

Often, and especially when building a complex document, it is useful to have a starting point. The "Convert DTD to XML" wizard can help by taking a source DTD and producing a sample XML file that matches.

To use the DTD to XML tool, click File > Document Wizards. From there, choose the DTD to XML icon:

Convert DTD to XML

After selecting the wizard, a small dialog box comes up prompting you for the source DTD and the root element. Since DTD documents don't have an explicit way of stating which element in them is the root, you must choose one. For our sample VoiceXML file, it seems pretty obvious that <vxml> would be the root element.

DTD to XML

And finally, Stylus Studio® produces the results for you. A portion of the generated XML for the VoiceXML file is shown here:

<?xml version='1.0' ?>
<!DOCTYPE vxml SYSTEM "file:///c:/Program Files/Stylus Studio 2006 Release 3 XML Enterprise Edition/bin/Catalogs/www.voicexml.org/voicexml1-0.dtd">
<vxml application="" base="" lang="" version="">
    <catch event="" count="" cond="">
        <audio src="" caching="safe" fetchhint="prefetch" fetchtimeout="">
            <audio src="" caching="safe" fetchhint="prefetch" fetchtimeout=""/>
            <enumerate>
                <audio src="" caching="safe" fetchhint="prefetch" fetchtimeout=""/>
                <enumerate/>
                <value class="" expr="" mode="tts" recsrc=""/>
                <break msecs="" size="none"/>
                <div type="">
                    <audio src="" caching="safe" fetchhint="prefetch" fetchtimeout=""/>
                    <enumerate/>
                    <value class="" expr="" mode="tts" recsrc=""/>
                    <break msecs="" size="none"/>
                    <div type=""/>
                    <emp level="strong">
...and so on

After build the initial XML file, the Sense:X intelligent help and completion facility will enable you to continue generating valid XML.

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus DTD Generator

Generate DTDs with our award-winning DTD conversion and DTD generation utilities - Download a free trial!

Attend a Live Webinar This Week!

Learn about Stylus Studio's unique features and benefits in just under an hour. Register for the Stylus Studio QuickStart Training WebCast!

Why Pay More for XML Tools?

With Stylus Studio® X16 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio!

 
Free Stylus Studio XML Training: