# XmlErrorEventArgs.URL Property

> Gets the URL of the XML document containing the error. If the property value is an empty string there is no information about the URL.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl > XmlErrorEventArgs.URL Property
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/xmlerroreventargs/url-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/xmlerroreventargs/url-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/xmlerroreventargs/url-property/llms-full.txt

---

### Description

Gets the URL of the XML document containing the error. If the property value is an empty string there is no information about the URL.

### Syntax

```csharp
public string URL { get; }
```

```vbnet
Public ReadOnly Property URL As String
```

### Examples

The following example uses `XmlErrorEventArgs.URL` while handling `XmlNotWellFormed`.

```csharp
textControl.XmlNotWellFormed += (_, e) =>
{
    Console.WriteLine($"URL: {e.URL}");
};
```

```vbnet
AddHandler textControl.XmlNotWellFormed,
    Sub(sender, e)
        Console.WriteLine($"URL: {e.URL}")
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [XmlErrorEventArgs.Reason Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/xmlerroreventargs/reason-property/llms-full.txt)
- **Next:** [ZoomOption Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/zoomoption/enumeration/llms-full.txt)
