*/
public Document toDocument() {
// note that this method will not reconstruct a properties
// element - that element is only used in XML parsing
Document document = new Document(XmlConstants.MYBATIS_GENERATOR_CONFIG_PUBLIC_ID,
XmlConstants.MYBATIS_GENERATOR_CONFIG_SYSTEM_ID);
XmlElement rootElement = new XmlElement("generatorConfiguration"); //$NON-NLS-1$
document.setRootElement(rootElement);
for (String classPathEntry : classPathEntries) {
XmlElement cpeElement = new XmlElement("classPathEntry"); //$NON-NLS-1$
cpeElement.addAttribute(new Attribute("location", classPathEntry)); //$NON-NLS-1$
rootElement.addElement(cpeElement);