public void WriteConfig(XmlDocument doc, XmlElement parenteElement) { XmlElement captionElement = ConfigControl.CreateNewElement(doc, "caption", caption); parenteElement.AppendChild(captionElement); XmlElement folderElement = ConfigControl.CreateNewElement(doc, "folder", folder); parenteElement.AppendChild(folderElement); XmlElement dbConfigFileElement = ConfigControl.CreateNewElement(doc, "db_configFile", dbConfigFile); parenteElement.AppendChild(dbConfigFileElement); XmlElement baseDaoElement = ConfigControl.CreateNewElement(doc, "baseDao", baseDao); parenteElement.AppendChild(baseDaoElement); XmlElement packageElement = ConfigControl.CreateNewElement(doc, "package_basic", package); parenteElement.AppendChild(packageElement); XmlElement managerElement = ConfigControl.CreateNewElement(doc, "manager", manager); parenteElement.AppendChild(managerElement); XmlElement dbConfigElement = ConfigControl.CreateNewElement(doc, "db_config"); XmlElement dbTypeElement = ConfigControl.CreateNewElement(doc, "DbType", dbType); dbConfigElement.AppendChild(dbTypeElement); XmlElement userNameElement = ConfigControl.CreateNewElement(doc, "Username", dbUser); dbConfigElement.AppendChild(userNameElement); XmlElement pswElement = ConfigControl.CreateNewElement(doc, "Password", dbPsw); dbConfigElement.AppendChild(pswElement); XmlElement ipElement = ConfigControl.CreateNewElement(doc, "IPAddress", dbIp); dbConfigElement.AppendChild(ipElement); XmlElement portElement = ConfigControl.CreateNewElement(doc, "Port", dbport); dbConfigElement.AppendChild(portElement); XmlElement dbNameElement = ConfigControl.CreateNewElement(doc, "Database", dbName); dbConfigElement.AppendChild(dbNameElement); XmlElement verInfoElement = ConfigControl.CreateNewElement(doc, "VersionInfo"); XmlElement tableNameElement = ConfigControl.CreateNewElement(doc, "TableName", verInfoTableName); verInfoElement.AppendChild(tableNameElement); XmlElement tableFieldElement = ConfigControl.CreateNewElement(doc, "TableField", verInfoTablefield); verInfoElement.AppendChild(tableFieldElement); XmlElement intValfieldElement = ConfigControl.CreateNewElement(doc, "IntValueField", verInfoIntValueField); verInfoElement.AppendChild(intValfieldElement); XmlElement descFieldElement = ConfigControl.CreateNewElement(doc, "DescField", verDescField); verInfoElement.AppendChild(descFieldElement); dbConfigElement.AppendChild(verInfoElement); parenteElement.AppendChild(dbConfigElement); XmlElement overLapElement = ConfigControl.CreateNewElement(doc, "overlap", overLap); parenteElement.AppendChild(overLapElement); }