>> Surely it's because you're creating a new <topics> node each time?
>>With this line:
>>modulesList[0]..subsection.(@title==contentRowItem2.Subsection).topics
= new XML(<topics />);
>>I suspect you should only create the new <topics/> node when there
>>isn't one there already...
OK, gotcha, so since I need to create it initially, so how would I
account for it when it's already there? I've tried this:
if(modulesList[0]..subsection.(@title==contentRowItem2.Subsection).lengt
h < 1)
{
modulesList[0]..subsection.(@title==contentRowItem2.Subsection).topics =
new XML(<topics />);
}
and:
if(!modulesList[0]..subsection.(@title==contentRowItem2.Subsection).chil
dren())
{
modulesList[0]..subsection.(@title==contentRowItem2.Subsection).topics =
new XML(<topics />);
}
>>(Wasn't part 1 of this on another list yesterday? :-))
Yep - Flexcoders, but I didn't get an answer to the rest of the problem
so I thought I would try here. Thanks!
Jason Merrill
Bank of America Global Learning
Shared Services Solutions Development
Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders