How to remove nodes based on its attribute?

Sorry, I'll stop asking that much in the forum and try it myself, but I have another problem. . I would like to be able to remove a node based on its attribute 'id' to the node "ads". ?????

Here's the xml script:

< page id = "Page1" >
< ads id '0' = >
File1 < adfile > < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 212 < / adposx >
< adposy > 375 < / adposy >
< / ads >
< ads id = "1" >
File2 < adfile > < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 7 < / adposx >
< adposy > 69 < / adposy >
< / ads >
< ads id = "2" >
< adfile > file3 < / adfile >
< adwidth > 1 < / adwidth >
< adheight > 50 < / adheight >
< adposx > 83 < / adposx >
< adposy > 303 < / adposy >
< / ads >
< / print this page >
< / pages >

I tried that, but it did not work:

function deleteme(evt:MouseEvent):void {}
var who_Id:int = evt.target.parent.parent.id;    just to get the identification number
var who:String = evt.target.parent.parent.name;
this.removeChild (evt.target.parent.parent);
This.evt.Target.parent.parent = null;
Delete Pages.page.adverts. (@id == who_Id);  can change by a number of test who_Id
trace (pages);

}

It could be a simple as:

delete xml.page.adverts [who_Id];

But once that a node is deleted names numbers would correspond more is the number of the node.

Then maybe you're looking for this:

var xml =

File1

1

50

212

375

File2

1

50

7

69

file3

1

50

83

303

var who_Id:int = 1;

for (var i: Number = 0; i<  xml.page.adverts.length();="" i++)="">

If (xml.page.adverts[i].@id==String (who_Id)) {}

delete xml.page.adverts [i];

}

}

trace (XML);

Tags: Adobe Animate

Similar Questions

  • How to remove substitution please help its very urgent...

    Hello

    Please tell me how to remove the Substitution? I extended my seeded AM. I made the substitution, after that I ran jpxImport command. After you run this command, I couldn't able to open my standard page.

    Please tell me how to remove Substitution and tell me the command.


    Thank you
    Sandrine.

    Hi Raoul D,.

    When we create any Substitution, it will create a new document for this customization.

    You can see the customized document using the follwing sql statement
    exec jdr_utils. LISTCUSTOMIZATIONS('/Oracle/Apps/ICX/lov/Server/ReqSupplierAM')

    Suppose that if it is to have any document of substitution as * ' / oracle/apps/icx/lov/Server/customizations/site/0/ReqSupplierAM. "

    You can remove the document as

    exec jdr_utils. DELETEDOCUMENT('/Oracle/Apps/ICX/lov/Server/customizations/site/0/ReqSupplierAM')

    Now your override will be removed.

    I hope this will help you.

    Thank you...

  • How to remove a component from its container sprite?

    Hello
    In my application I have different sprite added to a UIcomponent component. Now I need if a component of sprite is selected, then I should be able to remove it.
    I added a mouse click event component to sprite to click on it. But when I'm using uiComp.removeChild (event.target) or uiComp.removeChild (event.currentTarget), on the application runs when I click on a particular component of sprite it calls the handler gives the error as child null can not delete.
    How to overcome this problem, if anyone has the suggestion please answer.

    Thank you

    It works:

  • How to remove a load of entry attribute before moving on to a WS?

    Hi all

    Below we have this payload:

    " < envelope soap: xmlns:soap = ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < soap: Body >

    " < = xmlns:ns1 ns1:getRecipeParameters ' http://www.w3.org/2001/XMLSchema-instance "trxn_type ="get_receipe"noNamespaceSchemaLocation =" getRecipeParameters.xsd "> "

    < ns1:Parameters >

    < ns1: add name = "Assay_ID" value = "UOLPJXP" > < / ns1: Add >

    < ns1: add name = "Product_Type" value = "UNLABELEDOLIGO" > < / ns1: Add >

    < / ns1:Parameters >

    < / ns1:getRecipeParameters >

    < / soap: Body >

    < / envelope soap: >

    The requirement is that we need to send the Sub payload to invoke an external WS:

    " < envelope soap: xmlns:soap = ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < soap: Body >

    " < = xmlns:ns1 ns1:getRecipeParameters ' http://www.w3.org/2001/XMLSchema-instance "trxn_type ="get_receipe"> "

    < ns1:Parameters >

    < ns1: add name = "Assay_ID" value = "UOLPJXP" > < / ns1: Add >

    < ns1: add name = "Product_Type" value = "UNLABELEDOLIGO" > < / ns1: Add >

    < / ns1:Parameters >

    < / ns1:getRecipeParameters >

    < / soap: Body >

    < / envelope soap: >

    NOTE: noNamespaceSchemaLocation = "getRecipeParameters.xsd" - this set of statement needs to be removed before being sent as input to a WS, but we will spend this entire statement in the payload (refer above) of entry.

    Which helps to go further, Vlad will check with my client on issues of the namespace. See you soon!

  • I get a Debug error message: [Exception... "No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"] using Vista. "." I do not understand how to remove t

    Whenever I try to use google for a search, I get the error msg following Debug error: [Exception... ["No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"]. I saw the solution proposed to MS XP, but not for Vista. In addition, while I saw the solution, I need more explicit instructions on how to "remove the ebay extension.

    This has happened

    Each time Firefox opened

    == When I try to load google Firefox, I get the error error Debug message: [Exception... ["No node is not found" code: "8" nsresult: "0 x 80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js line: 366"]

    Tools-> Add-ons-> Extensions

    At the top of the Firefox window, click the Tools menu and select Add-ons. Modules window appears.
    In the window modules, select the Extensions Panel.
    Select the module you want to uninstall.
    Click on the button uninstall. When you are prompted, click on uninstall to confirm.
    Then restart Firefox.

    Read here:
    #How uninstall the extensions and themes | Uninstall the extensions

  • How to remove the value of the XML attribute in the Indesign file with javascript

    Hi all

    How to remove the value of the XML attribute in the Indesign file.

    1.jpg

    What error is this?

    in any case try this as well (one another),

    var myDoc = app.activeDocument;
    attrDelete(myDoc);
    function attrDelete(elm)
    {
        for (var i = 0; i < elm.xmlElements.length; i++)
        {
            try{
                for(j=0; j
    

    Vandy

  • How to create LOV not based on an attribute of the View object?

    Hello

    I have created a form of research made hands, and I want to create an af:inputListOfValues.

    I have:
    -a read-only-view-object to get the values of BD LOV.
    -tag af:inputListOfValues (droped component Palette).

    How can I create the listOfValuesModel in the layer of links? (the inputListOfValues is not based on an attribute of the View object).

    Possible solutions.

    1. Add a dummy VO in the layer of model with a single attribute. Create LOV to the attribute and use this attribute in your view.
    2. OR visit http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html

  • How to query a line based on its rownum

    Hi all
    What is the best way to interrogate a line based on its rownum? Suppose I have the following query:
    select first_name from employees where rownum<5;
    FIRST_NAME
    --------------------
    Ellen
    Sundar
    Mozhe
    David
    Ellen has rownum 1, Sundar 2 and so on. How can I do it if I just want to ask a line where Mozhe's name, which is rownum 3?

    Best regards
    Val

    You said:

    >
    According to its availability
    >

    Is not calculate it? What do you mean by 'availability' in this context?

    What you can do, is something like this:

    select empno, ename
    from (
       select empno, ename, rownum rn
       from (
         select empno, ename
         from scott.emp
         order by ename
       )
       where rownum <= 3
    )
    where rn = 3;
    

    You need something to order by.
    Then, you create an internal selection with this order by.
    Then you select the inside where select rownum<=>
    And then you select just one third.
    So select the above gets you the third order of the employee by name.

  • Variants: How to assign a new value without alteration/losing its attributes?

    Hello

    I work with data varying with some metadata stored as attributes. Data values change frequently, but the metadata values are fairly constant.

    I am looking for a way to update the value of a Variant while preserving its attributes (or equivalently, transfer the old attributes to a new variant). I know that I can read the attributes of the old variant and insert them into a new, but I imagine that because many variants in a tight loop is a waste of cycles CPU - that is a legitimate concern? Is there a cleaner way to do this?

    Thank you!

    Here's a quick and dirty example:

  • How to restore a flashdrive with its original files that have been replaced or removed?

    Original title: how to restore a flashdrive with its original files?  I accidentally replaced a file with an earlier version of this file.

    Missing file

    Hi, David B.Erkens,.
     

    Unfortunately, you can not recover the file from the flash drive. You may need to use some third party recovery software to get the file.

    Please use your favorite search engine and browse for such a program that is used to.

    Note: This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

  • How to remove the XML prologue in Oracle?

    Our system works as follows:

    1. place a piece of XML code in the database as a CLOB
    2 database converts this value to XMLTYPE (stored as a CLOB (you can skip this, Marco * {;-)))))
    3. a request then reads XML from the database and inserts it into another bit of XML
    4. the application continues his treatment based on this new composite XML.

    So far, the XML that is loaded into the database in step 1 (for various systems) has never contained a prologue. However, a new system came along and is now passing in a prologue. There are problems of application in step 3.

    Apart from trying to get the new system do not spend in the prologue, is there a way to remove it of in Oracle?

    I came up with two solutions are not elegant:

    1. use XMLTABLE to retrieve the main root node (which might be different, depending on the system sent in the data and could change)
    2 convert the prologue in a commentary, using REPLACE the product, before converting the CLOB in an XMLTYPE.

    If I was forced to use one of the following methods, I would go with 2, but I really, really hope that there is a better way to do it.

    Someone at - it any other suggestions, please?

    PS. We are currently on 10.2.0.4 and are about to move to 11.2.0.3, but the solution is to work on both versions, for more fun and excitement!

    It's error, the application gives: "error obtaining Exception of SAX for additional information: no processing instruction begins with"xml"" who says that the app dev is due to the presence of the prologue in the middle of xml, the app has build up.

    So, basically, the app just "glue" XML in the middle of the other regardless of the structure? What kind of design is?
    IMO, the application needs to be fixed, not the XML input.

    A lot about how to add the prologue, nothing on how to remove it!

    You can use the XMLQuery function to get the root element:

    SQL> create table tmp_xml3 of xmltype
      2  xmltype store as basicfile clob;
    
    Table created
    
    SQL> insert into tmp_xml3 values (xmltype(''));
    
    1 row inserted
    
    SQL> select * from tmp_xml3;
    
    SYS_NC_ROWINFO$
    --------------------------------------------------------------------------------
    
    
    SQL>
    SQL> select xmlquery('*' passing object_value returning content)
      2  from tmp_xml3;
    
    XMLQUERY('*'PASSINGOBJECT_VALU
    --------------------------------------------------------------------------------
    
     
    

    Published by: odie_63 on August 22, 2012 15:26

  • Remove nodes from tree to Table

    I created a picture of the tree

    create table subforums)
    key elementary/ID NUMBER (5)
    parent_id references subforums.
    name varchar2 (100)
    );

    And now I don't know how to remove a tree with a specified id and all of its children.
    I tried to find out, but I could not

    Hello

    When you remove a node and all its children, what do you do with the grandkids? If you want to set their parent_id null, does that in a separate UPDATE statement first, then DELETE the original node and all of its remaining descendants, as shown below.

    If, when you say 'children', you mean 'descendants' (including the)
    children,
    children of the children,
    the children's children,
    and so forth, at any level,
    ) then do a CONNECT BY query to find their primary keys and DELETE everything in this list, like this:

    DELETE  subforms
    WHERE   id  IN
            (
            SELECT  id
            FROM    subforms
            START WITH        id = :specified_id
            CONNECT BY  PRIOR id = parent_id
            );
    
  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • How to remove unwanted plugins (and no I don't want to read all the articles unrelated who never answer your question)?

    I want to erase the unwanted plugins in Fire Fox. A plugin has even a warning about its use does not (Java Deployment Toolkit). But every time I ask 'how to remove a plugin?', I get redirected to an article that does not answer the question. And then the cycle starts again without ever actually answer the question.

    IT IS NECESSARY TO UNINSTALL FIREFOX TO DELETE A PLUGIN?

    Hello 4646tm, I understand your frustration. Here's how to remove a plugin:
    Click the menu and then click on Add ons, which looks like a piece of a puzzle.

        Type about:plugins into the Location bar and press Enter to display the About Plugins page.
       Each entry in the About Plugins page will have "File:" and "Path:", showing the name and location of the plugin file. Use Windows Explorer to navigate to the folder shown for the plugin you want to remove.
       Rename the file to add an X in front of the filename (for instance, npswf32 becomes Xnpswf32).
    

    You said that you do not want links, but I'll give you a couple just in case you do not want to uninstall the plugins manually. These links are to pages that tell you how to run the uninstall it please do not hesitate to tell me if you think that they are not useful.

    Uninstall Adobe Flash - Windows

    Uninstall QuickTime - Windows Vista/7

    Follow the instructions:
    Download Microsoft Silverlight (instructions to uninstall also)

    I just put a couple of the most common out there, if you have a specific plugin you don't want it please tell me and I can dig to the top of the page for it, also you can do manual uninstall I gave you.

    Have a great day!

    Jon

  • How to remove a Drum Machine Designer path of piano roll?

    Hello everyone, new user to Logic Pro X here!

    If I right click to 'Clear cell' of Drum Machine Designer to remove all the unused cells of Ibiza pre-set for cleaning.  Who successfully cleared DMD unused cells, but names of drum of the cleared cells remain in the Piano roll and I can't understand how to remove the piano roll.  How?

    Thanks in advance!

    The drum Machine Designer (DMD) is a "surprisingly", super easy to use with a nice user interface. HOWEVER, once you dig a little (or ask questions on this subject), it is revealed to be a really complicated beast. Any operation beyond the essential need to know what really is the designer of drum Machine. BTW, I cover all these details in my graphically improved manual "Logic Pro X - how it works'.»»

    Regarding your question:

    • DMD cells refer to a specific location on the Ultrabeat Plugin (which is loaded on a channel strip separated with DMD and functions as its sound source). In the lower right corner of each cell is a label of a specific key, which is his assignment to the Ultrabeat slot.
    • When you click a cell or play which is not specific, it triggers the sample in the slot of this Ultibeat,
    • When you disable a slot, you disable the assignment to this location, you are NOT clear the sample loaded on the Ultrabeat slot!
    • However, when you load a new sample on the cell in the window of DMD, you will overwrite the sample of the corresponding slot in Ultrabeat.
    • The names of drum displayed in the Piano Roll Editor come directly from the Ultrabeat instrument and not the window DMD. This is the reason why you still see the sample name (drum), even if you have disabled the corresponding cell in the DMD.
    • The only way to get rid of the name, is to rename it to Ultrabeat, for example a hyphen. The assignment of key label ("C1 01:...") "), however, is always displayed. I'm guessing that is cooked in the logic.

    Here is the screenshot that shows the relationship between the names of drum in the Piano Roll and the Ultrabeat Plugin

    BTW, in order to obtain the Ultrabeat plug-in, you must open the console, click on the small triangle of the DMD channel strip (which is actually a channel strip to the). The channel strip that opens next to him is the Instrument Channel Strip that has the Plugin loaded Ultrabeat.

    Hope that helps

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

Maybe you are looking for

  • Today my 1 password does not work - relocation of menu bar was impossible because it is not compatible with Firefox v. 14.0.1 that is on my computer

    Today the password icon 1 is not found in my menu bar. I'm went to the help of password 1 and tried to download the Firefox extension which would put the icon in the menu bar. The extension would not download. The message explained that the extension

  • background applications using a lot of RAM

    Hello... This is Pratik Patil of India... I have a question that I was hard once I upgraded my G2 Moto at Lollipop... Many stock apps use more than 70% of RAM my Google stock now Launcher lag a lot... all I try to clean the RAM by using application m

  • Incompatibility of rate baud Serial VISA

    Hi guys,. I have a vi to read the GPS settings via a serial port. I first set up the serial port, then I write some settings through the series and then I begin to receive messages with the position, speed, time, etc. The producer is a timed loop. It

  • DAQ trigger on-the-fly reconfiguration

    Hello What is the correct way to reconfigure a data acquisition on the fly? Every 100 s I'm doing a 2000 point 4-channel triggered acquisition (sampling rate 50000) As a function of household, that I also want to monitor the voltage of one of the cha

  • error-200288 AO

    Hello! I'm programming an analog output, to whom I write a single voltage in 'manual' mode value or a waveform in "scan mode" depending on the user input. The user can switch between them. Overall the program is big enough, so I'm writing just some s