# XMLEditMode Property

> Returns or sets whether the TXTextControl validates every change of an XML document against the document's DTD (1) or edits without validation (2).

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > XMLEditMode Property
- **195 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/xmleditmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/xmleditmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/xmleditmode-property/llms-full.txt

---

Specifies whether Text Control operates in an edit mode that validates the XML document according to the document's DTD.

### Syntax

```vbscript
TXTextControl.XMLEditMode [= value]
```

| Setting | Description |
|---|---|
| 1 - Validation | Every operation that manipulates an XML document is validated according to the document's DTD. This mode is read only and is automatically switched on after loading a valid XML document. |
| 2 - No Validation | Text Control operates in its normal editor mode. No validation of an XML document occurs. Because the document can be invalid after every operation the document cannot be saved in XML format. |

### Data Types

Integer.

### Limitations

Run time only.

### See Also

- [Working with XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms-full.txt)
- [Programming Category: XML Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/xml/llms-full.txt)

---

## Nearby

- **Previous:** [WordWrapMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/wordwrapmode-property/llms-full.txt)
- **Next:** [XMLElements Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/xmlelements-property/llms-full.txt)
