Name of the node XML TreeControl

Hello
I have a tree control that is built using XML from an HTTP service call. Based on the node selected in the tree, I would like to add a conditional in my click function that performs an action that is different, based on the name of the XML node. I can retrieve the attributes of the node by using "mytree.selectedItem.@attribute" but I do not know how to retrieve the name of the node itself real?

Can anyone provide me with the proper syntax?

Thank you!

There are two methods:
XML. Name();
and xml.localName ();
I think that they the same æ unless you use namespaces.

Tracy

Tags: Flex

Similar Questions

  • E4X: How to get the items that contain a string pattern in the name of the node?

    Is there a way to retrieve the children of an XMLList where the name of the node of a child contains a template string?

    For example:

    account <>

    < XblahX / >

    < cow / >

    < YblahY / >

    < / recording >

    How to get items in folder which has a node name that contains the string "blah"?

    var rec: XML =

    ;

    var r: RegExp = / blah /;
    var elems:XMLList = rec.children (). (localName () *.search (r) >-1);
    trace (elems. ToXmlString())

  • How to get the name of the node?

    Hi guys,.

    I have a path that looks like this 1stLevel/root/dynamicLevel

    How can I get the name of the node in dynamic level when it come with different node name so that I can catch it in a variable?

    This can change according to the author of the application

    root/1stLevel/dynamicLevel1
    root/1stLevel/dynamicLevel2
    root/1stLevel/dynamicLevel3
    root/1stLevel/dynamicLevel4

    What software? In OSB try Assign with this expression:

    fn:name($body/root/firstLevel/*[1])
    

    In addition, you cannot use element named "1stLevel" because it starts with number.

  • Can we change the name of the XSD/XML in Bpel node

    Hello

    I have here is the structure of the xsd that I created and captured the XML in it, in my Bpel process flow:

    nodes <>
    < NodeFirst >
    < NodeSecond >
    < / node >

    While he will send customer, I need to rename nodes as:

    nodes <>
    * < node / > *.
    * < node / > *.
    < / node >

    The names of the two nodes must be changed to "Namesake" in XML Final.

    Is it possible that we can do this, appreciate any help on this.

    Thank you
    Puneet

    It means that you must create a xsl map in which you "create" the exact names and fill them with data from the 'old' elementnames.
    in this case the transformation will do the same if you rename the element

    or use bpelx:rename
    http://download.Oracle.com/docs/CD/E12483_01/integrate.1013/b28981/manipdoc.htm#CIHFJJGB

  • Remove the node XML with E4X

    How can I do? I tried "Delete node;" or even = null;

    OK, I found a solution to this...

    First, the problem was mainly that I was trying to do this dynamically, without really say the name of the child I want to remove.

    So, if it's only what needed to be done:
    delete xml.hello;
    and the XML looks like

    something

    It would work. But now I tried to remove a node without knowing the name of it.
    but it works when I did like this:

    var node: XML = XML (checkbox.data.node);
    var Noeudparent: XML = node.parent ();
    Remove nodeParent [node.name ()] [node.childIndex ()];

    And it works!

    I don't know if it's the best way, but it works and I am pleased...

  • remove the node xml with DELETEXML

    Hi all,

    I need a little help. I'm trying to delete a node by using DELETEXML, but my script does not work. It run correctly, but it returns the same xml file.

    This is my script:

    Set serveroutput on

    set linesize 1000

    set verify off

    DECLARE

    l_xmlType XMLTYPE.

    BEGIN

    dbms_output. Enable (500000);

    l_xmltype: = XMLTYPE.createXML ("< ns0:msg xmlns:ns0 ="http://namespace"> ")

    < ns0:Intestazione >

    < ns0:Operazione >

    < ns0:Tipo > DE9GM < / ns0:Tipo >

    < ns0:Ticket > 1031450000607 - 001 - 20131023021515 < / ns0:Ticket >

    < ns0: Data > 2013 - 09 - 30 < / ns0: Data >

    < / ns0:Operazione >

    < / ns0:Intestazione >

                                    </ns0:msg>'); -CREATION of XML

    dbms_output.put_line('ORIGINAL file:'|| l_xmltype.) GETSTRINGVAL);

    SELECT DELETEXML (l_xmltype, ' / ns0:msg / ns0:intestazione ',' xmlns:ns0 = "http://namespace")

    IN l_xmltype

    DOUBLE;

    dbms_output.put_line('OUTPUT file:'|| l_xmltype.) GETSTRINGVAL);

    END;

    That's what I would like to have:

    " < = xmlns:ns0 ns0:msg ' http://namespace ">

    < ns0:Intestazione >

    < / ns0:Intestazione >

    < / ns0:msg >


    But I have the same original xml.

    I'm using Oracle Database 11 g Enterprise Edition 11.2.0.3.0

    Ciao,.

    the XPATH expression is invalid, because it is all lowercase, but it is case sensitive.

    Also the XPATH expression was not correct (missing "ns0:Operazione").

    Try this:

    DELETEXML (l_xmltype, ' / ns0:msg / ns0:Intestazione / ns0:Operazione ',' xmlns:ns0 = "http://namespace")

    Kind regards.

    Alberto

  • name of the node level list 1

    Hello

    I'm working on a database of Oracle 11 g Enterprise Edition Release 11.2.0.3.0.

    I have the t_type_asset_configuration of table (number of i_type_asset_configuration, asset_setting varchar2, xmltype value) which currently has 2 folders:

    1, "cma_layout."

    '<>value '.

    vehicle < search > < / search >

    vehicle of < create_new > < / create_new >

    vehicle from < view > < / view >

    vehicle of < list > < / list >

    "< / value >.

    1, "fma_layout."

    '<>value '.

    < fields >

    < field label = "fma_asset_name" action = "concatenate1" >

    "< postfix column ="-"> alias < / column >.

    brand_vehicle < column > < / column >

    model < column > < / column >

    < style column = "bold" > plate_number < / column >

    < / field >

    < field label = "fma_user" > vehicle_user < / field >

    < field label = "fma_last_contact" > datetime < / field >

    < field label = "fma_address" action = "Concatenate" >

    "< postfix column ="-"style ="bold"> spacetarget < / column >"

    < column > address < / column >

    < / field >

    "< field label = postfix"fma_odo"=" km "> mileage_counter < / field >"

    < field label = "fma_ign" > start < / field >

    < field label = "fma_group" > group_name < / field >

    < field label = "fma_event" > has_recent_alarms < / field >

    < field label = "fma_info" > id_data < / field >

    < other_field >

    id_vehicle < field > < / field >

    id_user < field > < / field >

    id_device < field > < / field >

    id_asset < field > < / field >

    id_vehicle_user < field > < / field >

    id_data_address < field > < / field >

    id_data_datetime < field > < / field >

    id_data_last_position < field > < / field >

    id_space_target < field > < / field >

    id_group < field > < / field >

    has_hour_counter < field > < / field >

    latitude < field > < / field >

    longitude < field > < / field >

    < / other_field >

    < / fields >

    pk_evolution.get_vehicle_list < query > < / query >

    "< / value >.

    My goal is to create a view with module_value, where module is the name of the 1st level (nodes under the node < value >) node and module_value is the inner text, module, asset_setting, i_type_asset_configuration.

    I wrote this query:

    SELECT c.i_type_asset_configuration,

    c.asset_setting,

    module x.object_value.getRootElement)

    OF t_type_asset_configuration c,.

    XMLTABLE ('/ / *' in passing c.value) x

    WHERE c.asset_setting in ('cma_layout', 'fma_layout')

    AND x.existsNode (' / * / *') = 0;

    who works for the cma_layout, in fact, I get the Recordset:

    1 cma_layout search

    1 cma_layout create_new

    1 cma_layout view

    1 list of cma_layout

    but not for the fma_layout, obtaining:

    1 column of fma_layout

    1 column of fma_layout

    1 column of fma_layout

    1 column of fma_layout

    1 fma_layout field

    1 fma_layout field

    1 column of fma_layout

    1 column of fma_layout

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout field

    1 fma_layout request

    The goal is to have to fma_layout:

    fields 1 fma_layout

    1 fma_layout request

    Do you have any suggestions on how to stop the 1st level node list?

    Thanks in advance,

    Samuel

    Hello

    Do not use a descendant axis if you do not want to see descendants.

    In addition, getRootElement() and existsNode() are deprecated now.

    Here's one way:

    SQL > select t.i_type_asset_configuration

    2, t.asset_setting

    3, x.module

    4, x.module_value

    t_type_asset_configuration 5 t

    6, xmltable)

    7 ' / value / *'

    8 passage t.valeur

    path of varchar2 (30) 9 columns of the module "local - name (.)".

    10 road of varchar2 (2000) to module_value "text()".

    (11) x

    12;

    I_TYPE_ASSET_CONFIGURATION ASSET_SETTING MODULE MODULE_VALUE

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

    1 cma_layout research vehicle

    1 vehicle cma_layout create_new

    1 vehicle from view cma_layout

    1 vehicle list cma_layout

    fields 1 fma_layout

    1 pk_evolution.get_vehicle_list of motion fma_layout

    6 selected lines

  • Domain name in the crossdomain.xml file

    Hello

    I have a Flex application that accesses data from an external system that is hosted by a 3rd party. We want to maintain a crossdomain.xml on this system, but not sure what should be the name of the system.

    We have 3 out of the intellectual property and in the file corssdomain should be the outgoing our IP domain or IP address from our local server on which flex is running, or both.

    Please give me advice.

    Thank you

    Colinet

    It should be everything that can appear after http:// in the URL for sovereign wealth funds

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • How to test for the node XML empty?

    If (selectedImage.detail! = "")

    works with
    < picture detail = "" >
    < / image >

    but not

    < image >
    < detail > < / details >
    < / image >


    Hope that makes sense for a person, can't think really how to explain it better, I'm sure it's a fairly simple thing

    Quote:
    Posted by: ntsiii
    I did not understand. You try to search the nodes in detail where the text node is empty?
    Tracy

    Yes - for that I can't ignore explicitly their.

    Seems that all I had to do was if(!selectedImage.detail)

    Thanks for the reply - despite my not knowing how to phrase the question.

  • How to get the value of the node xml strings

    Hello world

    I have the table with a varchar2 column that contains the XML nodes like this
    create table test (REC_ID Number(8), xml_value varchar2(4000));
    insert into test values (1000, '<id=''10'' data=''some data'' ref=''qq1''/> <id=''12'' data=''some other data'' ref=''qw2'' />');
    insert into test values (1111, '<id=''99'' data=''some X data'' ref=''rty''/> <id=''88'' data=''final data'' />  <id=''77'' data=''final data2'' />');
    for a line, there are several basic xml nodes. I want to get a result like this:
    Rec_ID  xml_value_ID  xml_value_DATA
    1000     10               some data
    1000     12               some other data
    1111     99               some X data
    1111     88               final data
    1111     77               final data2
    What would be the best way of performance to achieve that?

    Thank you very much

    I just thought that this could be done by tech oracle xml.

    It would be possible if it was XML data, but it is not.

    A valid XML element have a tag name, for example:

    
    

    That being said, we can cheat and generate a valid XML fragment out of your data by inserting the name of tag in front of 'id ':

    SQL> select t.rec_id
      2       , x.xml_value_id
      3       , x.xml_value_data
      4  from test t
      5     , xmltable(
      6         '/item'
      7         passing xmlparse(content replace(t.xml_value, '
    

    Second option, the analysis with regexp:

    SQL> select rec_id
      2       , regexp_substr(x.column_value, 'id=''([^'']+)''', 1, 1, null, 1) as value_id
      3       , regexp_substr(x.column_value, 'data=''([^'']+)''', 1, 1, null, 1) as value_data
      4  from test t,
      5       table(
      6         cast(
      7           multiset(
      8             select regexp_substr(t.xml_value, '<[^>]+>', 1, level)
      9             from dual
     10             connect by level <= regexp_count(t.xml_value, '<[^>]+>')
     11           )
     12           as sys.odcivarchar2list
     13         )
     14       ) x
     15  ;
    
       REC_ID VALUE_ID           VALUE_DATA
    --------- ------------------ -----------------------
         1000 10                 some data
         1000 12                 some other data
         1111 99                 some X data
         1111 88                 final data
         1111 77                 final data2
     
    

    (needs 11 Oracle for the function REGEXP_COUNT)

  • Limitation of characters in the name of the node

    Hello

    Can anyone tell where the character limit is defined for a node name (name of Member).
    I want to add a member in a hierarchy, but I does not allow me to enter the following characters:
    (space), + () & %. Whenever I type the character, it just as the keypad has been locked. No message or
    error message indicating the character is not allowed due to a specific validation.

    Thank you.

    Lebon:

    You can do it as well, but you must create a separate property that store this name derived.
    Create a property that looks to the top of the hierarchy, takes its value from the Name property, but replaces the characters you don't want with other characters.

    Let me know if you need more information on this.

    Tanuja

  • How to change the host names of the nodes after deployment?

    Help, please

    Hi, hope can resolve this answer, let me know once this is

    don't forget to backup the files before modifying

    If you use intellectual property on configurations, then it will not break. You need to change /etc/openstack-dashboard/local_settings well and change this line

    ALLOWED_HOSTS = ['192.168.1.1', '*', 'localhost', ]

    You must also change your configuration of http in/etc/httpd/conf.d

  • XML: How to get the value of the node when the node of pasing as a parameter name

    Hello

    I've got some xml:

    var xmlData:XML = 
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    

    So, I want to read the value of specific node based on a value passed to a function. .

    var buttonID = new Button;
    
    var imageID = new Image;
    
    var labelID = new Label;
    
    
    getNodeValue(buttonID); //the value here is set dynamically
    
    private function getNodeValue (nodeName:String):void {
    
    trace (xmlData.nodeName)                      //doesn't work
    
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    
    }
    

    I don't know how to get the value when the name of the node is changed dynamically.

    use:

    getNodeValue(buttonID); //the value here is set dynamically
    
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])
    }
    
    
  • Retrieves the name of the root of a XML package

    Hello
    I thought it would be simple, but cannot work on how I can extract the name of the node root for a XML package
    I was going to just use xmltype.extract, but I can't work on the paameter of xpath to get this working.
    Any of you smart people you know?

    Is it possible to do it in pure PLSQL, without the overhead associated with a change in context with the SQL engine?

    Maybe it's

    SQL> declare
      2
      3  t xmltype:=xmltype('
      4  
      5  12688f8ac8aa6310VgnVCM10000078ccc70a____
      6  Brooklyn
      7  
      8  ');
      9
     10  begin
     11
     12  dbms_output.put_line('1-' || xmltype.getRootElement(t));
     13  dbms_output.put_line('2-' || t.getRootElement());
     14
     15  end;
     16  /
    
    1-RESULTS
    2-RESULTS
    
    PL/SQL procedure successfully completed
    
    SQL> 
    
  • Determine the depth of the node

    I might not be using the right search terms, but I can't find a single article anywhere to determine how deep a node exists within an XML tree.

    I can't use the name of the node, because the sections may exist within the sections, as you can see (and I can't change the format of the XML document). I need to be able to get a numeric value of 0 for a node section of 'high-level' (ie: 'Home') and 1 for a section within a section node node (ie: "Subnav1"), and so on.

    Thanks in advance :)

    You can write a function for that. something like the following. (ok?)

    Adam

Maybe you are looking for

  • FF 12.0 records the images of every webpage I visit my cache files. Is this a feature or a malware?

    12.0 FF is save images at the top of every Web page I visit in my profile cache folders.I'm on Mac OS X 10.6.8 build 10K 549, MacBook Intel Core 2 Duo 2 GHz, 1 GB RAM, 160 GB HD, and Intego VBX6, updates on a daily basis.In the Terminal, the command

  • Stop one under VI VI main

    Hello I have an application requiring an acquisition of data via tcp. In the main loop, I wait for teaching (tuned for the new tcp connection), and if I read a particular string, I start the acquisition using a under VI. If I read another channel I n

  • Mail merge e-mail with Windows Mail.

    I'm trying to merge a document via Windows Mail. Outlook Express has been replaced by Windows Mail in Windows Vista.Windows Mail has the MAPI ability? If I switch to Windows 7, Windows 7 mail will then be MAPI technology?Or I have to download Outlook

  • Cannot commicate with the main DNS (202.27.158.40) Server error

    Recently, I turned on my laptop and it was connected to the internet, I could access Skype and the steam but I can not use the real internet (Google Chrome or Internet explorer), I clicked on diagnosing problems and he said "unable to communicate wit

  • How to get the product key of Windows 8 in Windows 8 OEM preload

    Hi guys I had a problem with my Windows 8. as we know, we can find win 7 product key by clicking on the computer properties and we can find it in the folder i386, but where do I find my windows product key for win xp preloded OEM, OS 8 was Lenovo, I