I have several xml files to storage panoramas data. Data section in each of them looks like this:
<thumbs ...>
<pic name="1" .../>
<pic name="b" .../>
<pic name="c" .../>
<pic name="d" .../>
<pic name="e" .../>
</thumbs>
There's also one main xml file which loads data files by loadpano(xmfile,null,IGNOREKEEP).
What's the problem?
When I load data file with 3 items, 3 thums are ceated. When I go back to main xml file and load data file with 5 items: 5 thumbs are ceated. But when I go back again to main xml file and load data file with 3 items; 5 thumbs are created. So it seems to be one global array in memory, and even you load data section with 3 items, previous data section with more items is remembered and displayed (I mean data sections are merged).
Question (perhaps for Klaus)
Is there any way to initialize new loaded data section and prevent merging old and new thumb objects? I tried some ideas (eg. make something like reset in main xml file by set(thumbs.pic.count,0) or set(thumbs.pic.count,1) but this change is treated globally (all loaded data sections have length of 0 or 1.