# XMLElements Collection Object

> XMLElements collection object with all XML elements of a tag name, from TXTextControl.XMLElements: Add, Item, Remove, InputItem, Count and InputItemIndex.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Object
- **Path:** TX Text Control ActiveX > API Reference > XMLElements Collection Object
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/#syntax)
- [Members](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/#members)
- [See Also](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/#see-also)

---

## In This Section

- [Add Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/add-method/llms.txt): Adds an XMLElement to an XMLElements collection, optionally before or after a member; returns 0 on error, 1 if the DTD makes it invalid, 2 on success.
- [Count Property](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/count-property/llms.txt): Returns the number of XMLElement objects in an XMLElements collection, all XML elements with a certain tag name, as a Long. Read only and run time only.
- [InputItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitem-method/llms.txt): Returns the XMLElement of an XMLElements collection that contains the current input position, or no object if the input position is in none of them.
- [InputItemIndex Property](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/inputitemindex-property/llms.txt): Returns the index of the XML element with the current input position in an XMLElements collection as a Long, or zero if the position is in no element.
- [Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/item-method/llms.txt): Returns the XML element at a position from 1 to Count of an XMLElements collection; Item is the default method, with a Basic example of three equal forms.
- [Remove Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/remove-method/llms.txt): Removes the XML element at an index from 1 to Count from an XMLElements collection; returns 0 on error, 1 if the DTD makes it invalid, 2 on success.

---

## Nearby

- **Previous:** [Text Property](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/text-property/llms.txt)
- **Next:** [Add Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelements/add-method/llms.txt)
