PDA

View Full Version : Making an XMLListCollection ignore its children?


slmille4@gmail.com
01-08-2009, 05:21 AM
Is it possible to make an XMLListCollection ignore it's children? Basically, I would like for the collectionChange event to only fire if any of the top level nodes are edited and have it do nothing if any of the nodes under them are changed. For example, if the the following schema schema was an XMLListCollection I'd like to have nothing happen if a "b" node is edited, but to have the collectionChangeHandler fire as usualy if an "a" node is edited. Can this be done?

<a id="1">
<b id="1">
</a>
<a id="2">
<b id="1">
</a>
<a id="3">
<b id="1">
</a>

Thanks,
Stephen M.

ljuwaidah
01-08-2009, 08:09 AM
You want it to ignore its children? that is crewel :P

Anyways, why don't you add a check in the event handler?

Peter Cowling
01-08-2009, 06:25 PM
Hi,

Is it not the case that you actually want to prevent people editing the children in the first place?