TX Text Control .NET Server

GetXmlElements Method

Method|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Returns a collection of XML elements. It is an object of the type XmlElementCollection.

Syntax

public XmlElementCollection GetXmlElements(string elementName);

Parameters

ParameterDescription
elementName

Specifies the XML element's name.

Return Value

The return value is a collection containing all XML elements of the specified name.

Examples

The following example retrieves xml elements from the server text control.

var result = textControl.GetXmlElements("CustomerName");
Console.WriteLine($"Get Xml Elements result: {result}");