GetXmlElements Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Returns a collection of XML elements. It is an object of the type XmlElementCollection.
Syntax
public XmlElementCollection GetXmlElements(string elementName);Public Function GetXmlElements(elementName As String) As XmlElementCollectionParameters
| Parameter | Description |
|---|---|
| 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 text control.
var result = textControl.GetXmlElements("CustomerName");
Console.WriteLine($"Get Xml Elements result: {result}");Dim result = textControl.GetXmlElements("CustomerName")
Console.WriteLine($"Get Xml Elements result: {result}")