The program here generates a random instance of a DocBook document. You can start it at any element, e.g. ./mkmodels try.xml para You need an XML instance just to locate the DTD -- there is an exmaple in the source, or use try.xml