TX Text Control .NET Server

LoadXMLDatabase Method

Method|Introduced in 21.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Loads an XML database which is used to create table and field name menu items in the mailings ribbon tab.

Syntax

LoadXMLDatabase(String)

Loads an XML database from a file.

public void LoadXMLDatabase(string fileName);
ParameterDescription
fileName

Specifies an xml file from which the database is loaded.

LoadXMLDatabase(System.Xml.XmlDocument)

Loads an XML database from an XmlDocument object.

public void LoadXMLDatabase(System.Xml.XmlDocument xmlDocument);
ParameterDescription
xmlDocument

Specifies an XmlDocument object from which the database is loaded.

LoadXMLDatabase(System.IO.FileStream)

Loads an XML database from a file stream.

public void LoadXMLDatabase(System.IO.FileStream fileStream);
ParameterDescription
fileStream

Specifies an xml file from which the database is loaded. The data is loaded from the stream's current position.

Examples

LoadXMLDatabase is not exposed by the current ASP.NET Core editor helper. The following example uses LoadXMLDatabase in the current server-side setup instead.

var result = textControl.LoadXMLDatabase(@"App_Data\document.docx");
Console.WriteLine(result);