XML E4X nodes select based on the attribute of the child node.

Hey,.

I'm making a selection on the following XML code.

I want to retrieve the list of the variable node when its child nodes metadata attribute 'name' is not equal to "transitional". I have read the documentation, but have not been able to solve this problem, and it should be pretty simple. So far, I tried with something like.

variable var: XMLList = classInfo.variable. (the metadata. (@name! = "transitoire")) ;

variable var: XMLList = classInfo.variable. (metadata.@name! = "transitional");

But he returns all the nodes variable.

"< name =" type com.sca.dataModel::PresentationDataEntity"base =" com.sca.dataModel::BaseEntity "isDynamic ="false"isFinal ="false"isStatic ="false">
< extendsClass type="com.sca.dataModel::BaseEntity"/ >
< extendsClass type = 'Object' / >
< variable name = "subtitle" type = "string" >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
< arg key = "pos" value = "128" / >
< / metadata >
< / variable >
< variable name = "id" type = "Number" >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
< arg key = "pos" value = "153" / >
< / metadata >
< / variable >
< variable name = "tableName" type = "String" >
< name of metadata = "transitional" / >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
< arg key = 'pos' value = '118' / >
< / metadata >
< / variable >
< variable name = "db_SortAsc" type = "Boolean" >
< name of metadata = "transitional" / >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
< arg key = "pos" value = "281" / >
< / metadata >
< / variable >
< variable name = "title" type = "String" >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
< arg key = "pos" value = "100" / >
< / metadata >
< / variable >
< method name = "setData" declaredBy = "com.sca.dataModel::BaseEntity" returnType ="*" > "
< parameter index = '1' type = 'Object' optional = "false" / >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
< arg key = "pos" value = "330" / >
< / metadata >
< / method >
< name of metadata = "__go_to_ctor_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
< arg key = "pos" value = "167" / >
< / metadata >
< name of metadata = "__go_to_definition_help" >
< arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
< arg key = "pos" value = "42" / >
< / metadata >
< / type >

Try classInfo.variable. ([email protected] (.indexOf("transient')) is

(- 1).

Tags: Flex

Similar Questions

  • Automatic filling of multiple selection based on the selection list

    Hello

    I have a problem in filling multiple selection data in the selection list.
    I would like to take an example and explain.
    I have 3 tables: employee, Department and a link table for employee and department.
    The selection list contains employee and the Department is a multiple selection. Employee selection, all departments must be posted and belongs to the Ministry of which employee (which comes from the binding table) must be selected (high-lighted). How can I do this?

    HI 841762 :),.

    Do not use the 'style' to highlight that you would have found out by now that would make the blue text background while the font color remains black and this will make the text unreadable. Plus if there is a button on the page when you submit it to us, I doubt that it will store the State of the selected items in a multiple of P1_DEPT in session state. then try this...

    In the application process, replace, the status of 'style' that you used to highlight as you...

    ....
    If (rec.R=cnt)then
    htp.prn('');
    ELSE
      htp.prn('');
    end if;
    ...
    

    Then in the JS, use

    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue,l_Opt_Xml.getAttribute('selected'));
    

    and change the function "appendToSelect".

    function appendToSelect(pSelect, pValue, pContent,pIsSelected) {
    
     var l_Opt = document.createElement("option");
     l_Opt.value = pValue;
    
    if(pIsSelected)
    l_Opt.setAttribute('selected','selected');
    
    if(document.all){
      pSelect.options.add(l_Opt);
      l_Opt.innerText = pContent;
     } else {
      l_Opt.appendChild(document.createTextNode(pContent));
      pSelect.appendChild(l_Opt);
     }
    }
    
  • ItemRenderer custom - decide if selectable based on the dataProvider

    Hello

    I want to have a list with unselectable items, except some that have a property like {selectable: true} in the item object.

    Thank you.

    This message may be useful: http://flexponential.com/2009/12/20/disable-selection-on-some-items-in-a-spark-list/

    Be sure to check the implementation of Tink in the comments.

  • execution of actions on a selection based on the object type

    Hello.

    I am trying to write an AppleScript that considers the current selection, then redefines the scaling of all lines of that selection to 100%, and then sets the absolute horizontal scale of the remaining elements of the selection to 100%.

    My attempts so far are:

    say application «Adobe InDesign CS3»

    put Original_Selection to selection

    put to each graphic line of Original_Selection Lines_Selection -this part is not working

    put transform reference point of window layout 1 to anchor Center

    Choose Lines_Selection

    redefine the scaling to the selection {1.0 , 1.0}

    Choose Original_Selection - but it must be ' Original_Selection less Lines_Selection ' somehow

    put horizontal scale absolute at 100

    end say

    None of this really works as I expect, but I can't find out the required syntaxes. Anyone know where I am going wrong?

    Thank you.

    Try this:

    say application «Adobe InDesign CS3»

    the value transform reference point of window layout 1 of anchorage Center

    redefine the scaling of (each point of selection which class is the line graph) to {1.0, 1.0}

    the horizontal scale absolute value of (each element of selection whose class is not graphic line) to 100

    end say

    --

    Shane Stanley [email protected]>

    AppleScript Pro, April 2010, Florida http://www.applescriptpro.com>

  • checkbox selection based on the name within a field

    I have a PDF form

    the form has 2 selections of checkboxes.  M or F (male or female)

    I can get a field to fill with M or F or man or woman, but how do I get a checkbox to select M or F based on

    What comes in a field?

    You can use the custom validation script of the--of the text field to change the check box, for example:

    If (event.value == "Male") this.getField("CheckBoxMale").checkThisBox (0, true);

    Else if (event.value == "Female") this.getField("CheckBoxFemale").checkThisBox (0, true);

  • Would it not be possible to make a selection based on the percentage instead of pixels? For example: 90% left, 5% of the upper part.

    Im having a little trouble getting a Photoshop Action to work the way I need to.

    Product photos are taken in different batches, and the only thing that is guaranteed, it must be transparent in the upper right. This means I need an action that makes a selection with the 'magic wand' tool and is independent to define an absolute selection through pixels (see images below).

    selection.PNG

    Photo: how it behaves

    selection2.png

    Photo: How I need to behave

    Anyone know how I can solve this problem without resizing the canvas to an exact size?

    Thank you in advance,

    Edvard

    Hi edvardkrupke

    Please try and change the rules per cent in Photoshop preferences.

    Check the screenshot below.once you change restart Photoshop to check

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • Can I set selection based on the 'selectedItem.label' instead of 'selectedIndex '?

    I searched the forums for this one but no luck. It's also a little difficult without being able to download a file, but this is:

    In a simplified version of my question, I have a ComboBox control named "cb". I can put its selectedIndex 1 (corresponding to 'Red' selectedItem.label) easily with:

    cb.selectedIndex = 1

    However, given that the 'Reds' are not necessarily at a selected index of 1, if it is asked another entry in the list, I'd rather base my code on selectedItem.label, because it will always be 'red '.

    How can I do this? I can at least draw corresponding to the label with the code as selection index:

    var frameSelect:Number = cb.selectedIndex;
    trace (frameSelect)

    Do I need some sort of loop function? Or y at - there a simpler way? I can define a variable at the beginning of my code to figure out what the corresponding selection of 'Red' date index here? I need essentially

    var frameSelect:Number is cb. [Index of everything goes with the label of 'Red']

    If it is useful for you, what I'm doing (on a scale of simplified) uses a drop-down list box to change the color of a clip. The user can click on 'Blue' or 'Yellow' or 'Red' in the box of comb and clip changes color. However, I also need a simple button that has only a single result ('Red') where the user clicks the button and thus sets the index selected in the combobox control directly to the 'red'. As I said, I can do it quite easily using the setting selectedIndex, but this means I have to manually update my button code whenever a new color option has been added. Not ideal remotely, because the actual implementation has hundreds of colors in tables and there will be many buttons create different arrangements of comboboxes.

    (For example a combobox is colors, one of the forms, and one is size. The final objective is to let the user experience as much as they want through drop-down menus, OR click on a 'Small green circle' button to go directly to a particular result.)

    Any help would be greatly appreciated!

    You need just a little loop on the elements in the dataProvider and check the labels against 'red '.

    Something like so should work for you:

    function getIndex(s:String) {}

    var ind:int = - 1;

    var dp:DataProvider = cb.dataProvider;
    for (var i: int = 0; i< dp.length;="">
    If (dp.getItemAt (i) .label == s) {}
    IND = i;
    break;
    }
    }

    return ind.

    }

    cb.selectedIndex = getIndex ("red");

  • Selection based on the date of no recovery no lines

    Hello

    Why this doesn't work (returns 0 records)

    < cfquery = name 'interrogate' Datasource = "#Application.Datasource #" >
    SELECT *.
    THE VOTING
    WHERE the arguments start_date > = #DateFormat (now (), "dd-mm-yyyy") # and end_date < = #DateFormat (now (), "dd-mm-yyyy") #.
    < / cfquery >

    There are two rows on the table. One with start_date 12/01/2006 and the date of 12/19/2006, the other with 12/20/2006 start_date and end_date of 31/12/2006. Any of these get selected, once the current DAT files are 31/12/2006.

    Thank you

    My lack of formal training is showing through... I jump into the deep end.

    I changed the statement for...

    WHERE the #DateFormat (now (), "dd-mm-yyyy") # BETWEEN start_date and end_date

    I read this as "where is today > = past date and today.<= future="" date".="" i="" want="" a="" date="" between="" the="" start="" and="" end.="" but="" that="" doesn't="" return="" any="">

    What shocks you on the date format? JMA is the Australian date format.

    I will start this topic.

    Thank you
    Tanya

  • Select multiple choice based on the data control does not not value in the correct form

    Hello, I am using JDeveloper 12.1.2

    I made a choice of several select based on an attribute of the year to a data control and I have a method in my managed bean that retrieves the selected values in the select choice of many, and on the basis that I want to do some queries, but the value that returns the selection is not the value of the attribute is the value of memory (or what is the correct value name..)

    Here is the code:

    < af:selectManyChoice value = "#{bindings." Label AnoList1.inputValue}' = 'Ano '.

    ID = "smc1.

    valueChangeListener = "#{OBIEE_managed_bean.» AnoListSelection}.

    autoSubmit = 'true '.

    Binding = "#{OBIEE_managed_bean.anoListBinding} '"

    immediate = "true" >

    < f: selectItems value = "#{bindings." AnoList1.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." AnoList1.validator} "/ >"

    < / af:selectManyChoice >

    Managed bean:

    public void AnoListSelection (ValueChangeEvent valueChangeEvent) {}

    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());

    try {}

    System.out.println ("Valor link yearChoice:" + anoListBinding.getValue () m:System.NET.SocketAddress.ToString ());

    ...

    The output is as follows:

    Valor link yearChoice: [Ljava.lang.Object;@4939cade

    Year: Ljava.lang.Object;@7135da60

    This normally happens when the toString is not defined, but how I have to fix this? Someone at - it had the same problem? Any advice?

    Kind regards

    Frederico.

    Hi Frederico

    I'm fine hope you are too.

    Sorry, but you can try

    {for (Object item: (Object []) {valueChangeEvent.getNewValue ())}

    System.out.println (Item.ToString ());

    }

    This should give you something.

  • cord cable fiber type selection based on different types of SFP connectors?

    need help with fiber patch cable cord type selection based on the different types of SFP connectors, y at - it links online or any documents that will be useful...

    The type of connector, usually (but not always) follows the form factor of the transceiver. For example, most SFP and SFP + transceiverss use dual LC.

    However, always check the Datasheet on the link I provided above to confirm if there is any doubt.

    Please indicate your question as answered if it was.

  • Command tab selected, based on navigation

    Hello

    I have a jsf (jspx) page with a navigation pane, which has three navigation elements. Now by clicking one of the navigation feature a different jsf page will appear in a new window. This page has three tabs. Now, I want to show a tab is selected, based on the navigation point clicked. I have a managed bean where I put the disclosed ownership of the retail show based on the clicked point navigation. But it is throwing null pointer exception.

    public void firstitemClicked() {}

    this.getTab1 () .setDisclosed (false); This line is an error

    this.getTab2 () .setDisclosed (true);

    this.getTab3 () .setDisclosed (false);

    }

    And this method is called the navigation item that is located on the first page.

    Mallaury,

    Make the Boolean type as "static".

    In your DemoBackingBean, do the "static" variable that we were missing before.


    Private static boolean first = false;

    Tip: I prefer to use "af:setActionListener" instead of writing code for such requirement

    Thank you

    SAIF

  • Selection of Inspection based on the attributes of the image

    I'm processing the stored images and must choose an inspection based on attributes of the image as the name and the size (length in pixels).

    Currently, I do all this in only one inspection, but since I'm inspecting several product families (differentiated my name of the image), and several sizes for each family, my inspection algorithm becomes very difficult to manage, so I would like to create a supervisor application that can determine which family of products and the size I'm looking, and then run the corresponding inspection and then do some data sharing and saving the image and loop back to the next image.

    I played with the ability to select Inspection in VBAI, but since I'm not on the material or communications to select the inspection, I can't seem to find a viable solution, ideally, I would like to go through the step of configuration once, then jump to the state diagram for the treatment of the initial image (determine the product family and size) then go to 'Select Inspection' and run the corresponding inspection.  This is where I'm stuck, IE., how to trigger the jump to select inspection in the state diagram?  Some people I have consulted so far say: you can't do that!  Anyone beg to differ?

    If I can't access select Inspection of state diagram, then plan B is to use the LabView API and make the principal contractor in LabView, it is where I need to go?

    Thank you

    Eric

    If you have the indicator Activate Product select enabled, select product State will run automatically after the State inspect goes to terminal completion. You can use a VI select LabVIEW Run in the State of product for your logic and move to the next round to load. With Vision Builder AI 2010, this path can be considered to be the real path to the inspection (inspection select dynamically run then) so you do not preconfigure a lookup table of inspections to run with values (it was the previous way of doing and it does not allow to dynamically load new inspections that weren't in the preconfigured table). Don't know how it works with your system, but using the LabVIEW API is an alternative that would give you better control and. You might even have a stage run a LV VI specify the control to use on an iteration in Prioduct selection state and inspection of logging of data/images to use later, but due to the opening and closing of the inspections overload new inspections may make having an inspection separate for logging of common data/images does not not your needs timing.

    Hope this helps,

    Brad

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • Extract all nodes and filter them based on the WHERE clause

    <?xml version="1.0" encoding="UTF-8"?>
    <report_repository_summary>
       <sql sql_id="gyn915ynqjspa" sql_exec_start="08/19/2015 22:23:02" sql_exec_id="16777217">
          <status>DONE</status>
          <sql_text>BEGIN DBMS_STATS.GATHER_FIXED_OBJECTS_STATS; END;</sql_text>
          <first_refresh_time>08/19/2015 22:23:10</first_refresh_time>
          <last_refresh_time>08/19/2015 22:24:52</last_refresh_time>
          <refresh_count>54</refresh_count>
          <inst_id>1</inst_id>
          <session_id>26</session_id>
          <session_serial>20363</session_serial>
          <user_id>0</user_id>
          <user>SYS</user>
          <con_id>3</con_id>
          <con_name>PDB01_1</con_name>
          <module>sqlplus@lab (TNS V1-V3)</module>
          <service>1_1.up.com</service>
          <program>sqlplus@lab (TNS V1-V3)</program>
          <plan_hash>0</plan_hash>
          <is_cross_instance>N</is_cross_instance>
          <stats type="monitor">
             <stat name="duration">110</stat>
             <stat name="elapsed_time">109822091</stat>
             <stat name="cpu_time">78295097</stat>
             <stat name="user_io_wait_time">1388002</stat>
             <stat name="application_wait_time">1228</stat>
             <stat name="concurrency_wait_time">9175702</stat>
             <stat name="cluster_wait_time">41691</stat>
             <stat name="plsql_exec_time">39369731</stat>
             <stat name="other_wait_time">20920371</stat>
             <stat name="buffer_gets">616087</stat>
             <stat name="read_reqs">837</stat>
             <stat name="read_bytes">22998016</stat>
          </stats>
       </sql>
    </report_repository_summary>
    
    
    

    With above document XML stored as varchar2 (4000) in 12.1.0.2.0, how can I retrieve and display the relevant information(sql_id,session_id,plan_hash,duration,read_bytes) based on the place where condition to filter on any node. For example.

    select * from (
    SELECT EXTRACT (xmltype.createxml (a.report_summary), '//stats/stat[2]/text()').getstringval () AS elap_time from dba_hist_reports a WHERE component_name = 'sqlmonitor'
    )
    where elap_time > 100000000
    /
    
    
    

    Here, I try to get sql_id, sql_exec_id, duration and other information stored in the xml document by applying the where on elapsed_time condition. But to do this, I must write the part EXTRACT for all nodes in the inline view which seems like very bad way of writing of XML query. Is there an easy way to get all the information of nodes so that I can freely apply node whatever, I want in the WHERE condition to filter the records? No better way to write the code then the code below?

    select     REPORT_ID,
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_exec_id')                               "sql_exec_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_exec_start",
               EXTRACT (xmltype(a.report_summary), '//status/text()')                                  "status",
               EXTRACT (xmltype(a.report_summary), '//sql_text/text()')                                "sql_text",
               EXTRACT (xmltype(a.report_summary), '//first_refresh_time/text()')              "first_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//last_refresh_time/text()')               "last_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//refresh_count/text()')                   "refresh_count",
               EXTRACT (xmltype(a.report_summary), '//inst_id/text()')                                         "inst_id",
               EXTRACT (xmltype(a.report_summary), '//session_id/text()')                              "session_id",
               EXTRACT (xmltype(a.report_summary), '//session_serial/text()')                  "session_serial",
               EXTRACT (xmltype(a.report_summary), '//user_id/text()')                                         "user_id",
               EXTRACT (xmltype(a.report_summary), '//user/text()')                                    "user",
               EXTRACT (xmltype(a.report_summary), '//con_id/text()')                                  "con_id",
               EXTRACT (xmltype(a.report_summary), '//con_name/text()')                                "con_name",
               EXTRACT (xmltype(a.report_summary), '//module/text()')                                  "module",
               EXTRACT (xmltype(a.report_summary), '//service/text()')                                         "service",
               EXTRACT (xmltype(a.report_summary), '//program/text()')                                         "program",
               EXTRACT (xmltype(a.report_summary), '//plan_hash/text()')                               "plan_hash",
               EXTRACT (xmltype(a.report_summary), '//is_cross_instance/text()')               "is_cross_instance",
               EXTRACT (xmltype(a.report_summary), '//stat[1]/text()')                                 "duration",
               EXTRACT (xmltype(a.report_summary), '//stat[2]/text()')                                 "elapsed_time",
               EXTRACT (xmltype(a.report_summary), '//stat[3]/text()')                                 "cpu_time",
               EXTRACT (xmltype(a.report_summary), '//stat[4]/text()')                                 "user_io_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[5]/text()')                                 "application_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[6]/text()')                                 "concurrency_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[7]/text()')                                 "cluster_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[8]/text()')                                 "plsql_exec_time",
               EXTRACT (xmltype(a.report_summary), '//stat[9]/text()')                                 "other_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[10]/text()')                                        "buffer_gets",
               EXTRACT (xmltype(a.report_summary), '//stat[11]/text()')                                        "read_reqs",
               EXTRACT (xmltype(a.report_summary), '//stat[12]/text()')                                        "read_bytes"
    from       DBA_HIST_REPORTS a
    

    Don't know why, but it pays just 1 or 0. Even in your case his statement just 0 or 1 for all X 2 columns table.

    I guess I do something wrong in declaring XPATH for X 2 table but not able to find what it is.

    It makes account 0 or 1 because path expressions are bad.

    "For example: ' @name ="duration"

    This is a Boolean expression, not a step of XPath and so gets evaluated as such, which gives 0/1 for false/true values.

    What you need, it is something like this:

    SELECT x1.*
    FROM dba_hist_reports t
       , xmltable('/report_repository_summary/sql'
           PASSING xmlparse(document t.report_summary)
           COLUMNS
             sql_id              varchar2(15) path '@sql_id'
           , sql_exec_start      varchar2(30) path '@sql_exec_start'
           , sql_exec_id         number       path '@sql_exec_id'
           , status              varchar2(10) path 'status'
           , stats_duration      number       path 'stats/stat[@name="duration"]'
           , stats_elapsed_time  number       path 'stats/stat[@name="elapsed_time"]'
           , stats_cpu_time      number       path 'stats/stat[@name="cpu_time"]'
         ) x1
    where sql_id = 'c1tb2666n5rfx'
    and sql_exec_id = 16777668
    
  • 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);

Maybe you are looking for