# Programming XML Documents

> 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.

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

---

## On This Page

- [Get the Elements of One Kind](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#get-the-elements-of-one-kind)
- [Read the Text of an Element](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#read-the-text-of-an-element)
- [Read and Set the Text of Elements With Sub-Elements](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#read-and-set-the-text-of-elements-with-sub-elements)
- [Iterate Through a Collection](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#iterate-through-a-collection)
- [How the DTD Controls Insertions and Deletions](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#how-the-dtd-controls-insertions-and-deletions)
- [Insert an Element](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#insert-an-element)
- [Delete an Element](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#delete-an-element)
- [Key Members](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#key-members)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/programming/#next-steps)

---

## Nearby

- **Previous:** [Editing XML Files](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/editing/llms.txt)
- **Next:** [XML Basics](https://docs.textcontrol.com/tx-text-control-activex/document-editor/xml/basics/llms.txt)
