How can I me parent XML node value?

When I look at the value of attributes «0_0_0» How can I get the value of the parent node.

var myxml:XML = < course >

< leval0 id = "1" levalid = "0" >

< leval1 id = '1' levalid = "0_0" >

< pages id = '1' levalid = "0_0_0" >

< page id = "1" / >

< / pages >

< pages id = "1" levalid = "0_0_1" >

< page id = "1" / >

< page id = "2" / >

< / pages >

< / leval1 >

< leval1 id = "2" levalid = '0_1' / >

< leval1 id = "3" levalid = "0_2" / >

< / leval0 >

< / course >;

For a given node, the parent node is node.parent ().

If you want to get the parent of the node with levalid "0_0_0", follow these steps:

var myxml:XML= 
                            
                                
                                    
                                        
                                    
                                    
                                        
                                        
                                    
                                
                                
                                
                            
                        ;

var parentNode:XML = myxml..*.(attribute("levalid") == "0_0_0")[0].parent();
trace(parentNode);

Tags: Adobe Animate

Similar Questions

  • How can I obtain the XML

    Hello

    I have not followed the example of XML file and I want to get items from this XML file. How can I get the XML elements?

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
     
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
     
     
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
     
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    XML
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
      <skos:Concept rdf:about="http://my.site.com/#Acoustics">
        <skos:ID>12033</skos:ID>
        <skos:NO>150</skos:NO>
        <skos:ANO>232</skos:ANO>
        <skos:prefLabel>Acoustics</skos:prefLabel>
        <skos:historyNote>http://www.theiet.org/resources/inspec/</skos:historyNote>
        <skos:altLabel rdf:resource="http://my.site.com/#Sound"/>
        <skos:broader rdf:resource="http://my.site.com/#Physics"/>
        <skos:narrower rdf:resource="http://my.site.com/#Aeroacoustics"/>
        <skos:narrower rdf:resource="http://my.site.com/#Vibrations (Acoustics)"/>
        <skos:narrower rdf:resource="http://my.site.com/#Acoustic materials"/>
        <skos:THES>PHYS</skos:THES>
        <skos:STA>Candidate</skos:STA>
      </skos:Concept>
      <skos:Concept rdf:about="http://my.site.com/#Sound">
        <skos:NO>450</skos:NO>
        <skos:ID>1483636</skos:ID>
        <skos:USE>Acoustics</skos:USE>
      </skos:Concept>
    </rdf:RDF>
    Thanks in advance.

    Published by: 876991 on July 26, 2012 12:02

    However, if I need to include "skos: narrower" elements then what I have to do? I have to write PL/SQL code to this and this information separately? or I can get the items in the recurring SQL query?

    I knew you would ask this, which is why I predicted in my previous answer:

    However, if you want to retrieve recurring nodes such as , you must decide how you want the output to look like (collections nested etc..).

    So, how do you store repetitive items?

    For example, you can use a collection type:

    create type narrower_t is object ( res varchar2(2000) );
    /
    
    create type narrower_coll is table of narrower_t;
    /
    
    select x.ID
         , x.NO
         , cast(
             multiset(
               select res
               from xmltable(
                      xmlnamespaces(
                        'http://www.w3.org/1999/02/22-rdf-syntax-ns#' as "rdf"
                      , 'http://www.w3.org/2004/02/skos/core#' as "skos"
                      )
                    , '/skos:narrower'
                      passing x.narrowers
                      columns res varchar2(2000) path '@rdf:resource'
                    )
             )
             as narrower_coll
           ) as narrowers
    from th_xml t
       , xmltable(
           xmlnamespaces(
             'http://www.w3.org/1999/02/22-rdf-syntax-ns#' as "rdf"
           , 'http://www.w3.org/2004/02/skos/core#' as "skos"
           )
         , '/rdf:RDF/skos:Concept'
           passing t.in_file_1
           columns
             ID         number       path 'skos:ID'
           , NO         number       path 'skos:NO'
           , narrowers  xmltype      path 'skos:narrower'
         ) x
    ;
    
  • How to determine in an XML node exists in Coldfusion

    If I have XML that looks like this:

    <>Manifesto

    < State ID = "20" name = "State 2" >

    John.Black < person > < / person >

    < / state >

    < State ID = "30" name = "State 2" >

    Bill.DOE < person > < / person >

    < group > Group2 < / group >

    < / state >

    < / manifesto >

    Where < group > can or may not exist under < status >, how can I determine if < group > exists when I'm parsing this XML file?

    This is the code that I currently work with:

    < cfset szXMLFile = "Manifest.xml" >

    < cfset XMLDoc = xmlParse (szXMLFile) >

    < cfset StateNodes = xmlSearch (XMLDoc, '/ manifest/state') >

    < cfoutput >

    < = cfloop '1' to = "#ArrayLen (StateNodes) ' # ' index 'i' = >"

    < cfset StateXML = xmlparse (StateNodes [i]) >

    < cfloop index = 'p' = '1' to = "#ArrayLen (StateXML.state.person) #" >

    < cfoutput > person: #StateXML.state.person [p] .xmltext # < / cfoutput > < br / >

    < / cfloop >

    < cfloop index = 'g' = '1' to = "#ArrayLen (StateXML.state.group) #" >

    < cfoutput > person: #StateXML.state.group [g] .xmltext # < / cfoutput > < br / >

    < / cfloop >

    < / cfloop >

    < / cfoutput >

    I guess I could put just blocks < try > < capture > integer where I am referencing < group > and if there isn't, I'll just he manage that way - but this seems such a hack.  Is there a 'real' way to determine if the node actually exists?

    Thank you!

    Person: #StateXML.state.group [g] .xmltext #.

  • How can I delete a registry subkey value?

    Hello

    I have w7-64 b and b LV2013-64. I can read/write a subkey value. Also, I can delete a subkey. But how can I remove a value from subkey only?

    Thank you.

    Delete Value.vi registry of palette Windows registry access screws ?

  • How can I config my xml doc to allow google ajax feed loader

    How can I configure my config.xml file to allow my app makeup and get back the google ajax request feed.

    My code below does not work:

    subdomains of http://Ajax.googleapis.com"="true"/ >

    Wow, after a lot of research this code below works for me;

    subdomains of http://Ajax.googleapis.com"="true"/ >



  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • How can I get a session state value in my apex or DML text field

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    dave_414 wrote:

    I put a session state in my procedure, in my text field in my I want to get the value of the form region. I try in my text field of the form in the default region, I try

    BEGIN

    APEX_UTIL.GET_SESSION_STATE('USER_SECURITY_PIN');

    END;

    but this does not seem to get the PIN of the session

    How can I do this please

    Depends on the Type of default property item.

    Use a static text with Substitutions of State of Session with a string substitution of static text:

    &USER_SECURITY_PIN.

    or the body of the PL/SQL function (for example):

    return apex_util.get_session_state('USER_SECURITY_PIN');

    or Expression of PL/SQL with a bind variable reference:

    :user_security_pin

  • How can I query the XML file that is stored as a CLOB data?

    Hi people,

    Please see below the example XML file, which is stored in 'os_import_docs', 'document' as a CLOB column.

    I would like to ask this XML file using some select SQL.


    How can I query form below XML?
    <?xml version="1.0" encoding="UTF-8"?>
    <etd>
      <header>
        <AR>000000000</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>H</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>21:18</CL>
        <CW>225</CW>
        <CX>0</CX>
        <CF>SS-CZL18</CF>
        <DV>2</DV>
      </header>
      <account_group id="234">
        <account id="234">
          <invoice id="000742024">
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>A</AL>
              <BZ>.</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY>602718709</AY>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>L</AL>
              <BZ>Mike Tyson</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY/>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <detaildc CH="0032" AB="234" BS="11888954" BB="32" BA="CZ" AT="" CI="7077329000002340342" AU="" DU="1Z48395" CB="CZK">
              <dc>
                <AW>0</AW>
                <CT>D</CT>
                <CU>C</CU>
                <BY>31-10-2012</BY>
                <CA>25-10-2012</CA>
                <CV>8151</CV>
                <BT>12111</BT>
                <CJ>1</CJ>
                <AM>0</AM>
                <DR>PC</DR>
                <DS/>
                <DO>25-10-2012</DO>
                <DQ>18:42</DQ>
                <CE>1</CE>
                <BH>8151</BH>
                <CY>8151 SHELL MALKOVICE P</CY>
                <DP>049336</DP>
                <DT/>
                <BQ/>
                <BR>500000</BR>
                <CN>30</CN>
                <CM>030</CM>
                <BO>160,00</BO>
                <BF>38,900</BF>
                <BC>6224,00</BC>
                <BI>32,417</BI>
                <CD>B</CD>
                <BG>0,600</BG>
                <BK>31,817</BK>
                <BJ>0,000</BJ>
                <DI>8</DI>
                <BP>20,00%</BP>
                <CC>CZK</CC>
                <BM>5090,67</BM>
                <BN>1018,13</BN>
                <BL>6108,80</BL>
                <BD>5090,67</BD>
                <BE>1018,13</BE>
                <DW>6108,80</DW>
                <CO>Nafta</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>1</DG>
              <CN>30</CN>
              <CM>030</CM>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ>20,00%</DJ>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA>P</DA>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>2</DG>
              <CN/>
              <CM/>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>19</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>8</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
          </invoice>
        </account>
      </account_group>
      <footer>
        <AR>999999999</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>T</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>23:04</CL>
        <CW>225</CW>
        <BX>1</BX>
        <CS>7</CS>
        <BW>0000000000000610880</BW>
      </footer>
    </etd>
    example - does not:
        select  x.*
        from os_import_docs d
             ,XMLTABLE('/etd/header'
                        PASSING httpuritype(d.document).getXML()
                        COLUMNS 
                           response_status varchar2(50) PATH 'AR'
                        )  x
       where d.object_id = 2587058
         and rownum = 1;  
    
     
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6196, maximum: 4000)
    Thank you very much
    Tomas

    No error on my side.

    I just put in the comments the two columns:

    SQL> SELECT h.AR
      2       , h.CK
      3       , h.CF
      4       , i.AR4
      5       , i.AD
      6       , ddc.*
      7       --, i.AR5
      8       --, i.DG
      9       , ddn.*
     10       , h.CZ
     11       , h.BU
     12       , h.CH
     13       , h.CK7
     14       , h.CL
     15  FROM os_import_docs d,
     16       XMLTable(
     17         '/etd'
     18         PASSING xmlparse(document d.document)
     19         COLUMNS
     20           AR        varchar2(10) PATH 'header/AR'
     21         , CK        varchar2(10) PATH 'header/CK'
     22         , CF        varchar2(10) PATH 'header/CF'
     23         , CZ        varchar2(10) PATH 'footer/CZ'
     24         , BU        varchar2(10) PATH 'footer/BU'
     25         , CH        varchar2(10) PATH 'footer/CH'
     26         , CK7       varchar2(10) PATH 'footer/CK'
     27         , CL        varchar2(10) PATH 'footer/CL'
     28         , invoices  xmltype      PATH 'account_group/account/invoice'
     29       ) h
     30     , XMLTable(
     31         '/invoice'
     32         PASSING h.invoices
     33         COLUMNS
     34           AR4       varchar2(10) PATH 'da/AR'
     35         , AD        varchar2(20) PATH 'da/AD'
     36         --, AR5       varchar2(10) PATH 'dt/AR'
     37         --, DG        varchar2(10) PATH 'dt/DG'
     38         , detaildc  xmltype      PATH 'detaildc'
     39         , detaildn  xmltype      PATH 'detaildn'
     40       ) i
     41     , XMLTable(
     42         '/detaildc'
     43         PASSING i.detaildc
     44         COLUMNS
     45           DU        varchar2(10) PATH '@DU'
     46         , CB        varchar2(10) PATH '@CB'
     47         , DO        varchar2(10) PATH 'dc/DO'
     48         , CY        varchar2(20) PATH 'dc/CY'
     49         , BM        varchar2(10) PATH 'dc/BM'
     50         , CO        varchar2(30) PATH 'dc/CO'
     51       ) (+) ddc
     52     , XMLTable(
     53         '/detaildn'
     54         PASSING i.detaildn
     55         COLUMNS
     56           CI        varchar2(20) PATH '@CI'
     57         , BY_       varchar2(10) PATH 'dn/BY'
     58         , BM6       varchar2(10) PATH 'dn/BM'
     59       ) (+) ddn
     60  ;
    
    AR         CK         CF         AR4        AD                   DU         CB         DO         CY                   BM         CO                             CI                   BY_        BM6        CZ         BU         CH         CK7        CL
    ---------- ---------- ---------- ---------- -------------------- ---------- ---------- ---------- -------------------- ---------- ------------------------------ -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        16-10-2012 ASFINAG POST_MAUT    1940,60    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        17-10-2012 ASFINAG POST_MAUT    1328,10    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        23-10-2012 ASFINAG POST_MAUT    1831,80    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        24-10-2012 ASFINAG POST_MAUT    867,30     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48396    EUR        23-10-2012 ASFINAG POST_MAUT    2749,00    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    
    
    000000000  2012-10-31 SS-CZL19   EI3496334  ING. ANTONIN GURICA, 1Z48397    HUF        29-10-2012 ALLAMI AUTOPALYAKEZE 233,50     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4DG3954  ING. ANTONIN GURICA,            EUR        22-10-2012 1047061              24267,70   Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4E34269  ING. ANTONIN GURICA,            EUR        23-10-2012 TBS VIACARD          5671,60    Dalnicni poplatek                                                         SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI8QF1520  ING. ANTONIN GURICA, 1Z48395    EUR        29-10-2012 LAMAIN               200,10     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    78 rows selected
     
    
  • How can I build a list of value form a single record in the table

    I have the recording of the following table

    : User_Id: Defaule_Role: Role_1: Role_2: _3 role:
    ________________________________________________
    : 25: 1: 2: 3: 5:


    How can I display this record as a list of value

    If you use an Oracle 11 g server behind the scenes, consider using the SQL UNPIVOT command. Check out the blog of Tim Hall on the UNPIVOT operator control:

    http://www.Oracle-base.com/articles/11g/PivotAndUnpivotOperators_11gR1.php

    Note that you need to use a read-only view in British Colombia ADF object to achieve this.

    DMI

  • How can I update the training App values?

    I forgot to put an end to my session of training-how can I change/adapt the duration setting

    Hello

    It is not possible to change the length of the workout, but you can delete the workout.

    -On your iPhone, in health app (red heart on a white background), go to: health data > Fitness > workout sessions - swipe to the left on the drive, and then press DELETE / Trash.

  • How can I increase the number of value, OPEN_CURSORS...

    Hi all

    I will carry out more than 4,500 insert statements in a table, and at some point that I get this error maximum open cursors exceeded, I searched the Internet and found the answers why it is implemented.

    How can I increase the number of OPEN_CURSORS? Is it possible to over 4000?

    Thank you.

    How can I increase the number of OPEN_CURSORS? Is it possible to over 4000?

    .
    Try this,

    change the system
    set open_cursors = 4000;

    While increasing the number of more than 10000 there are a of other factors to consider as the sizes of pga, LMS etc.

  • How can I change the list of values for elements of type display in a VAC in ID format to the format of name?

    I have concert and venue of 2 tables. I imported xml file dummy values and data are imported to db with success. When I go to ACC, afer, select my EventsRepository-> show-> click on list. display the results in ID formatEventRepository:Concert:70701.

    Can someone like me how to show my results?

    "You must set the display property ="> " in the element-descriptor tag."

    for example

    See you soon

    R

  • How can I quickly get its main value of amplitude and frequency of measurement of Spectra

    See attached vi. Very well, the chart, I see that the dominant amplitude is 3 with dominant frequency of 100 Hz. But how to do that 3 and 100 of the value from the waveform data in a variable double?

    I think I have the output waveform for measurement of the Spectra vi table and then do some math on it maybe high percentile or something, but that is awkward! Is there a special feature that can quickly the value of amplitude and dominant frequency?

    O! blind me! Use max array and index. Solved already!

  • How can I parse the XML file using the Oracle's Sql query.

    Hi all
    I have an XML file that must analyze and display the result according to the following example
    Can you please recommend me an approach to get the result.

    For example, here is my XML:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xmlns:pi = "urn:com.workday / picof pi: Extract_Employees" >
    < IP: employee >
    < Additional_Information: pi > < pi: pi function: PriorValue = "" > Intern - masteri¿½s < / pi: function >
    < / pi: Additional_Information >
    < / pi: employee >
    < / pi: Extract_Employees >

    Databases:

    Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - production

    SQL > SELECT * FROM NLS_DATABASE_PARAMETERS;

    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS.,.
    WE8ISO8859P1 NLS_CHARACTERSET
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI. SSXFF AM
    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    BINARY NLS_COMP
    NLS_LENGTH_SEMANTICS BYTES
    NLS_NCHAR_CONV_EXCP FAKE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.3.0



    The Xml file above with UTF-8 character sets which is multi bytes.

    But in my character database is WE8ISO8859P1 for example ISO-8859-1 (single-byte character set)

    SQL > SELECT extractValue (Value (x) ', ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof ' ')
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))


    which gives the following error:

    Error:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00200: could not convert from UTF-8 encoding to ISO-8859-1
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 295
    ORA-06512: at line 1

    Also I tried with this
    SQL > SELECT convert (extractValue (Value (x), ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof"'),'WE8ISO8859P1 ', 'UTF8'))
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))

    The same error is according to the above error message.

    Please help in this regard.

    Thank you and best regards,
    Sandrine

    You know the code of real character behind "" or you receive the file like that?

    For the record, "" is the wildcard of UTF-8 (0xEFBFBD), so that the original character of the means has already been replaced and that very probably the file was not coded properly in the first place.

    With respect to the resolution of the problem, try another method to read the file:

    SQL> select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
    
    VALUE
    ----------------------------------------
    WE8ISO8859P15
    
    SQL> SELECT x.*
      2  FROM XMLTable(
      3         XMLNamespaces(default 'urn:com.workday/picof')
      4       , '/Extract_Employees/Employee'
      5         passing xmltype(
      6                   dbms_xslprocessor.read2clob(
      7                     'COP_DIR'
      8                   , 'XML_Issue_227176.xml'
      9                   , nls_charset_id('AL32UTF8')
     10                   )
     11                 )
     12         columns job_title varchar2(30) path 'Additional_Information/Job_Title'
     13       ) x
     14  ;
    
    JOB_TITLE
    ------------------------------
    Intern -  Master¿s
     
    
  • How can I put more than one value in a variable?

    Hi, very new for PLSQL, but someone could please help with this problem?

    If I do the following, it works fine:

    Select salary, the name of employers where salary = (select max (wages) of employers);

    But if I do it in PLSQL im stuck in how you allocate 2 values in a variable.

    I can do the following using fair pay:

    declare

    v1 varchar2 (30);

    Start

    Select salary in v1 of employers where salary = (select max (wages) of employers);

    end;

    However, if I try to select salary, name in v1 of employers where salary = (select max (wages) of employers);

    I get the following error:

    ORA-06550: line 65, column 31:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 65, column 4:
    PL/SQL: SQL statement ignored


    Thank you very much


    Thank you very much this is the answer - incredibly fast response!

    Edited by: 882839 01-Sep-2011 08:51
    select salary,name into v1 ....
    

    You cannot select two columns and put them in a variable. You must have two variables to store two values.

    Like this:

    declare
    
    v1 varchar2 (30);
    v2 employers.name%type;
    begin
    
      select salary,name into v1, v2 from employers where salary = (select max (salary) from employers) ;
    
    end;
    

Maybe you are looking for

  • Toshiba Tecra R840-10z selling on ebay - still in warranty

    Price is £299 - if you're interested, let me know :). Excellent condition and still in warranty, so peace of mind.

  • Only one execution at the time the application

    What I'm trying to accomplish: that only cover the execution of the application can run simultaneously. Is there a setting of TestStand I'm not find which would allow this? As a solution, I do something along the lines of aging on execution buttons i

  • Is there a way to get the total number of samples to a TDMS file?

    I'm looking at the documentation for the function of properties Get TDMS and I see that it has a property: wf_samples which "represents the number of samples in the first data segment. Is it possible to get the number of samples in, say, the second s

  • WiFi for Deskjet 2540 for Mac

    I have a Mac and I used the 2540 for a while now and recently updated my wireless router, everything worked so far here. I read through and follow the instructions on the Web site but still cannot get the connection wireless connected to the printer

  • Copy / paste doesn't work is not in Microsoft Office word.

    Original title: Windows 7 won't let me copy or cut and paste, all of a sudden he stopped doing work with control etc. does not help it doesn't let me do in the notebook, but just not in word all of a sudden, it stopped to work with control etc. does