I think the OP was attempting to delete all of the childern of a node by
assigning an empty XMLList.  While this seems reasonable, I do not
believe it will work, at least, I was unable to do it this way.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Monday, December 01, 2008 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Crash of safari, firefox using XML.setChildren
for XML in a XMLListCollection

 

The reason it is failing is because of the following line:

data.setChildren( new XMLList() );

You are passing the setChildren method a memory location of an empty
list.

This should give an error rather than crashing the browser.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "shauncutts" <[EMAIL PROTECTED]> wrote:
>
> Thanks... I'll file one.
> 
> But... why is it failing? In my mind, this should delete the node <b/>
> from <a> <b/> </a>.
> 

 

Reply via email to