LoadXMLDatabase Method
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. 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 TextControl LoadXMLDatabase(string fileName);Public Function LoadXMLDatabase(fileName As String) As TextControl| Parameter | Description |
|---|---|
| fileName | Specifies an xml file from which the database is loaded. |
LoadXMLDatabase(XmlDocument)
Loads an XML database from an XmlDocument object.
public TextControl LoadXMLDatabase(XmlDocument xmlDocument);Public Function LoadXMLDatabase(xmlDocument As XmlDocument) As TextControl| Parameter | Description |
|---|---|
| xmlDocument | Specifies an XmlDocument object from which the database is loaded. |
LoadXMLDatabase(FileStream)
Loads an XML database from a file stream.
public TextControl LoadXMLDatabase(FileStream fileStream);Public Function LoadXMLDatabase(fileStream As FileStream) As TextControl| Parameter | Description |
|---|---|
| fileStream | Specifies an xml file from which the database is loaded. The data is loaded from the stream's current position. |
Return Value
A reference to the Web.MVC.TextControl instance to allow method chaining.
Examples
The following example uses TextControl.LoadXMLDatabase in a document-processing workflow.
var result = textControl.LoadXMLDatabase(@"App_Data\document.docx");
Console.WriteLine(result);Dim result = textControl.LoadXMLDatabase("App_Data\document.docx")
Console.WriteLine(result)