Class XmlMerge
The XmlMerge class is a utility class for XmlSplicing config files.
Inheritance
Namespace: DotNetNuke.Services.Installer
Assembly: DotNetNuke.dll
Syntax
public class XmlMerge : object
Constructors
| Improve this Doc View SourceXmlMerge(Stream, String, String)
Initializes a new instance of the XmlMerge class.
Declaration
public XmlMerge(Stream sourceStream, string version, string sender)
Parameters
Type | Name | Description |
---|---|---|
Stream | sourceStream | |
System.String | version | |
System.String | sender |
XmlMerge(String, String, String)
Initializes a new instance of the XmlMerge class.
Declaration
public XmlMerge(string sourceFileName, string version, string sender)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceFileName | |
System.String | version | |
System.String | sender |
XmlMerge(TextReader, String, String)
Initializes a new instance of the XmlMerge class.
Declaration
public XmlMerge(TextReader sourceReader, string version, string sender)
Parameters
Type | Name | Description |
---|---|---|
TextReader | sourceReader | |
System.String | version | |
System.String | sender |
XmlMerge(XmlDocument, String, String)
Initializes a new instance of the XmlMerge class.
Declaration
public XmlMerge(XmlDocument sourceDoc, string version, string sender)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | sourceDoc | |
System.String | version | |
System.String | sender |
Properties
| Improve this Doc View SourceConfigUpdateChangedNodes
Gets a value indicating whether the last update performed by this instance resulted in any changes.
Declaration
public bool ConfigUpdateChangedNodes { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PendingDocuments
The XmlMerge class is a utility class for XmlSplicing config files.
Declaration
public IDictionary<string, XmlDocument> PendingDocuments { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, XmlDocument> |
Sender
Gets the Sender (source) of the changes to be merged.
Declaration
public string Sender { get; }
Property Value
Type | Description |
---|---|
System.String | A String. |
SourceConfig
Gets the Source for the Config file.
Declaration
public XmlDocument SourceConfig { get; }
Property Value
Type | Description |
---|---|
XmlDocument | An XmlDocument. |
TargetConfig
Gets or sets the Target Config file.
Declaration
public XmlDocument TargetConfig { get; set; }
Property Value
Type | Description |
---|---|
XmlDocument | An XmlDocument. |
TargetFileName
Gets the File Name of the Target Config file.
Declaration
public string TargetFileName { get; }
Property Value
Type | Description |
---|---|
System.String | A String. |
Version
Gets the Version of the changes to be merged.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
System.String | A String. |
Methods
| Improve this Doc View SourceSavePendingConfigs()
The XmlMerge class is a utility class for XmlSplicing config files.
Declaration
public void SavePendingConfigs()
UpdateConfig(XmlDocument, String)
The UpdateConfig method processes the source file and updates the Target Config file.
Declaration
public void UpdateConfig(XmlDocument target, string fileName)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | target | An Xml Document represent the Target Xml File. |
System.String | fileName | The fileName for the Target Xml File - relative to the webroot. |
UpdateConfig(XmlDocument)
The UpdateConfig method processes the source file and updates the Target Config Xml Document.
Declaration
public void UpdateConfig(XmlDocument target)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | target | An Xml Document represent the Target Xml File. |
UpdateConfigs()
The UpdateConfigs method processes the source file and updates the various config files.
Declaration
public void UpdateConfigs()
UpdateConfigs(Boolean)
The XmlMerge class is a utility class for XmlSplicing config files.
Declaration
public void UpdateConfigs(bool autoSave)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | autoSave |