xml-pbuilder is a tool which builds a complete XML parser (using Flex/Bison) using a DTD. A DTD parsing library is also available within this project.