# Working With XML Files

> Open, validate, edit and program XML documents in TXTextControl with a CSS style sheet and a DTD: XML editor mode, XMLElements and the XML Basics sample.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > Document Editor > Working With XML Files
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/llms-full.txt

---

## On This Page

- [How XML Documents Work in TX Text Control](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/#how-xml-documents-work-in-tx-text-control)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/#where-to-start)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/#pages-in-this-section)

---

## In This Section

- [XML Basics](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/basics/llms.txt): Walk through the XML Basics sample for Visual Basic: load an XML file with Load format 10, format it with a CSS style sheet and validate it with a DTD.
- [Editing XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/editing/llms.txt): Edit XML documents in the XML editor mode of TXTextControl: element selections, the TAB key, style-based formatting and the button bar XML combo boxes.
- [Loading and Saving XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/load-save/llms.txt): Load and save XML with the Load and Save methods: DTD validation, XMLInvalid and XMLNotWellFormed events, CSS formatting styles and the XML editor mode.
- [Programming XML Documents](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/llms.txt): Get, set, iterate, insert and delete XML elements in Visual Basic with the XMLElements collection, XMLElement.Text, Add and Remove under the rules of a DTD.

---

## Nearby

- **Previous:** [Using Microsoft Word Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/microsoft-word/llms.txt)
- **Next:** [Loading and Saving XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/load-save/llms.txt)
