# ElementName Property

> Returns or sets the name of an XMLElement as a String; the name can only be changed for newly created elements, not for elements of an XML document.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > XMLElement > ElementName Property
- **116 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/elementname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/elementname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/elementname-property/llms-full.txt

---

Returns or sets the XML element's name. An element's name can only be changed for newly created elements. If an element belongs to an XML document its name cannot be changed.

### Syntax

```vbscript
XMLElement.ElementName [= name]
```

### Data Types

String.

### Limitations

Run time only.

### 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:** [ChildItem Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/childitem-method/llms-full.txt)
- **Next:** [RemoveChild Method](https://docs.textcontrol.com/tx-text-control-activex/reference/xmlelement/removechild-method/llms-full.txt)
