Selective extraction from an xmltype variable

I have a fragment of XML -
<Unit name="MAIN UNIT">
<Ops event_type="U1" cause_code="7050" begin_time="2003-06-13T09:38:00">Broken restoring cable</Ops>
     <Ops event_type="GE" cause_code="0001" begin_time="2003-06-03T07:07:03"/>
<Generation begin_time="2003-06-13T00:00:00" end_time="2003-06-13T23:59:59" mwh_produced="229.00" mwh_consumed="0.00"/>
</Unit>
I am trying to extract just the text of an "Ops" fragment. In the above case, the first would be "Broken restoring cable" and the second would be NULL. Using
v_belement.extract('/Ops').getStringVal()
inside of a loop through the array gives me the entire fragment. How can I get just the text?
Bill

Bill,
Try extractValue instead of extract.
Bharathi

Similar Messages

  • Select values from table%ROWTYPE variable into a cursor

    I have a stored procedure which has an OUT parameter of table1%ROWTYPE.
    In future we might have to add more OUT parameters of table2%ROWTYPE etc. But at any point of time only one will have values.
    So instead of having table%ROWTYPE as OUT parameter, can I send these single row ( with variable values) in a cursor, so that declaration part atleast will not change.
    Is it possible to select values from table%ROWTYPE variable into a cursor.
    cursorOUT IS
    SELECT * FROM varREC;
    where varREC is table.ROWTYPE variable.
    Or which is the better solution in this situation.
    Thanks.

    SQL> var a refcursor
    SQL> declare
      2   bb emp%ROWTYPE;
      3  begin
      4   select * into bb from emp where rownum = 1;
      5   open :a for select bb.ename ename, bb.empno empno from dual;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> print a
    ENAME                                 EMPNO
    SMITH                                  7369Rgds.

  • *SELECT: How to select value from cube into variable?

    Hi,
    I have an application that need lots of complex calculations.  Currently I am facing problem in retrieving a value from BPC application/database (BW cube) into a script logic local variable.  Let's say the application has  these  following dimensions
    1.  FYPD ( fiscal yr period. 200901, 200902 etc)
    2.  REGION ( A, B , C , D etc)
    3.  PRODUCT(Product ID)
    4.  VERSION ( ACTUAL, FORECAST etc)
    5.  AMOUNT (Sales Amount, signed data )
    Now I need to extract the sales amount into a local valriable where REGION = "A" and  PRODUCT = "SMK-1234" and FYPD = "200905"  and VERSION = "ACTUAL"
    What's should be the equivalent SELECT command? I tried but could not figure out. Any help?
    Regards
    DipM

    Hi DipM,
    There isn't really a concept of local variables for values in script logic. Instead, you'll want to use *WHEN, *LOOKUP, or MDX statements.
    For example, this will copy the value you mention into the PLAN version:
    *WHEN REGION
    *IS A
    *WHEN PRODUCT
    *IS SMK-1234
    *WHEN FYPD
    *IS 200905
    *WHEN VERSION
    *IS ACTUAL
    *REC(FACTOR=1,VERSION=PLAN)
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    *ENDWHEN
    See *WHEN ([link|http://help.sap.com/saphelp_bpc70sp02/helpdata/en/36/339907938943ad95d8e6ba37b0d3cd/frameset.htm]) and *REC ([link|http://help.sap.com/saphelp_bpc70sp02/helpdata/en/25/8d51050c43496887ddff88f13e5f1a/frameset.htm]) documentation for more.
    As mentioned, you can also use *LOOKUP or MDX statements to look up values and drive calculations in *REC(EXPRESSION=....) statements. This functionality is outlined in the SP02 documentation addendum ([link|http://service.sap.com/~form/sapnet?_SHORTKEY=00200797470000088146&_SCENARIO=01100035870000000202&]).
    In the MS Version of BPC, there is a concept of local MDX variables that work with the specialized *GO script logic statement. This statement is not available in the Netweaver version.
    Ethan

  • Best tool to extract xml when xmltype structure may vary

    Hi
    I was wondering if there is a better option to select data from an xmltype column when the data may be stored in different xml structures? I was using xmlsequence but this would lead to too many unions since the data is stored differently. What are the other alternatives that I may use?

    I have reviewed the contents in the FAQ (great start, thanks!). I am still a little confused now as to how I will parse out the data for inserts into a table. I will ALWAYS insert the document's contents in their entirety. Here's what I've tried. f I want to extract the file (delivered attribute), I can do this:
    select extract(x.file_content,'/hdf5/file/@delivered')
    from xml_stage x;
    This returns ALL the "file delivered" attributes for the whole document - but I'm not sure how to separate them into individual logical records. My output looks like (only a snippet here....):
    20100812042714201008120428152010081206015620100812060156201008120601562010081206015620100812060757....
    Looking in the XML file - the value for the first delivered attribute is 20100812042714, the second record would be 20100812042815, etc.
    What am I missing?

  • Use variables in a SELECT INTO FROM command

    Hi,
    How do I use variables within a select into from command? I want to loop through SYS.DBA_TABLES using a cursor and count the number of rows in a
    selection of tables an then insert into a cardinality table.
    The count of rows will be stored in a variable called CNT, that bit is easy however I need a variable in the FROM clause because that
    value changes with every iteration of the cursor.
    e.g.
    CNT := 0;
    TN := "MyTable";
    select count(*) into CNT FROM TN;
    insert into cardinality (table_name, row_count) values (TN, CNT);
    This is Oracle 9i and I need the row counts in a separate table as they are shipped over to a different environment for analysis purposes.
    Any ideas?
    Regards
    Dave
    Edited by: Yorky001 on Sep 15, 2010 10:32 AM

    Hi,
    Thanks for the info, unfortunately I can get neither example to work on this 9i system, could well be pilot error as I only ever get
    to do any Oracle about once per year. In the first query I have tried both "user_tables" and SYS.DBA_TABLES, same result.
    set serveroutput on size 1000000;
    DECLARE
    row_count INTEGER;
    vstr VARCHAR2(500);
    vstr1 VARCHAR2(500);
    BEGIN
    vstr := 'SELECT count(*) FROM ';
    dbms_output.put_line(vstr);
    FOR i IN (SELECT table_name FROM user_tables WHERE rownum < 10) LOOP
    vstr1 := vstr || i.table_name;
    EXECUTE IMMEDIATE vstr1
    INTO row_count;
    dbms_output.put_line(i.table_name || ':' || row_count);
    END LOOP;
    END;
    This one complains about the execute immediate line.
    Error report:
    ORA-00933: SQL command not properly ended
    ORA-06512: at line 12
    00933. 00000 - "SQL command not properly ended"
    *Cause:   
    *Action:
    BEGIN
    FOR i IN (select
    table_name,
    to_number(
    extractvalue(
    xmltype(
    dbms_xmlgen.getxml('select count(*) c from '||table_name))
    ,'/ROWSET/ROW/C')) count
    from user_tables
    where rownum<6) LOOP
    dbms_output.put_line(i.table_name || ':' || i.count);
    END LOOP;
    END;
    ORA-19206: Invalid value for query or REF CURSOR parameter
    ORA-06512: at "SYS.DBMS_XMLGEN", line 121
    ORA-06512: at line 1
    ORA-06512: at line 2
    19206. 00000 - "Invalid value for query or REF CURSOR parameter"
    *Cause:    The queryString argument passed to DBMS_XMLGEN.newContext was not a valid query, or REF CURSOR.
    *Action:   Rewrite the query so that the queryString argument is a valid query or REF CURSOR.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ORA-00600 occurs on an extract from a large xmlType column

    When running the extract() function where search criteria has been specified (for an existing node), I receive the following error:
    ORA-00600: internal error code, arguments: [qmxdMatchingChildren:overflow-1],[], [], [], [], [], [], []
    However, if I remove the search criteria, the fragment returns no error.
    Both queries have been working successfully on smaller documents.
    Example with criteria:
    SELECT extract(tab.xml_text,'//item[@val="2.1.2.2"]') ITEM
    FROM CUR.ITEMS tab
    WHERE item_id =271;
    Example without criteria:
    SELECT extract(tab.xml_text,'//item') ITEM
    FROM CUR.ITEMS tab
    WHERE item_id =271;
    I'm estimating that the document inside the xmltype column is 4MB.
    The database is Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options.

    Jennifer,
    You may be encountering the following bug:
    Bug# 3617191 See Note 3617191.8
    OERI[qmxdmatchingchildren:overflow-1] using EXTRACT from large XML document
    Fixed: 10.1.0.4, 10.2

  • How to extract from XMLType

    hi
    I have XMLType field in DB. I must select data from this field but I am getting an error.
              OracleCallableStatement st = (OracleCallableStatement)conn.prepareCall (xmlQuery);
                    ResultSet res = st.executeQuery();       
                XMLType  xmltype =null;
                OracleResultSet rs = (OracleResultSet) st.executeQuery(xmlQuery);
                while(rs.next()){
                                            xmltype =(XMLType) rs.getObject("candidate_details");
                            xmltype.extract("/name/text()","/employee").getStringVal();
                           I am getting the following exception:
    java.sql.SQLException
         at oracle.xdb.XMLType.extract(XMLType.java:1427)
         at samplexmltype.XMLTypeForm.btnRead_actionPerformed(XMLTypeForm.java:494)
         at samplexmltype.XMLTypeForm.mav$btnRead_actionPerformed(XMLTypeForm.java)

    If retval contains the whole response including envelope, then obviously it doesn't start at "TICKETCreateRespMsg". You have to use the full path, or a descendant axis, but the former is preferred.
    Be aware of namespaces too, that's a common gotcha with XML.
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2 
      3    retval xmltype := xmltype('<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      4  <env:Header/>
      5  <env:Body>
      6  <TICKETCreateRespMsg xmlns="http://www.testurl.com/webservices/">
      7  <body xmlns="">
      8  <CreateTicket>
      9  <TICKET_NO>A-32758628</TICKET_NO>
    10  <SUMMARY>Test1</SUMMARY>
    11  <ERROR_MSG>Test2</ERROR_MSG>
    12  </CreateTicket>
    13  </body>
    14  </TICKETCreateRespMsg>
    15  </env:Body>
    16  </env:Envelope>');
    17 
    18    v_ticket_no varchar2(30);
    19    v_summary   varchar2(30);
    20    v_error_msg varchar2(30);
    21 
    22    v_ns_map    varchar2(200) := 'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/", xmlns:ns1="http://www.testurl.com/webservices/"';
    23    v_xpath     varchar2(200) := '/env:Envelope/env:Body/ns1:TICKETCreateRespMsg/body/CreateTicket';
    24 
    25 
    26  BEGIN
    27 
    28   SELECT extractValue(retval, v_xpath || '/TICKET_NO', v_ns_map)
    29        , extractValue(retval, v_xpath || '/SUMMARY', v_ns_map)
    30        , extractValue(retval, v_xpath || '/ERROR_MSG', v_ns_map)
    31   INTO v_ticket_no, v_summary, v_error_msg
    32   FROM dual;
    33 
    34   dbms_output.put_line('TICKET_NO = '||v_ticket_no);
    35   dbms_output.put_line('SUMMARY = '||v_summary);
    36   dbms_output.put_line('ERROR_MSG = '||v_error_msg);
    37 
    38  END;
    39  /
    TICKET_NO = A-32758628
    SUMMARY = Test1
    ERROR_MSG = Test2
    PL/SQL procedure successfully completedEdited by: odie_63 on 17 avr. 2012 13:07

  • Selecting record from a variable table

    Hi,
    I need to display the records from a table and the table name is saved in a variable. I am writing the code like
    create or replace procedure test_col as
         t_name VARCHAR2(40);
         V_ID VARCHAR2(10);
         cursor c_table is SELECT TABLE_NAME FROM ALL_TAB_COLS WHERE COLUMN_NAME = 'E_ID';
    begin
         OPEN C_TABLE;
         LOOP
              FETCH C_TABLE INTO T_NAME;
              EXIT WHEN C_TABLE%NOTFOUND;
              DBMS_OUTPUT.PUT_LINE(T_NAME);
              SELECT E_ID INTO V_ID FROM T_NAME;
              DBMS_OUTPUT.PUT_LINE(V_ID);
         END LOOP;     
    CLOSE C_TABLE;
    end;
    Its giving the error as table name doesn't exist. Its taking t_name as the table name but i wan to use the value saved in that variable as the table name;
    Any help..
    Thanks
    Ashish

    CREATE OR REPLACE PROCEDURE test_col
    AS
       t_name   VARCHAR2 (40);
       v_id     VARCHAR2 (10);
       CURSOR c_table
       IS
          SELECT table_name
            FROM all_tab_cols
           WHERE column_name = 'E_ID';
    BEGIN
       OPEN c_table;
       LOOP
          FETCH c_table
           INTO t_name;
          EXIT WHEN c_table%NOTFOUND;
          DBMS_OUTPUT.put_line (t_name);
          EXECUTE IMMEDIATE 'SELECT e_id FROM ' || t_name
                       INTO v_id;
          DBMS_OUTPUT.put_line (v_id);
       END LOOP;
       CLOSE c_table;
    END;
    /

  • Issues with selecting value from XMLType column

    I want to retrieve values from my XMLType column. Can anyone tell me why this works
    select XMLCAST
                XMLQUERY
                   'declare default element namespace  "urn:hl7-org:v3"; (: :)
                    declare namespace voc = "urn:hl7-org:v3/voc"; (: :)
                    $doc/ClinicalDocument/recordTarget/patientRole/patient/name/family'
                    passing CCD_DOC as "doc"
                    returning content
                as VARCHAR2(4000)
         from CCDbut this doesn't?
    select
        ccdid,
        extractvalue(CCD_DOC,'/recordTarget/patientRole/patient/name/given') "given",
        extractvalue(CCD_DOC,'/recordTarget/patientRole/patient/name/family') "family",
        extractvalue(CCD_DOC,'/recordTarget/patientRole/providerOranization/name') "name",
        extractvalue(CCD_DOC, 'title') as Title
    from CCDwhere ClinicalDocument is the root element?
    I don't get any errors from the second one but the three XML-derived columns are null. The values are not retrieved while the values ARE retrieved using the first method.
    Thanks!

    XMLTable..
    select x.*
      from CCD,
           XMLTable
             xmlNamespaces
               default 'urn:hl7-org:v3',
               'urn:hl7-org:v3/voc' as "voc"
             '$doc/ClinicalDocument/recordTarget/patientRole'
             passing CCD_DOD as "doc"
             columns
             given varchar2(128) path 'patient/name/given',
             family varchar2(128) path 'patient/name/family',
             name varchar2(128) path 'providerOranization/name'
           ) x

  • Select members from Row/ column context using variables.

    Does EPMA Calculation Manager provide the facility of using any kind of variable which will enable to select members dynamically from row/ column in a Planning webform as we use member variable to select members from Page/ POV?
    Please suggest. Thanks in advance

    Hi,
    Check out Environment/Replacement Variables in Calc Manager, where replacement variable can be used as RTP.
    Cheers...!!

  • Select extract(month from sysdate)+6 = returns 13 and not 1(jan)

    Hi
    I am using the following query to get the month 6 months from now.
    select extract(month from sysdate)+6
    from dualHow can I say that the month should be 6 months from todays month? It worked all these days because this month + 6 was always a valid month. Now it returns 13.

    When I run the following, I get '1'. I am expecting '01'. What am I doing wrong here?
    SELECT substr(lpad(to_number(to_char(ADD_MONTHS(SYSDATE, 6),'MM')),2),1,2) FROM DUAL;
    I need number - so using to_number. I need to extract the month, so using to_char. If someone could help me get 2 digits for the month and simplify the query if possible - would be great.
    The table has month and date stored as number (bad idea I know but thats how it is). Now for January 31, it is stored as 131. For 15 Feb it is 215. What I need is give me records where the month is 6 months from now. Something like:
    to_number(substr(lpad(tbl1.monthdt, 4, '0'), 1, 2)) in
    substr(lpad(to_number(to_char(ADD_MONTHS(SYSDATE, 6),'MM')),2),1,2)Message was edited by:
    bpel

  • XQUERY against an XMLTYPE variable

    I have a procedure which gets xmltype instance and i have to use xquery upon that variable.
    declare
    myxml xmltype;
    s varchar2(20);
    begin
    myxml:=xmltype('<person><name id="1" age="23"/><name id="2" age="25"/></person>');
    SELECT
    XMLQuery(
    'for $i in /person
    where $i/age > 24
    return $i/id'
    PASSING myxml RETURNING CONTENT) into s
    FROM DUAL;
    end;
    BUT i get this error
    ORA-06550: line 6, column 1:
    PLS-00801: internal error [*** ASSERT at file pdw4.c, line  793; Cannot coerce
    between type 43 and type 30; anon_68F441E0__AB[6, 1]]
    Please help it is urgent

    Not sure if you ever received your answer regarding how to pass an XMLType variable in PLSQL to an XQuery command.
    Here is an example of what I've been using... in Oracle 10.2.0.1
    SET SERVEROUTPUT ON SIZE 200000
    DECLARE
    l_result XMLType;
    l_xxDoc XMLType := XMLType(
    <root>
    <things>
    <somestuff>12345</somestuff>
    <morestuff>12345</morestuff>
    </things>
    <things>
    <somestuff>dfgdfg</somestuff>
    <morestuff>werwer</morestuff>
    </things>
    </root>
    PROCEDURE printClobOut
    (p_result IN CLOB)
    IS
    v_xmlstr VARCHAR2(32767);
    v_line VARCHAR2(2000);
    BEGIN
    v_xmlstr := DBMS_LOB.SUBSTR(p_result,32767);
    LOOP
    EXIT WHEN v_xmlstr IS NULL;
    v_line := SUBSTR(v_xmlstr,1,INSTR(v_xmlstr,CHR(10))-1);
    DBMS_OUTPUT.PUT_LINE('| '||v_line);
    v_xmlstr := SUBSTR(v_xmlstr,INSTR(v_xmlstr,CHR(10))+1);
    END LOOP;
    END;
    BEGIN
    select XMLQUERY(
    'for $a in $TheDoc/root
    return <theresult>
    {$a/things}
    </theresult>
    PASSING l_xxDoc as "TheDoc"
    RETURNING CONTENT) into l_result
    from dual;
    printClobOut(l_result.extract('/').getClobVal());
    END;
    Kevin

  • Extract from XML

    Hi to everyone,
    I'm new in Oracle and I've - maybe trivial - a problem in a select. (I'm using Oracle 10g Express Edition).
    I've a DB with a field CLOB: mytab.xml
    This column have an XML like this:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <info>
    <id> 954 </id>
    <idboss> 954 </isboss>
    <name> Fausto </name>
    <sorname> Anonimo </sorname>
    <phone> 040000000 </phone>
    <fax> 040000001 </fax>
    </info>
    I'm trying to do a 'simple' select to get, for example, the value of 'fax' tag. But I've a bit of problem and I'm not able to understand my error. For example:
    select extract(xml, '//fax').getStringVal() from mytab;
    ORA-00932: inconsistent datatypes: expected - got
    select extract(xmltype(xml), '//fax').getStringVal() from mytab;
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.XMLTYPE", line 254
    I've tryed also with 'extractvalue', but I've the same problems.
    where I'm wrong to do this?
    Edited by: 833498 on 3-feb-2011 0.45

    I have tried your query on 10g database and could not replicate problem.
    create table anagrafica (id number, xml clob);
    create table succeeded.
    insert into anagrafica values (1, '<?xml version="1.0" encoding="iso-8859-1"?>
    <anagrafica>
    <idanagrafica> 938 </idanagrafica>
    <idresponsabile> 938 </idresponsabile>
    <identi> 0 </identi>
    <idimpresa> 416 </idimpresa>
    <idruoli> 10 </idruoli>
    <nome> XXXXXX </nome>
    <cognome> YYYYYYY </cognome>
    <codicefiscale> TAXTAXTAX </codicefiscale>
    <natoA> Bozen </natoA>
    <dataNascita> 11/11/1911 </dataNascita>
    <telefono> 0233333333 </telefono>
    <fax> 0233333333 </fax>
    <email> [email protected] </email>
    <stato> operativo </stato>
    <statoAlbo> 10 </statoAlbo>
    <procura />
    <dataModifica> 03/07/2010 </dataModifica>
    <dataIscrizione> 03/07/2010 </dataIscrizione>
    <password> caa6ff044343b1e548eaa1a851b00f </password>
    <Username> Zzzzzzzzz </Username>
    </anagrafica>');
    1 rows inserted
    Select Extract(Xmltype(Xml),'/anagrafica/fax/text()').Getstringval() As Xml_Result From Anagrafica;
    XML_Result
    0233333333
    So it seems that there is no error in the query itself.
    The error related to numeric or value error might be a bit of the clue: Please note that the return value has spaces on both sides. If you try to assign it to numeric variable, you might get such error.
    Not sure if it helped.

  • Is it possible to concatenate XMLType variable

    I'm using XQuery to query relational table and store the result into an xmltype variable as shown below:
    SELECT XMLQuery('<Data>
    {for $c in ora:view("TABLEA")
           let $id := $c/ROW/ID/text(), $code := $c/ROW/CODE/text(),
               return
           <result>
             <type>I</type>
             <id>{$id}</id>
    <code>{$code}</code>
    </result> </Data>' RETURNING CONTENT)
    INTO V_Delete FROM dual;
    Similarly, I query other tables and store the result in xmltype variable. My requirement is to generate one xml file out of it. This would mean that I would need to consolidate the values stored in different xmltype variables. Is it possible to concatenate the xmltype varialbe? If so, how? If not, what is the alternative? I tried converting it to string, but then the 4000 limit caused an error.

    Hi, as I said I have not done that myself. But you can read chapter 4 of the XDB Developer's Guide of the Oraclce docs and I think it may help. The examples there show that those functions are used to update a table. It has this example,
    UPDATE purchaseorder
    SET OBJECT_VALUE =
    appendChildXML(OBJECT_VALUE,
    '/PurchaseOrder/Actions/Action[1]',
    XMLType('<Date>2002-11-04</Date>'))
    WHERE existsNode(OBJECT_VALUE,
    '/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
    = 1;
    SELECT extract(OBJECT_VALUE, '/PurchaseOrder/Actions/Action[1]')
    FROM purchaseorder
    WHERE existsNode(OBJECT_VALUE,
    '/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
    = 1;
    That was why I thought using a global temp table would help in this kind of operation. What I did was using select xmlelement(namespace declarations) from dual, then using a nested (select xmlelement() ) inside the from dual part. I have to select from many different tables to create one xml and it works for me, but I did not try the other ways. If you just need to attach the prolog and namespace stuff, you can store them in a clob or varchar2 var and convert the xml to clob and that simply concantenate them, and then convert the clob back to xml. In 10g there is also the new XMLProlog (I forgot the exact name at this moment) function. Check that out and see if it will work for you.
    ben

  • Select data from an XML Column in a Relational Table

    Hi guys,
    I read a lot of documentation from Oracle how to select xml nodes from an XML Table. The following statement works perfectly for an XML table.
    select extract(OBJECT_VALUE, '/loop/loop_data/description') "DESCRIPTION"
    from loop_table
    where xmlexists('/loop/loop_data[type_code="212"]' PASSING OBJECT_VALUE);
    BUT: how to select xml nodes (data) from a relational table with an XML column???
    I'm interested in the xml data.
    Thanks!
    Miro

    I've tried the same but i don't get any results
    WITH BOL_JMS_MESSAGES_TMP AS
    (SELECT 1 pk,
    XMLTYPE('<MESSAGE_ENVELOPE>
    <ORDER>
    <DIRECT_TURNOVER>N</DIRECT_TURNOVER>
    <DATE_PLACED>2010-05-06T17:14:35.189+02:00</DATE_PLACED>
    <PAYMENT_TYPE>02</PAYMENT_TYPE>
    <ACCOUNT_NUMBER>108317412</ACCOUNT_NUMBER>
    <GIFT_FLAG>N</GIFT_FLAG>
    <ID>7788783900</ID>
    <NETPRICE>117.21</NETPRICE>
    <VAT>7.69</VAT>
    <TOTALPRICE>126.85</TOTALPRICE>
    <SHIPHAND_COSTS>1.64</SHIPHAND_COSTS>
    <SHIPHAND_VAT>0.31</SHIPHAND_VAT>
    <SHIPEQUALBILL_FLAG>Y</SHIPEQUALBILL_FLAG>
    <SHIPPING_METHOD>01</SHIPPING_METHOD>
    </ORDER>
    </MESSAGE_ENVELOPE>') rnd_col
    from dual
    select extract(rnd_col, '/message_envelope/order/direct_turnover/date_placed/payment_type/account_number/gift_flag/id/netprice/vat/totalprice/shiphand_costs/shiphand_vat/shipequalbill_flag/SHIPPING_METHOD') "Payment type"
    FROM BOL_JMS_MESSAGES_TMP
    WHERE existsNode(rnd_col,'/message_envelope') = 1;
    No rows.
    Eventually i want to update the payment type from 02 to 00.

Maybe you are looking for

  • Problem using Toplink with JUnit

    Hi, I have a problem using Toplink with JUnit. Method under test is very simple: it use a static EntityManager object to open a transaction and persists data to db. When I invoke the method from a test method, it gives me the exception: java.lang.Ass

  • Computer clock problem or is it AstroTimes v2.1.2

    For some reason, my AstroTimes local standard time (LST) differs from its selected location by 36 hours 36 minutes. For example, the LST for Melbourne Australia should be 1715 hours 04JAN, but the time displayed in AstroTimes is 2345 hours 05JAN. The

  • Does xqj suport sort(order by )function

    hi Geoff I just use xqj to do some test.But I face some problems.Can u give me some advices. Indeed I want to sort a xml file like sql did by order by,and I read the xquery Specification and I know it suports this fuction.But it seems that xqj does n

  • Getting error when trying to use on 64bit server.

    I have deployed my .NET app to 32bit workstations with no problem, but I have some users that remote in to the server to run and they cannot print reports.  They are getting the following error Either Crystal reports registration key permissions are

  • Calling a function from a dll given by a third party

    Hi everyone, I was given a dll that exposes several COM functions. I want to call one of them (using java code) that is called LoginGUI() that returns a string. How could I do that? Thanks for your feedback. I am working on a windows environement.