protected BaseConverter(string configFileName, string inputDirectory, string moveDirectory, string schemaPath, string schematronPath) { config = MappingConfig.LoadFromFileWithParents(configFileName); this.inputDirectory = inputDirectory; this.moveDirectory = moveDirectory; processor = new Processor(); builder = processor.NewDocumentBuilder(); compiler = processor.NewXPathCompiler(); foreach (var theNs in config.Namespace) { compiler.DeclareNamespace(theNs.Prefix, theNs.Uri); } validator = new Validator(schemaPath, schematronPath); }
public EditConfigWindow(string configFileName) { InitializeComponent(); config = MappingConfig.LoadFromFileWithParents(configFileName); foreach (var column in config.Column) { LoadColumn(column); } foreach (var group in config.Group) { LoadGroup(group); } xmlDoc = new XmlDocument(); xmlDoc.Load(TestFileName); nsManager = new XmlNamespaceManager(xmlDoc.NameTable); nsManager.AddNamespace("cda", "urn:hl7-org:v3"); }