XML tag is not acceptable to XMLTABLE

Hi all

I tried to query data at the bottom of XML

<? XML version = "1.0" encoding = "gb2312"? >

< ScanData >

< BOXID BOX "8797" = "0J34897DA6115AXnZ5300F2M" create_time = LOTNO = ' 2015/9/22 14:26:06 ' hostname = "xnlrj" / >

< BOXID BOX "8797" = "0J34897DA6115AXnZ5120M8Z" create_time = LOTNO = ' 2015/9/22 14:26:06 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ52900YF" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXLT53300A0" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXnZ5290339" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXnZ5120LK3" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ5110BD5" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ52905MH" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

< / ScanData >

using the query below, but I have to remove '<? xml version = "1.0" encoding = 'gb2312'? > ' otherwise it will ask the error.

What is the default behavior of XMLTABLE?

SELECT extractvalue(t.column_value,'/BOX/@BOXID') BOXID,UPPER(extractvalue(t.column_value,'/BOX/@LOTNO')) SN

Of

XMLTABLE)

' for $root in $scandata

return $root/ScanData/BOX '

from XMLTYPE (')

<? XML version = "1.0" encoding = "gb2312"? >

< ScanData >

< BOXID BOX "8797" = "0J34897DA6115AXnZ5300F2M" create_time = LOTNO = ' 2015/9/22 14:26:06 ' hostname = "xnlrj" / >

< BOXID BOX "8797" = "0J34897DA6115AXnZ5120M8Z" create_time = LOTNO = ' 2015/9/22 14:26:06 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ52900YF" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXLT53300A0" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXnZ5290339" create_time = LOTNO BOX "2015/9/22 15:05:33 ' hostname ="xnlrj"/ >

< BOXID = "9999" = "0J34897DA6115AXnZ5120LK3" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ5110BD5" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

< BOXID = "9999" = "0J34897DA6115AXnZ52905MH" create_time = LOTNO BOX ' 2015/9/22 15:05:34 ' hostname = "xnlrj" / >

((< / ScanData > ') AS 'scandata') t

Thank you

Vincent

Vincent,

using the query below, but I have to remove '' the case, he will ask error,

In the face of an error, it is always useful to see what is the real error.

In your example, it's because of the break line appearing before the prologue (thepart).

Remove it and it should be OK.

In addition, there is no point uses EXTRACTVALUE (discouraged) at the screening can be fully defined in the clause of COLUMNS:

SELECT t.*
FROM XMLTABLE (
       '/ScanData/BOX'
      passing XMLTYPE('

  
  
  
  
  
  
  
  
')
  columns boxid number       path '@BOXID'
        , sn    varchar2(30) path '@LOTNO'
) t ;

Tags: Oracle Development

Similar Questions

  • When you download a video, my tags are not accepted.

    Hello

    Attached are pictures of my tags and the error message received when I try to download my video. Please indicate why when downloading a video, my tags are not accepted.

    Untitled.pngideo Tags Error Message.png

    Thanks John. I discovered from a youtube video that I had too many tags. Max is 500 characters. Either way, what is a NLE?

  • A STANDARD XML TAG DOES NOT WORK PROPERLY WHEN USED IN RTF FILE FOR XML RE

    Hello

    I am using the following tag:
    <? If: TASK_STATUS = "Open"? > < xdofo:ctx xsl: attribute = 'block' name 'color' = > red < / xsl: attribute >
    <? end if? >
    to change the color of foreground text which, according to some conditiosi, need to print in
    PDF format using xml and rtf files reports.
    But I was able to get only 3 colors (red, blue, green) to use, other colors such as orange, cyan etc are not
    work.
    Please let me know what all the colors are supported by oracle in printing to PDF using xml reports.
    Indicate if we do a few things related to parameters or so.

    I'm usning 5.6.3 XML version.

    Kind regards
    Amar

    Colors can be expressed by a known name and a hexadecimal value. The hexadecimal format is widely used in HTML programming and has a format of #abcdef, and "abcdef" may be as aaddcc values and so on. For some primary colors, you can get away with #abc, but this is not very common.

    You should always design with colors Web safe in mind. That limited to 16, but should be much thinner (more all 16 have known names like red, cyan, yellow, etc.).

    http://www.w3schools.com/HTML/html_colors.ASP has a good explanation of the standards.

  • Cannot delete the XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame.

    So, I guess I really questions. It's this thing! How the hell he get there? And is there a better way to remove it rather than not tagging any of the frame and have to re - mark all content.

    EDIT: Just found out that using the trash on the pallet Structure to remove the parent of the problematic element, indeed, removes as problematic. Before him, I was just not marking the parent who has transferred only the problem child (like these word games) for the previous parent.

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • Wandering XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame. I have a script routine that updates the XML attributes based on the style (s) applied to them. This element, but causes a script script error trying to access to the. Text (1), because there is not, I guess. The script goes through all the XML elements in order to open the Structure and use. Select the item to select an error occurs. But that's ALL!

    So, I guess I really questions. It's this thing! How the hell he get there? And can I do in scripts for "see" it as one element is wandering?

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • Missing XML tags

    Hello world

    I'm working on a report of the invoice, for which changes xml based on the type of Bill.
    For example, if it is a deposit invoice, I will have the XML as follows:

    <? invoice? >
    <? FEATURES of? >
    <? SERVICES? >
    <? AR_ITEMS? >
    - - - - -
    - - - - -
    <? / AR_ITEMS? >
    <? / SERVICES? >
    <? FEATURES of? >
    <? / invoice? >

    If this is a bill for the Subscriber, I get the XML as follows:


    <? invoice? >
    <? FEATURES of? >
    <? SERVICES? >
    <? AR_ITEMS? >
    - - - - -
    - - - - -
    <? / AR_ITEMS? >
    <? OTHER_ITEMS? >
    - - - - -- - -
    - - - - -- - -
    <? / OTHER_ITEMS? >
    <? / SERVICES? >
    <? FEATURES of? >
    <? / invoice? >

    Now, I need to use the same for both types of bills rtf model. The problem is, when it's a "deposit invoice", there will be no + <? OTHER_ITEMS? > + tag in the XML of entry.
    But there are certain values that must be reported to the + <? OTHER_ITEMS? > + tag when it's a "Bill of the Subscriber. Using variables to store the values of the + <? OTHER_ITEMS? > + tag and + <? AR_ITEMS? > + tag and to the Addition of these values and display in the report for the invoice to the Subscriber.
    But, when it was a XML for the 'deposit invoice', it is throwing an error because there is no + <? OTHER_ITEMS? > + tag. And I need not show that the values of + <? AR_ITEMS? > + tag.

    Hope am able to explain my problem properly. Someone help me please, on how to solve this problem.

    Thank you very much in advance.
    Imtiaz.

    you need to consider the condition below how we check if condition based on the xml tag.

    in your situation, try the last type that you don't have tag xml
    **
    --*
    --*
    **

    Value of this XML in the XML tag and it has a value that is not NULL
    for ex:
    123

    Suppose you want to give a condition to check not null similar to what we bring in PL/SQL
    The value IS NOT NULL IF and THEN
    ---
    ---
    END IF;
    Syntax of BI Publisher for this is,


    --
    --

    2. value of this XML in the XML tag, but it doesn't have a NULL value.
    for ex:

    (GOLD)

    Now, you want to give a null check condition similar to that we bring in PL/SQL
    IF the value is NULL, THEN
    --
    --
    END IF;
    Syntax of BI Publisher for this is,

    --
    --

    3. XML tag is not present in the XML data, and therefore there is no value.
    Now you want to give a condition to check the existence of the tag in the XML data. Here is the BI Publisher syntax for this,

    --
    --

    and=" "="" xml_tag_name=""?>
  • Remove empty XML tags was turned on, but now we want it shut down. PeopleSoft does not change

    Us that initially, we are living with a set of lines, asynchronous message with "remove it empty XML tags" the value Y. Then, we decided that we don't want to do that and tried to insert a new version of the operation service and message to make it work. Any ideas how to solve this problem because they are very large messages to recreate. Please note that the SOAP content flag is also set at the routing level.

    We need to drop the cache on the web server, force a removal of schema, or drop the cache on the application servers?

    I found that our development environment could be corrupted. I ran engine application VERSION after the update of all of the messages I want to disable 'Remove XML tags' with SQL. I then had the cache of the deleted application server. He has worked in the development.

    In another environment, I did the same update and had removed servers application cache, but was not obliged to run the version. I guess the SQL was may not be not necessary, but I did not check in an environment where access to the application server to really solve the problems.

  • groups-3 data urgent in the data model (bi pub 10 g do not show xml tags)

    Hello
    I have a requirement that the needs of data comes from 3 groups.
    In the 10g data model, I saw master - detail... like 2 groups

    How to reach 3 groups
    When I do, not able to see the 3rd Group (Group 3) xml tags

    Group 1
    -Select inv_id
    -Returns inv_id

    Group 2
    -Select col2
    where col2 =: inv_id

    Group 3
    -Select data where
    col_1 =: col2

    pelase help

    >
    Group 1
    -Select inv_id
    -Returns inv_id

    Group 2
    -Select col2
    where col2 =: inv_id

    Group 3
    -Select data where
    col_1 =: col2
    >
    Looks like that ok

    When I do, not able to see the 3rd Group (Group 3) xml tags

    What is the structure of article dataStructure?
    It can be as

    
    

    or post more information on the structure of article dataStructure

    I prefer unique identify related as columns

    group 1
    --select inv_id as grp1_ind_id
    --returns inv_id
    
    group 2
    --select col2 as grp2_col2
    where col2=:grp1_ind_id
    
    group 3
    --select data where
    col_1=:grp2_col2
    

    because I saw the case, then the columns with the same name does not properly

  • my flash reads the xml, but does not include the php tag...

    my flash reads the xml, but does not include the tag php. I want to read my xml dynamically, Please help me.

    Code:

    Stop();

    function randomOrder (targetArray)

    {

    var _loc2 = targetArray.length;

    var _loc3 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc3 [_loc1] = _loc1;

    } / / end of for

    var _loc4 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc4 [_loc1] _loc3.splice = (Math.floor (Math.random () * _loc3.length), 1);

    } / / end of for

    var _loc5 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc5 [_loc1] = targetArray [_loc4 [_loc1]];

    } / / end of for

    return (_loc5);

    } / / End of the function

    var randomNUM = '? '. n ="+ random (9999);

    _root. LAN = 1;

    var homehead;

    HomeLink var;

    var homelinkwindow;

    var homebg;

    var homeflash;

    lamp var = Array();

    promo var = Array();

    var promobottom = Array();

    var headimg = Array();

    f_xmlwork2 = new XML();

    f_xmlwork2.ignoreWhite = true;

    f_xmlwork2. Load ("banner.php");

    f_xmlwork2. OnLoad = {function (success)}

    If (success) {}

    trace ("XML loaded!');

    f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);

    f_totalx2 = f_xmlItemx2.length;

    trace (f_totalx2);

    var _loc12 = 0;

    declarar a fundo imagem

    homebg = this.firstChild.childNodes [0].firstChild.nodeValue;

    f_headimg = this.childNodes [1];

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2) {}

    Juju = f_headimg.childNodes [_loc2];

    JJ = headimg.push ({headimg: f_headimg.childNodes [_loc2].attributes.headimg, bgimg: f_headimg.childNodes [_loc2].attributes.bgimg, msgimg: f_headimg.childNodes [_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes [_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes [_loc2].attributes.rightthrow});

    }

    end for

    allpromo = this.childNodes [2];

    jjpromo = allpromo.childNodes;

    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promo.push ({img:. attributes.img jjpromo [_loc2], title: jjpromo [_loc2].attributes.title, url: jjpromo [_loc2].attributes.url, window: jjpromo [_loc2].attributes.window, info: jjpromo [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    }

    end of for

    allpromobottom = this.childNodes [3];

    jjpromobottom = allpromobottom.childNodes;

    for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promobottom.push ({url: jjpromobottom [_loc2].attributes.url, window: jjpromobottom [_loc2].attributes.window, info: jjpromobottom [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    } / / end of for

    If (f_xmlwork2.loaded is true)

    {

    headimg = randomOrder (headimg);

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2)

    {

    trace (headimg, [_loc2], .headimg);

    } / / end of for

    play ();

    } / / end if

    }

    }

    trace (f_xmlwork2);

    Stop();

    PHP code:

    <?

    $link = mysql_connect("localhost","rnpac_eco","123");

    @mysql_select_db ("rnpac");

    $dir = "' banner /"; "

    Dir1 $= "" products/img_pro / ";"

    Dir2 $= "" universo/activities / ";"

    $sql = ' SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6

    OF tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER OF RAND()';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row1 = mysql_fetch_array ($resultado);

    $sql = "SELECT tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem. tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_sub_universo tbl_imagem_produto.actividade_id, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE the tbl_actividade.id_actividade = tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade = tbl_detalhe_actividade.actividade_id ORDER OF RAND() ';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row2 = mysql_fetch_array ($resultado);

    ' $query ='SELECT * FROM tbl_banner ORDER OF RAND() ';

    $resultado = mysql_query ($query);

    echo "<?" XML version=\"1.0\"? " >

    < home_left_headline >

    < bgimg > '. $dir2. ". $row1 ['imagem1'].' < / bgimg >

    < / home_left_headline >

    < home_flash > ';

    While ($row = {mysql_fetch_array ($resultado))}

    "" echo "< swf headimg =" ' bgimg = "" msgimg = "" leftthrow = "" rightthrow = "" > < / swf > '; "

    }

    echo "< / home_flash > ';"

    echo "< promotop >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    < / promotop > ';

    mysql_close ($Link);

    you would not see this trace php if your php has been setup correctly.  Upload your files and repeat the test.

  • 'Value not completed for attribute "in the XML tag". (SBL-UIF-00265) »

    To get this message when I change a Web layout for a display in Siebel tools 7.8.2 "unfinished value for the attribute"in the XML tag". (SBL-UIF-00265) «... Anyone has an idea why I get this message?

    Hello

    Check the webtemplate to view file. The WT file may contain a double quote in some tags. Maybe it's the cause of the error. U have changed the SWT file by accident. Refer to ID 1280569.1 Web of Support of Oracle for more information.

    Kind regards
    Joseph

  • Extract the XML tags and insert into the table

    Description:

    XML is under inert atmosphere in the table containing the xmltype column. Need to extract value from xml tag and insert into the table.
    Once the XML record Treaty must update the status as 'Y' in the base table

    Problem:
    There are multiple occurrences of some tags that need to be combined and stored in a single column to delineate the '-'. No. area of occurrence can vary for each record.
    There are a few encrypted column that I managed to convert decoded value. But used select distinct... XMLTYPE...
    GTT table is used to store the intermediate result and decoding and the concatenation of several tags occurred using TWG.

    1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed his occrrence in 3 for example: < student >
    2. how to set the value NULL if no tag is not present. Tag in XML record number can vary. I know that the complete list of xmltags.
    3 data not found error for some xml documents.

    Kindly Assits how to achieve this.

    version: 11.2.0.3.0

    Table Base: temp_XML

    XML_ID NOT NULL NUMBER (28) - auto-increment using the sequence
    PUBLIC EVENT. Stores the XMLTYPE STORAGE BINARY - XML file
    DATE OF EVTDATE
    STATUS VARCHAR2 (3) DEFAULT ' don't

    Sample XML: Includes all the brands mentioned in the common procedure below.

    <? XML version = "1.0" encoding = "US-ASCII"? >

    "< event xmlns ="http://xmlextrac.test.com/object">."

    < data xmlns = "" >

    < object >

    <>units

    < unit > TLAS < / unit >

    < unit > ATLAS < / unit >

    < / units >

    < receiverNetworks >

    < receiverNetwork > ABSAZAJ0XXXX < / receiverNetwork >

    < / receiverNetworks >

    < correspondentIds >

    < correspondentId > #SWF - ABSAZAJ0XXX < / correspondentId >

    < / correspondentIds >

    < comment >

    < comment / >

    < comment / >

    < comment / >

    < comment / >

    < / comment >

    < memo >

    < memo > 28 < / memo >

    < / memos >

    < tuxedoPriority > 20 < / tuxedoPriority >

    sender <>Mike < / sender >

    < typeReseauId > Message < / typeReseauId >

    < maxRetry > 4 < / maxRetry >

    < msgSecuLevel > CBA < / msgSecuLevel >

    < quantity >

    < amount > 12 < / amount >

    < amount > 34 < / amount >

    < amount > 56 < / amount >

    < / amounts >

    < currencys >

    < currency > $ < / currency >

    < currency > EUR < / currency >

    INR < currency > < / currency >

    < / currencys >

    < msgDateVal > ARST123 < / msgDateVal >

    wder < direction > < / direction >

    < eventType > 113 < / eventType >

    < date > 1407431619 < / date >

    < eventDate > 1407431624 < / eventDate >

    < management > R < / direction >

    < msgRef > R950140807AB6CBE < / msgRef >

    < format > SWF < / size >

    < type > 950 < / type >

    R950140807AB6CBE < WALL > < / WALL >

    < bankingPriority / >

    FSDS < field.20 > < / field.20 >

    < texteType > FSS < / texteType >

    < applicationCode > OHS < / applicationCode >

    < company > KETH < / company >

    < endFct > MOE < / endFct >

    < rate > BAM < / flow >

    < subtype / >

    < text > DQo6MjA6R0wxNDA4MDcwMDA1MTMNCjoyNTo3M == < / text >

    < msgHeaders > ezE6RjAxTE9ZRE5MMjBCWFhYMDAzMjAw = < / msgHeaders >

    < msgTrailer > ezU6e0NISzpEOUFFRUNCN0NBQTl9e1RORzp9fQ == < / msgTrailer >

    < / object >

    < / data >

    Procedure: This works very well for a few xml record and fails for some.

    CREATE OR REPLACE PROCEDURE XML_EXTR
    AS
    CURSOR c1
    IS
    SELECT * FROM temp_XML;

    c1_cur c1% ROWTYPE;

    bamdata_sql VARCHAR2 (3000);
    d_text VARCHAR2 (3000);
    d_msgHeaders VARCHAR2 (3000);
    d_msgTrailer VARCHAR2 (3000);
    x_text VARCHAR2 (3000);
    x_msgHeaders VARCHAR2 (3000);
    x_msgTrailer VARCHAR2 (3000);
    x_eventType VARCHAR2 (3000);
    x_amount number (28.2).
    x_currency VARCHAR2 (3000);
    x_state VARCHAR2 (3000);
    x_units VARCHAR2 (3000);
    x_correspondentId VARCHAR2 (3000);
    X_TYPE VARCHAR2 (3000);
    x_receiverNetworks VARCHAR2 (3000);
    x_bankingPriority VARCHAR2 (3000);
    x_applicationCode VARCHAR2 (3000);
    x_processCounter VARCHAR2 (3000);
    x_obsolescence VARCHAR2 (3000);
    x_maxRetry VARCHAR2 (3000);
    x_retries VARCHAR2 (3000);
    x_fileSize VARCHAR2 (3000);
    x_endFct VARCHAR2 (3000);
    x_subType VARCHAR2 (3000);
    x_field20 VARCHAR2 (3000);
    x_sequenceNumber VARCHAR2 (3000);
    x_requestorDn VARCHAR2 (3000);
    x_responderDn VARCHAR2 (3000);
    x_SWIFTNetService VARCHAR2 (3000);
    x_transfertRef VARCHAR2 (3000);
    x_nonrepudiation VARCHAR2 (3000);
    x_transfertInfo VARCHAR2 (3000);
    x_fileDesc VARCHAR2 (3000);
    x_transfertDesc VARCHAR2 (3000);
    x_logicalName VARCHAR2 (3000);
    x_signIndicator VARCHAR2 (3000);
    x_critId VARCHAR2 (3000);
    x_inFapId VARCHAR2 (3000);
    x_deliveryNotif VARCHAR2 (3000);
    x_comment1 VARCHAR2 (3000);
    x_comment2 VARCHAR2 (3000);
    x_comment3 VARCHAR2 (3000);
    x_comment4 VARCHAR2 (3000);
    x_comments VARCHAR2 (3000);
    x_memo1 VARCHAR2 (3000);
    x_memo2 VARCHAR2 (3000);
    x_memo3 VARCHAR2 (3000);
    x_memo4 VARCHAR2 (3000);
    x_msgSecuLevel VARCHAR2 (3000);
    x_dates VARCHAR2 (3000);
    x_tuxedoPriority VARCHAR2 (3000);
    x_fileDest VARCHAR2 (3000);
    x_stkMsgPDEId VARCHAR2 (3000);
    x_EMTId VARCHAR2 (3000);
    x_LTRcptSyno VARCHAR2 (3000);
    x_LTRcpt VARCHAR2 (3000);
    x_LTEmis VARCHAR2 (3000);
    x_flow VARCHAR2 (3000);
    x_FINCopy VARCHAR2 (3000);
    x_msgDateVal VARCHAR2 (3000);
    x_eventDate VARCHAR2 (3000);
    x_typeReseauId VARCHAR2 (3000);
    x_inFapSeq1 VARCHAR2 (3000);
    x_inFapSeq2 VARCHAR2 (3000);
    x_direction VARCHAR2 (3000);
    x_priority VARCHAR2 (3000);
    x_ack VARCHAR2 (3000);
    x_format VARCHAR2 (3000);
    x_mur VARCHAR2 (3000);
    x_TexteType VARCHAR2 (3000);
    x_creatingUser VARCHAR2 (3000);
    x_fileinfo VARCHAR2 (3000);
    x_company VARCHAR2 (3000);
    x_language VARCHAR2 (3000);
    x_ackText VARCHAR2 (3000);
    x_jaxbRef VARCHAR2 (3000);
    x_jaxbElt VARCHAR2 (3000);
    x_memos VARCHAR2 (3000);
    xmlid number (28);
    x_msgRef1 VARCHAR2 (3000);
    x_msgRef2 VARCHAR2 (3000);
    x_msgRef3 VARCHAR2 (3000);
    x_msgRef4 VARCHAR2 (3000);
    x_sender VARCHAR2 (3000);
    x_amlBehavior VARCHAR2 (3000);
    x_ownerServiceId VARCHAR2 (3000);
    x_correspondentName VARCHAR2 (3000);
    x_correspondentAddress1 VARCHAR2 (3000);
    x_correspondentAddress2 VARCHAR2 (3000);
    x_correspondentAddress3 VARCHAR2 (3000);
    x_correspondentAddress4 VARCHAR2 (3000);
    x_correspondentCity VARCHAR2 (3000);
    x_correspondentCountry VARCHAR2 (3000);
    x_correspondentNetworkAddr VARCHAR2 (3000);
    x_tested VARCHAR2 (3000);
    x_correspondentNetwork VARCHAR2 (3000);
    x_validatedPercentage VARCHAR2 (3000);
    x_nbOfValid VARCHAR2 (3000);
    x_requestRef VARCHAR2 (3000);
    x_notifQueue VARCHAR2 (3000);
    x_requestType VARCHAR2 (3000);
    x_secBpid VARCHAR2 (3000);
    x_queue VARCHAR2 (3000);
    x_receiverCode VARCHAR2 (3000);
    x_receiverInd VARCHAR2 (3000);
    x_validFlag VARCHAR2 (3000);
    x_ownerId VARCHAR2 (3000);
    x_dn VARCHAR2 (3000);
    x_RMAOurBic VARCHAR2 (3000);
    x_RMACorrespondentBic VARCHAR2 (3000);
    x_RMAService VARCHAR2 (3000);
    x_fileMsgRef VARCHAR2 (3000);
    date of x_ext_date;
    x_correspondentAddress VARCHAR2 (3000);
    x_msgrefs varchar2 (3000);
    d_ackText varchar2 (3000);
    ackText varchar2 (3000);
    date of x_extdate;

    BEGIN

    FOR C1_CUR IN C1

    LOOP

    INSERT INTO data_GTT_TEMP)
    eventType, amount, currency, State, units, correspondentId, sender, receiverNetworks, bankingPriority, applicationCode, processCounter.
    obsolescence, maxRetry, reminders, fileSize, endFct, xsubType, field.20, sequenceNumber, requestorDn, responderDn, SWIFTNetService, non-repudiation,
    transfertRef, transfertInfo, fileDesc, transfertDesc, logicalName, signIndicator, critId, inFapId, deliveryNotif, comment1, comment2, comment3, comment4,
    Memo1, memo2, memo3, memo4, msgSecuLevel, dates, tuxedoPriority, fileDest, stkMsgPDEId, EMTId, LTRcptSyno, LTRcpt, LTEmis, flow, FINCopy, msgDateVal,
    eventDate, typeReseauId, inFapSeq1, inFapSeq2, direction, priority, ack,
    msgRef1, msgRef2, msgRef3, msgRef4, amlbehavior, correspondentName, ownerServiceId,
    correspondentAddress1, correspondentAddress2, correspondentAddress3, correspondentAddress4,
    correspondentCity, correspondentCountry, correspondentNetworkAddr, tested,
    correspondentNetwork, validatedPercentage, nbOfValid, requestRef, notifQueue,
    requestType, secBpid, xqueue, receiverCode, receiverInd, validFlag, ownerId, dn, RMAOurBic, RMACorrespondentBic, RMAService,
    fileMsgRef, format, xtype, wall, TexteType, creatingUser, fileinfo,
    company, text, xlanguage, ackText, msgHeaders, msgTrailer, jaxbRef, jaxbElt)
    SELECT
    x.eventType, x.amount, x.currency, x.state, x.units, x.correspondentId, x.sender, x.receiverNetworks, x.bankingPriority, x.applicationCode, x.processCounter,
    x.obsolescence, x.maxRetry, x.Retries, x.FileSize, x.endFct, x.xsubType, x.Field20, x.SequenceNumber, x.requestorDn, x.responderDn, x.SWIFTNetService, x.nonRepudiation,
    x.transfertRef, x.transfertInfo, x.fileDesc, x.transfertDesc, x.logicalName, x.signIndicator, x.critId, x.inFapId, x.deliveryNotif, x.comment1, x.comment2,
    x.comment3, x.comment4, x.Memo1, x.memo2, x.memo3, x.MEMO4, x.msgSecuLevel, x.dates, x.tuxedoPriority, x.fileDest, x.stkMsgPDEId, x.EMTId, x.LTRcptSyno,
    x.LTRcpt, x.LTEmis, x.flow, x.FINCopy, x.msgDateVal, x.eventDate, x.typeReseauId, x.inFapSeq1, x.inFapSeq2, x.direction, x.priority, x.ack,
    x.msgRef1, x.msgRef2, x.msgRef3, x.msgRef4, x.amlbehavior, x.correspondentName, x.ownerServiceId,
    x.correspondentAddress1, x.correspondentAddress2, x.correspondentAddress3, x.correspondentAddress4,
    x.correspondentCity, x.correspondentCountry, x.correspondentNetworkAddr, x.tested,
    x.correspondentNetwork, x.validatedPercentage, x.nbOfValid, x.requestRef, x.notifQueue,
    x.requestType, x.secBpid, x.xqueue, x.receiverCode, x.receiverInd, x.validFlag, x.ownerId, x.dn, x.RMAOurBic, x.RMACorrespondentBic, x.RMAService,
    x.fileMsgRef, x.format, x.xtype, x.mur, x.TexteType, x.creatingUser, x.fileinfo,
    x.Company, x.Text, x.xLanguage, x.ackText, x.msgHeaders, x.msgTrailer, x.jaxbRef, x.jaxbElt

    of temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
    PASSAGE t.BAM_EVENT COLUMNS
    eventType varchar2 (3000) PATH 'data, object, eventType' DEFAULT NULL,
    amount number (28.2) path data/object/amounts"."
    currency varchar2 (3000) PATH 'data, object, currencys, currency' DEFAULT NULL,
    VARCHAR2 (3000) path "data/object / / state of ' DEFAULT NULL, State
    units varchar2 (3000) PATH ' object/data/units' DEFAULT NULL,
    correspondentId varchar2 (3000) PATH "data/object/correspondentIds' DEFAULT NULL,
    sender varchar2 (3000) PATH 'data, object, sender' DEFAULT NULL,
    receiverNetworks varchar2 (3000) PATH "data/object/receiverNetworks' DEFAULT NULL,
    bankingPriority varchar2 (3000) PATH "data/object/bankingPriority' DEFAULT NULL,
    applicationCode varchar2 (3000) PATH ' object/data/applicationCode' DEFAULT NULL,
    processCounter varchar2 (3000) PATH "data/object/processCounter' DEFAULT NULL,
    obsolescence varchar2 (3000) PATH ' data/object/obsolescence' DEFAULT NULL,
    maxRetry varchar2 (3000) PATH ' data/object/maxRetry' DEFAULT NULL,
    attempts to varchar2 (3000) "data/object/attempts" DEFAULT NULL path,.
    size of the file varchar2 (3000) PATH ' data/object/fileSize' DEFAULT NULL,
    endFct varchar2 (3000) PATH "data/object/endFct' DEFAULT NULL,
    xsubType varchar2 (3000) PATH "data/object/subtype' DEFAULT NULL,
    field.20 varchar2 (3000) PATH ' object/data/field.20' DEFAULT NULL,
    sequenceNumber varchar2 (3000) PATH "data/object/sequenceNumber" DEFAULT NULL,
    requestorDn varchar2 (3000) PATH "data/object/requestorDn' DEFAULT NULL,
    responderDn varchar2 (3000) PATH "data/object/responderDn' DEFAULT NULL,
    SWIFTNetService varchar2 (3000) PATH "data/object/SWIFTNetService' DEFAULT NULL,
    non-repudiation varchar2 (3000) PATH ' object/data/repudiation' DEFAULT NULL,
    transfertRef varchar2 (3000) PATH "data/object/transfertRef' DEFAULT NULL,
    transfertInfo varchar2 (3000) PATH "data/object/transfertInfo' DEFAULT NULL,
    fileDesc varchar2 (3000) PATH "data/object/fileDesc' DEFAULT NULL,
    transfertDesc varchar2 (3000) PATH "data/object/transfertDesc' DEFAULT NULL,
    logicalName varchar2 (3000) PATH "data/object/logicalName" DEFAULT NULL,
    signIndicator varchar2 (3000) PATH "data/object/signIndicator' DEFAULT NULL,
    critId varchar2 (3000) PATH "data/object/critId' DEFAULT NULL,
    inFapId varchar2 (3000) PATH "data/object/inFapId' DEFAULT NULL,
    deliveryNotif varchar2 (3000) PATH "data/object/deliveryNotif' DEFAULT NULL,
    COMMENT1 varchar2 (3000) PATH ' data, subject, comments, comment [1] "DEFAULT NULL,
    comment2 varchar2 (3000) PATH 'data, subject, comments, how [2]' DEFAULT NULL,
    comment3 varchar2 (3000) PATH "data/object/observations/comments [3]" DEFAULT NULL,
    comment4, varchar2 (3000) PATH ' data, subject, comments, comment [4] "DEFAULT NULL,
    Memo1 varchar2 (3000) PATH "data/object/memos/memo [1]" DEFAULT NULL,
    Memo2 varchar2 (3000) PATH "data/object/notes/Notes [2]" DEFAULT NULL,
    memo3 varchar2 (3000) PATH "data/object/memos/memo [3]" DEFAULT NULL,
    MEMO4 varchar2 (3000) PATH "data/object/memos/memo [4]" DEFAULT NULL,
    msgSecuLevel varchar2 (3000) PATH "data/object/msgSecuLevel' DEFAULT NULL,
    Date varchar2 (3000) PATH ' object/data/date' DEFAULT NULL,
    tuxedoPriority varchar2 (3000) PATH "data/object/tuxedoPriority' DEFAULT NULL,
    fileDest varchar2 (3000) PATH "data/object/fileDest' DEFAULT NULL,
    stkMsgPDEId varchar2 (3000) PATH "data/object/stkMsgPDEId' DEFAULT NULL,
    EMTId varchar2 (3000) PATH "data/object/EMTId' DEFAULT NULL,
    LTRcptSyno varchar2 (3000) PATH "data/object/LTRcptSyno' DEFAULT NULL,
    LTRcpt varchar2 (3000) PATH "data/object/LTRcpt' DEFAULT NULL,
    LTEmis varchar2 (3000) PATH "data/object/LTEmis' DEFAULT NULL,
    flow varchar2 (3000) PATH "/ object/data flow ' DEFAULT NULL,
    FINCopy varchar2 (3000) PATH ' data/object/FINCopy' DEFAULT NULL,
    msgDateVal varchar2 (3000) PATH "data/object/msgDateVal' DEFAULT NULL,
    eventDate varchar2 (3000) PATH "data/object/eventDate" DEFAULT NULL,
    typeReseauId varchar2 (3000) PATH "data/object/typeReseauId' DEFAULT NULL,
    inFapSeq1 varchar2 (3000) PATH "data/object/inFapSeq1' DEFAULT NULL,
    inFapSeq2 varchar2 (3000) PATH "data/object/inFapSeq2' DEFAULT NULL,
    direction varchar2 (3000) PATH 'data, object, direction' DEFAULT NULL,
    priority varchar2 (3000) PATH ' data/object/priority' DEFAULT NULL,
    ACK varchar2 (3000) PATH ' object/data/ack' DEFAULT NULL,
    msgRef1 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [1] "DEFAULT NULL,
    msgRef2 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [2] "DEFAULT NULL,
    msgRef3 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [3] "DEFAULT NULL,
    msgRef4 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [4] "DEFAULT NULL,
    amlBehavior varchar2 (3000) PATH "data/object/amlBehavior' DEFAULT NULL,
    ownerServiceId varchar2 (3000) PATH "data/object/ownerServiceId' DEFAULT NULL,
    correspondentName varchar2 (3000) PATH ' data/object/correspondentName' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress1 ' object/data/correspondentLine1Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress2 ' object/data/correspondentLine2Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress3 ' object/data/correspondentLine3Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress4 ' object/data/correspondentLine4Addresse' DEFAULT NULL,
    correspondentCity PATH VARCHAR2 (3000) ' object/data/correspondentCity' DEFAULT NULL,
    correspondentCountry PATH VARCHAR2 (3000) ' object/data/correspondentCountry' DEFAULT NULL,
    correspondentNetworkAddr PATH VARCHAR2 (3000) ' object/data/correspondentNetworkAddr' DEFAULT NULL,
    tested VARCHAR2 (3000) PATH ' data/object/tested' DEFAULT NULL,
    correspondentNetwork PATH VARCHAR2 (3000) ' object/data/correspondentNetwork' DEFAULT NULL,
    validatedPercentage PATH VARCHAR2 (3000) ' object/data/validatedPercentage' DEFAULT NULL,
    nbOfValid PATH VARCHAR2 (3000) ' object/data/nbOfValid' DEFAULT NULL,
    requestRef VARCHAR2 (3000) PATH ' data/object/requestRef' DEFAULT NULL,
    notifQueue PATH VARCHAR2 (3000) ' object/data/notifQueue' DEFAULT NULL,
    requestType PATH VARCHAR2 (3000) ' data/object/requestType' DEFAULT NULL,
    secBpid PATH VARCHAR2 (3000) ' object/data/secBpid' DEFAULT NULL,
    xqueue PATH VARCHAR2 (3000) ' data/object/tail' DEFAULT NULL,
    receiverCode PATH VARCHAR2 (3000) ' object/data/receiverCode' DEFAULT NULL,
    receiverInd PATH VARCHAR2 (3000) ' object/data/receiverInd' DEFAULT NULL,
    validFlag PATH VARCHAR2 (3000) ' object/data/validFlag' DEFAULT NULL,
    ownerId PATH VARCHAR2 (3000) ' data/object/ownerId' DEFAULT NULL,
    DN VARCHAR2 (3000) PATH ' data/object/dn' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMAOurBic ' object/data/RMAOurBic' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMACorrespondentBic ' object/data/RMACorrespondentBic' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMAService ' object/data/RMAService' DEFAULT NULL,
    fileMsgRef PATH VARCHAR2 (3000) ' object/data/fileMsgRef' DEFAULT NULL,
    ackText varchar2 (3000) PATH "data/object/ackText' DEFAULT NULL,
    format varchar2 (3000) PATH "data/object / ' DEFAULT NULL,
    xType varchar2 (3000) PATH ' data/object/type' DEFAULT NULL,
    Wall varchar2 (3000) PATH ' data/object/wall' DEFAULT NULL,
    texteType varchar2 (3000) PATH "data/object/texteType' DEFAULT NULL,
    creatingUser varchar2 (3000) PATH ' data/object/creatingUser' DEFAULT NULL,
    fileInfo varchar2 (3000) PATH ' data/object/fileInfo' DEFAULT NULL,
    VARCHAR2 (3000) path ' data/object/society' DEFAULT NULL, the company
    VARCHAR2 (3000) text ' data/object/text' DEFAULT NULL path.
    xLanguage varchar2 (3000) PATH ' data/object/language' DEFAULT NULL,
    msgHeaders varchar2 (3000) PATH "data/object/msgHeaders' DEFAULT NULL,
    msgTrailer varchar2 (3000) PATH "data/object/msgTrailer' DEFAULT NULL,
    jaxbRef varchar2 (3000) PATH ' info/jaxbRef' DEFAULT NULL,
    jaxbElt varchar2 (3000) PATH "jaxbElt/info") x
    where t.XML_ID = c1_cur. XML_ID and t.status =' no;

    Select x.text, x.msgHeaders, x.msgTrailer in x_msgTrailer, x_msgHeaders, x_text of
    temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
    PASSAGE t.BAM_EVENT COLUMNS
    text varchar2 (3000) PATH data/object/text"."
    msgHeaders varchar2 (3000) PATH "data/object/msgHeaders,"
    msgTrailer varchar2 (3000) PATH "object/data/msgTrailer.
    ) x
    where t.XML_ID = c1_cur. XML_ID;
    Select sysdate in double x_extdate;


    d_text: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_text)));
    d_msgHeaders: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgHeaders)));
    d_msgTrailer: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgTrailer)));
    -d_ackText: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (ackText)));

    Select
    EventType, amount, currency, State, units, correspondentid, sender, receivernetworks, bankingpriority,
    applicationcode, processcounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn,
    responderdn, swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator,
    critid, infapid, deliverynotif, comment1, comment2, comment3, comment4, memo1, memo2, memo3, memo4, msgseculevel, dates, tuxedopriority, filedest,
    stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow, fincopy, msgdateval, eventdate, typereseauid, infapseq1,
    infapseq2, direction, priority, ack, msgref1, msgref2, msgref3, msgref4, amlbehavior, ownerserviceid, correspondentname, correspondentaddress1, correspondentaddress2, correspondentaddress3, correspondentaddress4,
    correspondentcity, correspondentcountry, correspondentnetworkaddr, test, correspondentnetwork, validatedpercentage, nbofvalid,.
    requestref, notifqueue, requesttype, secbpid, xqueue, receivercode, receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref,
    acktext, format, xtype, wall, textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt
    in
    x_eventtype, x_amount, x_currency, x_state, x_units, x_correspondentid, x_sender, x_receivernetworks, x_bankingpriority, x_applicationcode, x_processcounter,
    x_obsolescence, x_maxretry, x_retries, x_filesize, x_endfct, x_subtype, x_field20, x_sequencenumber, x_requestordn, x_responderdn, x_swiftnetservice, x_nonrepudiation,
    x_transfertref, x_transfertinfo, x_filedesc, x_transfertdesc, x_logicalname, x_signindicator, x_critid, x_infapid, x_deliverynotif, x_comment1, x_comment2, x_comment3,
    x_comment4, x_memo1, x_memo2, x_memo3, x_memo4, x_msgseculevel, x_dates, x_tuxedopriority, x_filedest, x_stkmsgpdeid, x_emtid, x_ltrcptsyno, x_ltrcpt,
    x_ltemis, x_flow, x_fincopy, x_msgdateval, x_eventdate, x_typereseauid, x_infapseq1, x_infapseq2, x_direction, x_priority, x_ack, x_msgref1, x_msgref2,
    x_msgref3, x_msgref4, x_amlbehavior, x_ownerserviceid, x_correspondentname, x_correspondentaddress1, x_correspondentaddress2, x_correspondentaddress3,
    x_correspondentaddress4, x_correspondentcity, x_correspondentcountry, x_correspondentnetworkaddr, x_tested, x_correspondentnetwork, x_validatedpercentage,
    x_nbofvalid, x_requestref, x_notifqueue, x_requesttype, x_secbpid, x_queue, x_receivercode, x_receiverind, x_validflag, x_ownerid, x_dn, x_rmaourbic,
    x_rmacorrespondentbic, x_rmaservice, x_filemsgref, x_acktext, x_format, x_type, x_mur, x_textetype, x_creatinguser, x_fileinfo, x_company, x_text,
    x_language, x_msgheaders, x_msgtrailer, x_jaxbref, data_GTT_TEMP x_jaxbelt;

    x_memos: = x_memo1 | » -'|| x_memo2 | » -'|| x_memo3 | » -'|| x_memo4;
    x_comments: = x_comment1 | » -'|| x_comment2 | » -'|| x_comment3 | » -'|| x_comment4;
    x_correspondentAddress: = x_correspondentAddress1 | » -'|| x_correspondentAddress2 | » -'|| x_correspondentAddress3 | » -'|| x_correspondentAddress4;
    x_msgrefs: = x_msgRef1 | » -'|| x_msgRef2 | » -'|| x_msgRef3 | » -'|| x_msgRef4;

    BEGIN


    insert into donnees_xml
    (xml_id, x_ext_date, eventtype, amount, currency, State, unit, correspondentid, sender, receivernetworks, bankingpriority, applicationcode,
    ProcessCounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn, responderdn,
    swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator, critid, infapid,
    deliverynotif, comments, notes, msgseculevel, dates, tuxedopriority, filedest, stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow,
    FINCopy, msgdateval, eventdate, typereseauid, infapseq1, infapseq2, direction, priority, ack, msgrefs, amlbehavior, ownerserviceid,
    correspondentName correspondentaddress, correspondentcity, correspondentcountry, correspondentnetworkaddr, tested,
    correspondentnetwork, validatedpercentage, nbofvalid, requestref, notifqueue, requesttype, secbpid, xqueue, receivercode,
    receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref, acktext, format, xtype, wall,
    textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt)
    values
    (xmlid, x_extdate, x_eventType, x_amount, x_currency, x_state, x_units, x_correspondentId, x_sender, x_receiverNetworks, x_bankingPriority, x_applicationCode,
    x_processCounter, x_obsolescence, x_maxRetry, x_retries, x_fileSize, x_endFct, x_subType, x_field20, x_sequenceNumber, x_requestorDn, x_responderDn,
    x_SWIFTNetService, x_nonRepudiation, x_transfertRef, x_transfertInfo, x_fileDesc, x_transfertDesc, x_logicalName, x_signIndicator, x_critId, x_inFapId,
    x_deliveryNotif, x_comments, x_memos, x_msgSecuLevel, x_dates, x_tuxedoPriority, x_fileDest, x_stkMsgPDEId, x_EMTId, x_LTRcptSyno, x_LTRcpt, x_LTEmis, x_flow,
    x_FINCopy, x_msgDateVal, x_eventDate, x_typeReseauId, x_inFapSeq1, x_inFapSeq2, x_direction, x_priority, x_ack, x_msgrefs, x_amlbehavior, x_ownerServiceId,
    x_correspondentName, x_correspondentAddress, x_correspondentCity, x_correspondentCountry, x_correspondentnetworkaddr, x_tested,
    x_correspondentNetwork, x_validatedPercentage, x_nbOfValid, x_requestRef, x_notifQueue, x_requestType, x_secBpid, x_queue, x_receiverCode,
    x_receiverInd, x_validFlag, x_ownerId, x_dn, x_RMAOurBic, x_RMACorrespondentBic, x_RMAService, x_fileMsgRef, ackText, x_format, x_type, x_mur,
    x_TexteType, x_creatingUser, x_fileinfo, x_company d_text, x_language, d_msgHeaders, d_msgTrailer, x_jaxbRef, x_jaxbElt);

    Update temp_XML set status = 'Y' where XML_ID = xmlid;

    END;
    COMMIT;
    END LOOP;
    END;
    /

    1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed that his occrrence in 3 for example:

    Use the fn:string-join() function:

    path varchar2 (4000) of comments 'string-join(comments/comment, "-").

    2. how to set the value NULL if no tag is not present. Tag in XML record number can vary.

    You don't have anything specific to do in this case.

    Missing tags with a projection in the COLUMNS clause will produce a column NULL by default.

  • Concatenate the nested XML tags

    Hello

    I am looking for a solution concatenate duplicate in an xml tags.

    I need only the tags 'tag' 'type = keyword' in a field in a table.

    The sql statement that I use, I get six records and I just need a registration.

    Hope that my written English is not hard to understand what I mean.

    It is a part of the XML data.

    <? XML version = "1.0" encoding = "UTF - 8"? >

    < list >

    < article id = "25230245" title = "st" publish = "true" sender =">

    < categories >

    < naam category = "Staking" externalid = "Economy/staking" / >

    < / categories >

    < geoinfo latitude =' 52,3936' longitude' 6,142065 =' zoom = "15" / >

    < tags >

    < tag name = 'Overijssel, Raalte, Raalte' type = 'rental' / >

    < tag name = 'Overijssel, Deventer, Deventer' type = 'rental' / >

    < tag name = 'Overijssel Olst-Wijhe Wijhe' type = 'rental' / >

    < tag name = "CAD" type = "keyword" / >

    < name of tag = "vleeswarensector" type = "keyword" / >

    < name of tag = "seniorenregeling" type = "keyword" / >

    < tag name = "fnv bondgenoten" type = "Keyword" / >

    < name of tag = "werkonderbreking" type = "keyword" / >

    < tag name = 'Zwanenburg' type = "Keyword" / >

    < tag name = "staking" type = "Keyword" / >

    < tag name = "Scott" type = "Keyword" / >

    < name of tag = "La¼pack" type = "keyword" / >

    < tag name = "cnv vakmensen" type = "Keyword" / >

    < / tags >

    < publicatiedatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"

    < wijzigingsdatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"

    < printdatum datumstr = May 22, 2014 "/ >"

    < bestemming >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Deventer /' primary = "false" / >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Olst-Wijhe /' primary = "false" / >

    < bestemming channel = 'web' site = 'ST' page =' Regio/Raalte /' primary = "true" / >

    < / bestemming >

    < bron naam = "Benny Koerhuis" / >

    < figurines / >

    < / product >

    < / list >

    And it's my sql (part of a plsql procedure) statement.

    SELECT decode (upper (t1.publish), 'TRUE', 'Y', 'n')

    , trunc (to_date (substr (replace (t1.pdate, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS")) update

    , to_date (substr (replace (t1.flitstijd, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS") flitstijd

    t1.naam_flitser

    t1.sectie

    t1.titel

    t1.soort

    t2.trefwoorden

    OF flits_berichten_clob t1

    , XMLTABLE ("' / / test/artikel")

    By the WAY of XMLTYPE (t1.xml_file)

    COLUMNS publish VARCHAR2 (10) path '@publish '.

    update the PATH in VARCHAR2 (25) "publicatiedatum/@datumstr".

    , flitstijd PATH VARCHAR2 (25) "wijzigingsdatum/@datumstr".

    , naam_flitser PATH VARCHAR2 (25) "bron/@naam".

    , books VARCHAR2 (255) PATH 'bestemmingen/bestemming[@primary="true"]/@page '.

    , titel VARCHAR2 (10) path 'bestemmingen/bestemming[@primary="true"]/@site '.

    , soort PATH VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '.

    tags XMLTYPE PATH 'tags') t1

    , XMLTABLE ('/ tags/tag [@type = "keyword"] ")

    PASSAGE t1.tags

    T2 of COLUMNS trefwoorden VARCHAR2 (255) PATH "@name")

    ID WHERE = 15;

    This is the result.

    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebwerkonderbreking
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebZwanenburg
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebstaking
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebStegeman
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebLa¼Pack
    THERE21/05/201421/05/2014-11:18Benny KoerhuisRegio/Raalte.STWebCNV vakmensen

    Is it possible to concatenate the results of the last column?

    It should be "werkonderbreking, Zwanenburg, staking, Stegeman, la¼pack, cnv vakmensen" so, I get a recording instead of six.

    Thanks in advance.

    Is it possible to concatenate the results of the last column?

    Yes, use string-join function:

    ...

    titel PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@site '.
    soort PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '.
    trefwoorden PATH of VARCHAR2 (4000) 'string-join(tags/tag[@type="keyword"]/@name, ",").

    ) t1

    In this way, that you need more of the second XMLTABLE.

  • Reading XML tags

    Hello

    I have the XML below

    < RESULTS >
    < ROW >
    < COLUMN NAME = "ID" > 12688f8ac8aa6310VgnVCM10000078ccc70a___ < / COLUMN >
    < COLUMN NAME = "BRANCH_NAME" > Brooklyn < / COLUMN >
    < / ROW >
    < / RESULTS >


    Could someone help me please with a way to read only that XML tags. We do not ask the data as such.

    A query on this XML file should return

    RESULTS
    LINE
    COLUMN NAME and so on...

    Kind regards
    Houta

    Forum has many examples
    as Re: multiple xml tag values get out.

    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    Connected as apps
    
    SQL>
    SQL> with t as
      2   (select xmltype('
      3  
      4  12688f8ac8aa6310VgnVCM10000078ccc70a____
      5  Brooklyn
      6  
      7  ') xml
      8      from dual)
      9  select x.*
     10    from t,
     11         xmltable('for $i in $d/descendant::*
     12             return element r {
     13               element tag_name    {local-name($i)}, element tag_name2 {name($i)}
     14            }' passing t.xml as "d" columns tag_name
     15                  varchar2(30) path 'tag_name',
     16                  tag_name2 varchar2(30) path 'tag_name2') x
     17  /
    
    TAG_NAME                       TAG_NAME2
    ------------------------------ ------------------------------
    RESULTS                        RESULTS
    ROW                            ROW
    COLUMN                         COLUMN
    COLUMN                         COLUMN
    
    SQL> 
    
  • What is the easiest way to read a value of XML tag

    Hi all

    Im not at all experienced in the use of the XML parser library.

    How can I retrieve the value of the label?
    I use the matching node get all (see attachment). Get XML gives me:

    ABDELKADER<p class="help"> <p class="help">How can I retrieve the value of the tag (AAAA), without the XML tags directly?</p> <p class="help">Thank you all</p> <p class="reply">You can use the get node text Content.vi of the same range as the other function XML you use.</p> <p class="reply">From a node property uses the "node value".</p>

  • Windows 7 not accepted in a retail PC product key

    I have a product key genuine alternative for Windows 7 that I wanted to use to install my friend a new operating system. She has an old Windows XP retail PC. When it came time to activate the operating system by using the product key, the message was: "Product key not accepted" - and the help section, said that this is probably due to the fact that it's a PC detail that is used to have a copy of XP OEM. It is possible to activate a new OS on a computer that was previously bound to an OEM product key? Is it a particular format of the MAC address that accepts only the activation of the OEM operating system?

    The restriction that prevents the operating system that is being replaced is called Secure Boot is available only on the UEFI BIOS and is active with Windows machines 8/10. If the computer had Windows XP on it it would not Secure Boot enabled even if they are available.

    Windows XP/Vista/7 OEM systems has just had the key integrated into the installation image that checked for a tag SLIC in BIOS to check that the license was valid for the particular manufacturer and that it is not activate online or by phone.

    Disk based installations must activate online / by phone so don't check is not the license using the BIOS and ignores the built tag, even if it exists.

    If your license key is detail it should activate automatically or return to the phone Activation however product key not accepted"is not normal under these circumstances. When this message comes up? If during the installation of Windows, the computer is not online, and it is a failure the internal controls of the encrypted in the key product ID, it is not rejected by the activation servers.

    If Windows is installed and you try to activate and then download and run the MGADiag

    https://support.Microsoft.com/en-us/KB/942962

    Click on copy and then paste into an answer here.

Maybe you are looking for

  • Disable/remove password Public iPad without MDM

    I bought six air iPad (running iOS 9.2.1) for "iPad reference Bar." school library these iPads are in a public space in a kiosk of the enclosure. While I placed many restrictions on these iPads, some students keep by allowing an access code. Then the

  • Is VI file reading worksheet one reading % 3F

    I stumbled upon the reading of spreadsheet files VI and I was wondering if this is a read-only?  I am under the impression that it is not because in the Help menu is indicated the following: The VI then opens the file before reading it and the farm.

  • Tree with mulitple columns control

    How do you retrieve data from multiple columns? I can only recover data from the first column in the tree. THX

  • controlling supreme (1)

    Hi I have a game controlling supreme called TI installed very well on xp and windows 7, but when I try to play online multyplayer with Buddy on windows 7, it does not work it keeps on saying it tries to download a patch, he did the same after that I

  • nothing happens when I click 'change user '.

    Followed the steps in the PANEL re switching users, still no response. Tried the strikes and am, you are prompted for a password that does not exist.