public MergeWorkerState(ILog logger, XpathNavigatorMerge xpathNavigatorMerge, Dictionary <string, string> xpathDictionary) : this(logger, xpathNavigatorMerge) { _xpathDictionary = xpathDictionary; }
public SelectState(ILog logger, XpathNavigatorMerge xpathNavigatorMerge, Dictionary <string, string> xpathDictionary, XmlDocument xmlCombineTargetDoc = null, XmlDocument xmlCombineSourceDoc = null) : this(logger, xpathNavigatorMerge, xpathDictionary) { }
public void InitializeTest() { var xmlDoc = new XmlDocument(); var testFileName = string.Format(EmbeddedSourceFileFormat, @"BookStore.xml"); testFileName.LoadEmbeddedXml(xmlDoc, Assembly.GetExecutingAssembly()); _xpathNavigatorMerge = new XpathNavigatorMerge(xmlDoc); _xpathDictionary = new Dictionary <string, string>(); _xpathDictionary.Add("bookstore", "http://www.contoso.com/books"); _xpathDictionary.Add("book", "http://www.contoso.com/books"); InitializeConfigXpathNavigatorMerge(); }
private void UpdateLogoutput() { if (null == _sourceXmlDoc || string.IsNullOrEmpty(_sourceXmlDoc.OuterXml)) { return; } var targetlogfile = txtLogfileName.Text.Trim(); if (string.IsNullOrWhiteSpace(targetlogfile)) { return; } var xpathNavigatorMerger = new XpathNavigatorMerge(_sourceXmlDoc); var navDictionary = new Dictionary <string, string>(); navDictionary.Add(LogoutputXpath, string.Empty); xpathNavigatorMerger.SelectUpdate(navDictionary, targetlogfile); _sourceXmlDoc.LoadXml(xpathNavigatorMerger.MergedXmlDoc.OuterXml); }
public SelectState(ILog logger, XpathNavigatorMerge xpathNavigatorMerge, Dictionary <string, string> xpathDictionary) : base(logger, xpathNavigatorMerge, xpathDictionary) { }
private void InitializeConfigXpathNavigatorMerge() { var configXmlDoc = LoadEmbeddedXmlResource(@"SandboxReplicationFeed.config"); _testConfigXpathNavigatorMerge = new XpathNavigatorMerge(configXmlDoc); }
public CreateAttributeState(ILog logger, XpathNavigatorMerge xpathNavigatorMerge, Dictionary <string, string> xpathDictionary) : base(logger, xpathNavigatorMerge, xpathDictionary) { }
public MergeWorkerState(ILog logger, XpathNavigatorMerge xpathNavigatorMerge) : this(logger) { _xpathNavigatorMerge = xpathNavigatorMerge; }