--- xmlTools/trunk/posUpdate/Program.cs 2013/05/10 14:42:11 868 +++ xmlTools/trunk/posUpdate/Program.cs 2013/05/25 21:53:39 874 @@ -1,16 +1,13 @@ using System; using System.Collections.Generic; -using System.Text; -using System.Xml; using System.IO; -using System.Globalization; -using System.Text.RegularExpressions; +using System.Text; namespace xmlTools { class Program { - public static readonly string toolsVersion = "0.8g"; + public const string XmlToolsVersion = "0.9"; // const variable are by default static private static appErrors lastError = appErrors.NO_ERROR; public enum appErrors @@ -31,7 +28,10 @@ namespace xmlTools PATCH_COMMAND_PROCESS_ERROR = 202, PATCH_ELEMENT_NOT_FOUND = 203, PATCH_ADDTO_ERROR_PARSING_XML = 204, - PATCH_COMMAND_NOT_FOUND = 205 + PATCH_COMMAND_NOT_FOUND = 205, + PATCH_CODE_PROCESS_ERROR=206, + PATCH_CODE_NOT_FOUND=207, + PATCH_CODE_PARSE_XML_OUTPUT_ERROR=208, } public static void printAppError(appErrors error, string description, bool exitApp = false) @@ -48,6 +48,7 @@ namespace xmlTools public static int Main(string[] args) { + try { //We use a command parse library due to its advantages