Windowlist - change databasenode
I have a problem to solve for which I don't know if there is a solution. I have a structure like this:
Code:
<my-firstlevel-tag>
<id-00001>
...
<my-secondlevel-tag>
<id-00001> ... </id-00001>
<id-00002> ... </id-00002>
...
</my-secondlevel-tag>
</id-00001>
<id-00002>
...
<my-secondlevel-tag>
<id-00001> ... </id-00001>
<id-00002> ... </id-00002>
...
</my-secondlevel-tag>
</id-00002>
...
<my-firstlevel-tag>
Each my-secondlevel-tag structure has a different number of elements, from 1 to n.
In a window I have a windowlist (myList) which has this databasenode --> my-firstlevel-tag.id-00001.my-secondlevel-tag. If I change
the database to my-firstlevel-tag.id-00002.my-secondlevel-tag using myList.setDatabaseNode( ... ) I get weird results. The list does
not update correctly and the elements multiply.
What am I doing wrong and what else should I do to make it work properly?