LoadXMLDatabase Method
- 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);Public Sub LoadXMLDatabase(ByVal fileName as String)| Parameter | Description |
|---|---|
| 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);Public Sub LoadXMLDatabase(ByVal xmlDocument as System.Xml.XmlDocument)| Parameter | Description |
|---|---|
| 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);Public Sub LoadXMLDatabase(ByVal fileStream as System.IO.FileStream)| Parameter | Description |
|---|---|
| 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);Dim result = textControl.LoadXMLDatabase("App_Data\document.docx")
Console.WriteLine(result)