insert
insert(index, node)
Inserts the specified DataElement at the given index. If a DataElement with the same ElementID already exists, it will be replaced.
| Parameter | Description |
|---|---|
| index | The zero-based index at which the element should be inserted. |
| node | The DataElement instance to insert or replace at the target position. |
Returns: The DataElement that was inserted or used to replace an existing entry.