# XmlElement.Text Property

> Specifies the text of the XML element. If the element consists of several sub-elements, the text parts are separated through paragraph end characters (0x0A).

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > XmlElement.Text Property
- **429 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/xmlelement/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/xmlelement/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/xmlelement/text-property/llms-full.txt

---

### Description

Specifies the text of the XML element. If the element consists of several sub-elements, the text parts are separated through paragraph end characters (0x0A).

### Syntax

```csharp
public string Text { get; set; }
```

```vbnet
Public Property Text As String
```

### Examples

The following example uses `XmlElement.Text` to replace the xml element's displayed content. The configured value is checked before the workflow continues.

```csharp
xmlElement.Text = "Quarterly results";
if (!string.IsNullOrWhiteSpace(xmlElement.Text))
{
    Console.WriteLine($"Text: {xmlElement.Text}");
}
```

```vbnet
xmlElement.Text = "Quarterly results"
If Not String.IsNullOrWhiteSpace(xmlElement.Text) Then
    Console.WriteLine($"Text: {xmlElement.Text}")
End If
```

---

## Nearby

- **Previous:** [XmlElement.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/xmlelement/select-method/llms-full.txt)
- **Next:** [XmlElementCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/xmlelementcollection/llms-full.txt)
