VALIDATE and FIX XML Project Tips

1.       Make the entire project config driven so that it can be used to validate and fix any XML.

2.       It would have config files like:

a.       CheckTheseWantedTags.config

b.      CheckTheseUnWantedTags.config

c.       FixTheseTags.config

3.       Also make all these names loadable from the app.config using the ConfigReader:

public class MyConfigReader


{


public MyConfigReader()


{        


}

 

public string
GetConfigValue(string key)


{


string data = System.Configuration.ConfigurationManager.AppSettings[key];


if (data == null
|| data == string.Empty)


{


Exception ex = new
Exception(“data
not found”
);


MyLogger.Log(ex.ToString());


throw ex;


}


return data;


}


}

 

 

–>