Hi, I wish to write a java code which can generate an xml document based on a given dtd. Walk through the dtd, know which tags (name) to include in the xml document, grab the value froma string and generate the document. Is it possible? Any example will be greatly appreciated. Thanks, s