• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class XmlMerge

The XmlMerge class is a utility class for XmlSplicing config files.

Inheritance
System.Object
XmlMerge
Namespace: DotNetNuke.Services.Installer
Assembly: DotNetNuke.dll
Syntax
public class XmlMerge : object

Constructors

| Improve this Doc View Source

XmlMerge(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

ConfigUpdateChangedNodes

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

true if there were changes, false if no changes were made to the target document.

| Improve this Doc View Source

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>
| Improve this Doc View Source

Sender

Gets the Sender (source) of the changes to be merged.

Declaration
public string Sender { get; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

SourceConfig

Gets the Source for the Config file.

Declaration
public XmlDocument SourceConfig { get; }
Property Value
Type Description
XmlDocument

An XmlDocument.

| Improve this Doc View Source

TargetConfig

Gets or sets the Target Config file.

Declaration
public XmlDocument TargetConfig { get; set; }
Property Value
Type Description
XmlDocument

An XmlDocument.

| Improve this Doc View Source

TargetFileName

Gets the File Name of the Target Config file.

Declaration
public string TargetFileName { get; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

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 Source

SavePendingConfigs()

The XmlMerge class is a utility class for XmlSplicing config files.

Declaration
public void SavePendingConfigs()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

UpdateConfigs()

The UpdateConfigs method processes the source file and updates the various config files.

Declaration
public void UpdateConfigs()
| Improve this Doc View Source

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

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS