# Select Method

> Selects the text of an XML element that belongs to the document; for an element with several sub-elements, the text of the first sub-element is selected.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > XMLElement > Select Method
- **122 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/select-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/select-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/select-method/llms-full.txt

---

Selects the text of the XML element. The text can only be selected if the element belongs to the document.

### Syntax

```vbscript
XMLElement.Select
```

### Remarks

If the element consists of several sub-elements Text Control selects the text of the first sub-element.

### See Also

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

---

## Nearby

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