GetXmlElements Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. 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 server 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}")