My flex plugin loads an XML document that is passed in from
the ExternalInterace. I have a List control that displays data from
this XML document.
The XML looks like:
<object type="typeValue" name="Name Value" id="GUID
<!-- more objects in this list -->
I set the list dataProvider to
Thing is, I want to remove one of the object nodes before I
display the data (that is, i dont want one of the nodes in the XML
document to appear in the list).
How do I do this? I could not find any way to delete an
existing node in the XML api.
You can either use the "delete" operator:
where the object to be deleted might be the fifth down
(you'll have to play with your xml in debug to get the actual
values down) or convert to xmlListCollection. The xmlListCollection
provides easy methods to remove the offending nodes or you may
provide a filterFunction for the collection which will "hide" the