---
name: "ElementTree.addDataAt"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ElementTree.addDataAt"
---

# ElementTree.addDataAt(3kaya)

Add text to an element

## NAME

ElementTree::addDataAt - Add text to an element

## SYNOPSIS

**Void addDataAt(** *ElementTree parent, String cdata, Int index* **)**

## ARGUMENTS

**parent** The parent element

**cdata** The text to add

**index** The index to add at

## DESCRIPTION

Adds the text to the specified position in the parent element. If the preceding block is also a text block, they will be merged.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**ElementTree.addElementAt (3kaya)**

**ElementTree.addGeneratorAt (3kaya)**

**ElementTree.pushData (3kaya)**

**ElementTree.unshiftData (3kaya)**
