Figure 2. Create a DTD and an XML Document. Straight VB doesn't give you a way to generate and use XML. However, you can use the XML generator and the pair of viewers to take advantage of XML's benefits right now-without having to learn XML at the syntax level. This flowchart walks you, step by step, through the process of creating a DTD and an XML document. Start by connecting to the desired database and end by creating the XML document itself.