Does anyone know how to filter all the items in an XMLListCollection?

I have a tree with the following structure.
<>node
< Node1 >
< node2 >
< node3 / >
< node4 / >
< Noeud5 / >
< / node2 >
< / node1 >
< / node >

I need to be able to filter on node 3, 4 and 5 and then after the filter if they do not exist, get rid of the node 2 level and make then another function to check if the node levels 2 is here and if not filter... then filter node levels 1. Basically it is an ascendant of the filter. Flas 2.0 I would filter base level by removing the knots... then move to the next level and to check if they had children or not... If they did not then I would remove the... and then I would repeat the step for the last level.
Does anyone know how to do this without having to remove the items from the collection... Basically, perform a filter rather than a deletion. I know that the filter function only returns the first element in the xml structure... which is annoying. If anyone can help me I would appreciate it of course?

Thank you

I guess that the filtering on a tree passes only in the lymph nodes of the root... It's very lame on part of Flex. Basically, I had to make my own functions to remove the nodes dynamically.
Remember that this only works on a dynamic array element.
Delete list ;

To make this work, I have a main TreeCollection... and that I made a copy. Treecollection.Copy () and deletions of the struct stuff copied. After that the destructions were I made then assigned the copy to the MyTree.dataprovider = copy.

Tags: Flex

Similar Questions

  • Does anyone know how to turn off the Magnifier, don't need but it keep jumping on screen

    does anyone know how to turn off the Magnifier, do not want ir on ANYTIME

    Click the Start button
    All programs
    Accessories
    Ease of access Center

    Then click on "Make the computer easier to use" downwards.

    Then uncheck "turn on Magnifier." Press OK and you're done.

  • Does anyone know how to return to the standard interface Windows photoshop 2015 &amp; Surface

    Does anyone know how to return to the standard interface Windows photoshop 2015 & Surface

    Screenshot.jpg

    Adobe has a bug in the new UI Scaling preference: Auto by default.  If will scale Photoshop User Interface on the screens that will not work 2 x the scaling of the UI on the scale adapts not on display.  You must change this default auto at 100%.  It looks also not you must rest your workspace to get the palette of tools to a column.

  • Does anyone know how to remove all words of 'copy' of the name line HAVE layers?

    I downloaded a script PSD which automatically delete the word "copy" of all layers. Inside of GOT it, I can't do this. Can someone help me? Here's the script jsx PSD file:

    ----------

    ///////////////////////////////////////////////////////////////////////////////
    Script name: RenameLayers.jsx
    Version: 1.0
    Date: 27/02/08
    "Use: Removes ' copy 1, copy 2, etc." in the name of all the layers
    ///////////////////////////////////////////////////////////////////////////////

    #target photoshop
    $.localize = true;
    var displayDialogMode = app.displayDialogs;

    app.bringToFront ();
    app.bringToFront ();
    app.displayDialogs = DialogModes.NO;

    processObjects (app.documents processDocument, function () {alert ("you have no open documents")})
    app.displayDialogs = displayDialogMode;

    ///////////////////////////////////////////////////////////////////////////////
    Function: processObjects
    Use: Work theMainFunction on each object in the list theObjects
    Entry: The list of objects (documents, layers, etc.), function to run on each object, function to run on parent, if there is no object
    Return: value returned by the function used
    ///////////////////////////////////////////////////////////////////////////////
    function processObjects (theObjects, theMainFunction, theAlternateFunction) {}
    var returnValue = null;
    If (theObjects.length == 0) {}
    If (!) () theAlternateFunction == undefined) & &! (theAlternateFunction == null) & &! (theAlternateFunction == "")) {
    returnValue = theAlternateFunction (theObjects.parent);
    }
    } else {}
    If (!) () theMainFunction == undefined) & &! (theMainFunction == null) & &! (theMainFunction == "")) {
    for (var i = theObjects.length - 1; i > - 1; i--) {}
    returnValue = theMainFunction (theObjects [i], i);
    }
    }
    }
    return returnValue;
    }

    ///////////////////////////////////////////////////////////////////////////////
    Function: processDocument
    Use: Treat the layers in the document with the function 'processLayer '.
    Entry: Document subject of Document index object
    Back: no
    ///////////////////////////////////////////////////////////////////////////////
    function-processDocument (objectRef, i) {}
    app.activeDocument = objectRef
    processObjects (objectRef.layers, processLayer, null);
    }

    ///////////////////////////////////////////////////////////////////////////////
    Function: processLayer
    Usage: Delete "copy" of the name of layer (Layer content Set of processes)
    Entry: Object layer Layer object index
    Back: no
    ///////////////////////////////////////////////////////////////////////////////
    function processLayer (objectRef, i) {}
    If (objectRef.typename == 'LayerSet') {}
    var layerCount = processObjects (objectRef.layers, processLayer);
    }
    renameLayer (objectRef)
    Returns 0
    }

    ///////////////////////////////////////////////////////////////////////////////
    Function: renameLayer
    Usage: Delete "copy" of the name of layer (Layer content Set of processes)
    Entry: Object layer Layer object index
    Back: no
    ///////////////////////////////////////////////////////////////////////////////
    function renameLayer (objectRef) {}
    var theRegEx = new RegExp (/ (\s*copy\s*\d*) + $/)

    If (theRegEx.test (objectRef.name)) {}
    Save the State of the layer (visible or invisible)
    var layerVisible = objectRef.visible
    var numero_index = 0
    numero_index = objectRef.name.indexOf ("copy")
    objectRef.name = objectRef.name.substr(0,indexnumber)
    objectRef.visible = layerVisible
    }
    Returns 0
    }


    ----------

    Anyone?

    I wrote the original code you have several years ago, I did a quick check and if you change the first lines of what follows, it should work:

    #target illustrator
    $.localize = true;
    var displayDialogMode = app.displayDialogs;

    app.bringToFront ();
    app.bringToFront ();
    app.displayDialogs = DialogModes.NO;

    processObjects (app.documents processDocument, function () {alert ("you have no open documents")})
    app.displayDialogs = displayDialogMode;

    The code has been mistake out on the lines that changed the displayDialogMode and who brought the application forward, so I have commented out them. I don't have time now to see that needs to be done to ensure that this work (if they can), but it should work for you.

  • Does anyone know how I can change the movie in Movie Maker, so all the pictures show for 2 seconds and not 5?

    I tried to go in Tools/Options and changed it there but it does not change the pictures that I have already downloaded.

    Hi MELReinders,

    You can follow this link & check if it helps:

    What to do movies with Movie Maker?

    Hope the helps of information.

  • does anyone know how to get the webcam doesn't work on a samsung sv510

    I can't find the webcam in the programs. I can't make it work, does anyone know how? Help, please

    Hello, Damienmelarkey,

    -Come on in and START then all PROGRAMS, you should see a built in CyberLink YouCam, click on this program.
    -Follow the instructions to register, it's super quick and easy, all you have to do is to register your name and email address.
    -Follow through with the directions from there and it should be operational.

    Locate the manuals, drivers and support forum Samsung

    http://www.Samsung.com/us/support/

  • I just installed Windows 7 on a PC that I just built. Being new to Windows 7 I started to play around him and did not find any games at all. Does anyone know how to fix this?

    I just installed Windows 7 on a PC that I just built.  Being new to Windows 7 I started to play around him and did not find any games at all.  Does anyone know how to fix this?

    Salvation Ita; tribal

    Congratulations on a newly built Windows 7 computer. Selected games may not be that is the reason why you are unable to find all the games on the computer.

    Follow the steps to turn on the games feature.

    1. click on start.
    2. type optionalfeatures.exe in start search.
    3. place a checkmark for the games.
    4. click on OK.

    After the computer has been restarted, check if you can play games on your computer.

    See the article: features on or off Windows activate: http://windows.microsoft.com/en-US/windows7/Turn-Windows-features-on-or-off

    Thank you, and in what concerns:
    Swathi B - Microsoft technical support.

    Visit our Microsoft answers Feedback Forum and tell us what you think.

  • I have a Canon MG6120. When I start it up I get the error code 5050. Does anyone know how to fix this?

    I have a Canon MG6120 all-in-one. When I start it up I get the error code 5050. Does anyone know how to solve this, more power to the wide / power?

    Hello gregg.

    Please, try the following to see if we can solve your problem:

    1. turn off the printer.

    2 disconnect the power from the printer for at least 5-10 minutes.

    3. once unplugged, remove any paper from the device.

    4. check for obstructions in the paths of the unit or the paper.

    5 If no obstacles are, plug the power back in and switch on the device.

    If the problem persists, the unit will require repairs for the correction.  We apologize for the inconvenience.  Please contact our support group using the 'Contact us' below for further assistance.

    It has not responded to your question or problem? Find more help at the Contact Us.

  • Hi, does anyone know how to get my sony vaio bluetooth works please, I tried to update etc, but he won't find not all bluetooth devices.

    Hi, does anyone know how to get my sony vaio bluetooth works please, I tried to update etc, but he won't find not all bluetooth devices.

    Hello

    Check with the support of Sony as their problems, driver updates, other reasons could known BlueTooth
    is not functional or taken in charge.

    Sony - Contacts
    http://eSupport.Sony.com/us/Perl/contact-land.pl

    Sony - drivers
    http://eSupport.Sony.com/Perl/select-System.pl

    Sony - Support
    http://eSupport.Sony.com/

    =====================================

    If bluetooth is supported on your model that these could help.

    Hardware devices not detected or does not work - a Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    The problems with Bluetooth devices
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    Set up a Bluetooth compatible device
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    The problems with Bluetooth devices
    http://207.46.197.98/Windows/en-in/help/11a74104-645D-40D4-b933-bde5d15537bb1033.mspx

    How to set up a Bluetooth connection
    http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connection

    The Bluetooth item in Control Panel on a Windows Vista SP2 computer does not
    as expected when you click on the element - for Windows 7 this check manually
    http://support.Microsoft.com/kb/960531/en-us

    If you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.

    BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
    devices around you. For each detected Bluetooth device, it displays the following information:
    The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
    Last detection time and more. BluetoothView can also warn when a new Bluetooth device
    is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE
    http://www.NirSoft.NET/utils/bluetooth_viewer.html

    BluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
    the standard output. For each Bluetooth device, the following information is displayed: MAC
    Address, name, Major Device Type, minor device Type and possibly the name of the company of
    the device (if the external file of MAC addresses - oui.txt is provided) - FREE
    http://www.NirSoft.NET/utils/bluetoothcl.html

    ---------------------------------------------------------------------

    Add a Bluetooth device to your computer
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    Add a Bluetooth device or other wireless or network device: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions

    ---------------------------------------------------------------------

    More information of possible interest to some:

    What is a Bluetooth personal area network (PAN) network?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-Bluetooth-personal-area-network-Pan

    Connect to a Bluetooth personal area network (PAN) network
    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-a-Bluetooth-personal-area-network-Pan

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Does anyone know how to use the movement of scroller with the function of the fluid width?

    Hi all

    Does anyone know how to use the movement of scroller with the function of the fluid width?

    Thanks, Federico

    This feature is not yet implemented.

  • Hi, my trial version of Lightroom 5 has expired recently and I bought now fully. I downloaded the CD on my Mac, but when I open again the Lightroom application, it always says that the trial has expired. Does anyone know how I can update so I c

    Hi, my trial version of Lightroom 5 has expired recently and I bought now fully. I downloaded the CD on my Mac, but when I open again the Lightroom application, it always says that the trial has expired. Does anyone know how I can update so I can finally use again? I appreciate really all help! Thank you!

    Joanne, please remove your current installation of Photoshop Lightroom by using the uninstall program located in the/Applications/Utilities/Adobe Installers.

    You will then want to download Adobe Photoshop Lightroom 5.7.1 of Adobe - Lightroom: for Macintosh.  The update contains the entire application.  Photoshop Lightroom cannot be installed through the Adobe Creative Cloud Desktop application and still be allowed with a serial number.

  • Does anyone know how to fix the following expression

    Hello experts,

    My expression below gives me just the data for the selected date, how do I do where he will give me data according to the change of date. For example, for tomorrow it will give me data from 14 February to 14 may (3 months)... Alternatively, if anyone knows how I can write the SQL Expression and replace this filter. Please please help

    FILTER ('fact - sales cost'. "' Cost ' ('GL calendar'. (("" Tax Date ' BETWEEN timestamp ' 2013-02-13' AND timestamp ' 2013-05-13'))


    Thank you very much

    ) is missing from my statement

    Try this
    FILTER ('fact - sales cost'. "' Cost ' ('GL calendar'. "' Exercise date ' > = TIMESTAMPADD (SQL_TSI_MONTH,-3, current_date) and
    "Calendar GL '." "Tax Date.<>

    If this does not work then after using the GL calendar ".» "Tax Date.
    try to use the Advanced button to convert the SQL filter and use as suggested

    try to do it manually instead just copy and paste.

  • Does anyone know how to turn off this setting when your phone is at a certain angle turns on without you pressing the button side feed or House? Please if you know tell me!

    Does anyone know how to turn off this setting when your phone is at a certain angle turns on without you pressing the button side feed or House? Please if you know tell me!

    Settings > display and brightness > raise to Wake

  • Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    I've just updated to Sierra. Since the upgrade did several reboots. When I discover an app the side also shows "4 +" or similar and I click on the note to view reviews and ratings of customer, a blank screen appears. Everyone knows this or have a way to solve this problem?

    I see even here in Seattle, so I think the question is about the end of Apple.

    By the end of 2012 Mac minis, macOS?  Watch 38 mm silver AL, watchOS 3; iPad 2 Air & iPhone 6 + iOS 10.0.1;  Apple Airport Express

  • Does anyone know how to return the icons in the sidebar color safari?  My mac has lost this ability on the upgrade to El Capitan.  Thank you.

    Does anyone know how to get Safari sidebar icons to color?  My mac has lost this ability when I upgraded to El Capitan.  Thank you.

    rmcdga wrote:

    Does anyone know how to get Safari sidebar icons to color?  My mac has lost this ability when I upgraded to El Capitan.  Thank you.

    rmcdga ~.

    Safari sidebar slips into view, move the mouse to the left or by clicking on the icon in the toolbar.

    There are 3 menus through the albums has only 2 3 show any color.  This is part of the new flat design, minimal color (a bit like side bar of the Finder)

    Favorites - No.

    reading list - Yes (if photos)

    subscriptions: Yes

Maybe you are looking for

  • Buttons to blend into the background. Button menu to open does not have a menu.

    Button, button "home" to move forward, back, bookmark this page button, show your bookmarks and open menu buttons are present, but you can not see them. Button menu to open does not have a menu drop-down.

  • Properties in Excel reading in LabVIEW

    I have a large amount of data files that I read in a labview excel program.  I want to use the date of creation of the files property to select only files within a date range.  How to read this file property?

  • hide all cursors

    Hi all I use about 16 sliders on my chart. At some point, I want to hide all the sliders. Is it possible to define the position of all the cursors in one go rather than the adjustment of each slider position individually? Thank you Ritesh

  • Netflix does not recognize my internet connection

    When I try to load the Netflix of in Media Center, I get the following error message: INTERNET CONNECTION There was a problem of data recovery. Check the works of your Internet connection and try again I have an active Netflix account.

  • 2000-2b19wm HP: Broken covers left button of the mouse for HP 2000-2b19wm

    I have a problem where the cover of the button left mouse broke and fell. The box of cylinder head of entry for the left button of the mouse is fine and still works. Here is a picture of the question: