TX Text Control .NET for Windows Forms

GetXmlElements Method

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

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}");