LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change from code an xml element tag name?

Hi,

I have following problem. I need to implement something like xml tree editor. I am using both CVIXML and Tree control. If I remove an item from the tree control I have to rename the item names to reflect in the new tree configuration (i.e. numeration) like this:

Before �

Sequence1
Sequence2
Sequence3
�.

Let say I remove the second item in the tree �

Sequence1
Sequence3

And I have to rearrange the names so that they appear correctly:

Sequence1
Sequence2

This is ok, but I am using the tree item names in the same XML document structure, and I have to change the element tag names to reflect the current changes.
There is a function: CVIXMLGetElementTag, but no one to change the element tag name.


Don�t know how to solve this problem?

Please help,

Thanks in advance,
Nikolai
0 Kudos
Message 1 of 2
(3,406 Views)
Unfortunaltely it is not possible to change the tagname of an existing Element in a XML-File from CVI. You have to remove the old one and create a new with the new name.
0 Kudos
Message 2 of 2
(3,406 Views)