XMLType without "xml version = 1.0.

Hello
SELECT XMLType(CURSOR(SELECT *
                        FROM dual))
  FROM dual;
How can I get the result that
<ROWSET>
 <ROW>
  <DUMMY>X</DUMMY>
 </ROW>
</ROWSET>
and not the
<?xml version="1.0"?>
<ROWSET>
 <ROW>
  <DUMMY>X</DUMMY>
 </ROW>
</ROWSET>
Sandrine

Why do you need it without the prologue?
Is it related to your previous question? {: identifier of the thread = 2512929}

One way is to use the EXTRACT() function:

SQL> SELECT extract(
  2           XMLType(
  3             CURSOR(SELECT * FROM dual)
  4           )
  5         , '/*'
  6         )
  7  FROM dual;

EXTRACT(XMLTYPE(CURSOR(SELECT*
--------------------------------------------------------------------------------
X
 

Tags: Oracle Development

Similar Questions

  • Delete &lt;? XML version = "1.0"? &gt;

    I have a requirement in which I need to wite XML o/p file.
    I used the XMLelement function to create xml and then used Utl_file.put_raw to raw data in the file.
    But the requirement was to write the output for transactions of more than 1,00,000. So I have to break the query and run a loop and write each 10,000 records in a loop, as I was short of memory. The code works fine but the tag <? XML version = "1.0"? > comes after each iteration 10 000 IE after the next loop begins to deal with another pile of 10,000 records <? XML version = "1.0"? > header comes up so for 100,000 records once again the <? XML version = "1.0"? > happens 10 times. As I am adding o/p of the next iteration to the previous.

    It's like <? XML version = "1.0"? >
    TRANS 1
    .
    .
    .
    TRANS 10 000
    <? XML version = "1.0"? >
    TRANS 1
    .
    .
    . TRANS 10 000
    <? XML version = "1.0"? >



    My question is how to remove <? XML version = "1.0"? > my XML. I tried to convert my clob xmltype and then apply the substr, but it gives me error XML parsing failed.

    my version of oracle's 10g.


    It would be great if you could suggest a possible way to remove <? XML version = "1.0"? > mind.



    The source code is

    Published by: 965358 on December 17, 2012 07:32

    I tried to use Clob prologue newspaper is remioved, but the xml can be obsolete. It would be great if you could suggeset sort by which I can remove the my xml Prolog

    The XML is invalid because there is no root element.
    Getblobval() call generates the prologue, but as I said do not generate it in the first place.

    My suggestion would be: don't use loops, collections or utl_file.
    Oracle is very capable of generating a large XML content so you don't have to deal with it in pieces.

    I would like this:

    CREATE OR REPLACE PROCEDURE test1(
      p_entity_ref IN VARCHAR2,
      p_filepath IN VARCHAR2,
      p_filename IN VARCHAR2
    )
    IS
    
      v_xml      CLOB;
    
    BEGIN
    
      SELECT XMLElement("transactions",  --< add a root element here
               XMLAgg(
                 XMLElement("transaction",
                 /* rest of the big query here */
                 )
                 order by trans.AC_ENTRY_SR_NO --< if necessary
               )
             ).getClobVal()
      INTO v_xml
      FROM trans    trans,
           dest   dest,
           source source
      WHERE source.AC_ENTRY_SR_NO = dest.AC_ENTRY_SR_NO
      AND trans.AC_ENTRY_SR_NO = source.AC_ENTRY_SR_NO
      AND trans.ENTITY_REF = dest.ENTITY_REF
      AND trans.ENTITY_REF = source.ENTITY_REF
      AND trans.entity_ref = p_entity_ref ;
    
      -- write the file in one operation :
      DBMS_XSLPROCESSOR.clob2file(v_xml, p_filepath, p_filename);
    
    END;
    /
    
  • How to remove an xmltype table .xml file?

    Hi expert,

    I'm in I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
    SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

    I inserted 3 .xml files in an xmltype table: DOCUMENT

    SQL > SELECT OBJECT_VALUE FROM document;

    OBJECT_VALUE
    -----------------------------------------------------------------------
    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
    < code = c '51725-0.

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34" / >
    < code = c '51725-0.

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    < document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
    action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
    < root id = "09ff06d6-8b85-43dd-b5cc-e22d00f02bd0" / >
    < code = c '51725-0.

    I tried to remove an xml file which with root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34'"

    delete the document
    where xmlexists (' $p/document/id [@root = "03d6a2cd-fdda-4fe1-865d-da0db9212f34"]' in PASSING OBJECT_VALUE AS "p");

    but failed.
    Y at - it that can help any expert?

    Thank you very much!

    Cow

    Published by: cow on March 11, 2011 19:02

    Hello

    Namespace problem.
    You must declare it in the XQuery Prolog:

    DELETE FROM document
    WHERE XMLExists( 'declare default element namespace "urn:hl7-org:v3"; (::)
                      $p/document/id[@root=$root_value]'
                     passing object_value as "p",
                             '03d6a2cd-fdda-4fe1-865d-da0db9212f34' as "root_value" )
    ;
    
  • Hello. If I buy the LR without CC version for 149 USD, what caught when I buy a new PC? I'll be able to transfer it there?

    Hello. If I buy the LR without CC version for 149 USD, what caught when I buy a new PC? I'll be able to transfer it there?

    Yes, you will be able to transfer your Lightroom license to a new PC (or Mac new)

  • XML - including: &amp; quot; &amp; lt;? XML version = &amp; quot; 1.0 &amp; quot; Encoding = &amp; quot; UTF-8 &amp; quot;? &amp; gt; &amp; quot;

    When I analyze an XML document and exit:
    #xmlCode.XMLRoot.property.autoID #.

    I get this line before each field: <? XML version = "1.0" encoding = "UTF-8"? >

    for example.
    <? XML version = "1.0" encoding = "UTF-8"? >
    < autoID > 19 < / autoID >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < > 53 autoID < / autoID >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < autoID > 59 < / autoID >

    How can I stop this? I want just the number of the field.

    Also, I don't understand why it's UTF-8 when I specify iso-8859-1.

    DOH!

    rsPropDataXML.XMLRoot.property.autoID =
    19

    rsPropDataXML.XMLRoot.property.autoID.xmlText = 19

    that is, the .xmlText is the answer!

  • XML Version Master 404 file

    The Adobe Flash Player Administration Guide for Flash Player 23 (updated: 08/09/2016) refers to the Master Version XML file. However the HTTPS URI redirects to HTTP and the resource is not found.

    When this resource will be active?

    Thank you.

    $ curl - IT https://fpdownload.Macromedia.com/pub/Flash-Player/masterversion/masterversion.XML
    HTTP/1.1 302 moved temporarily
    Server: Apache
    Location: http://download.Macromedia.com/pub/Flash-Player/masterversion/masterversion.XML
    Content-Type: text/html; charset = iso-8859-1
    Content-Length: 0
    Date: Kills, 13 Sep 2016 12:49:14 GMT
    Connection: keep-alive

    HTTP/1.1 404 not found
    Server: Apache
    Content-Type: text/html; charset = iso-8859-1
    Content-Length: 0
    Date: Kills, 13 Sep 2016 12:49:14 GMT
    Connection: keep-alive

    Hello

    You use the wrong url. Please go to http://fpdownload.macromedia.com/pub/flashplayer/masterversion/masterversion.xml.

    The content is already powered.

    Thank you!

  • Adobe server does not allow public access to 32 (response XML) version

    Since I updated the payment to V32 (to remedy the failure of previous versions with iOS8) I solved the problems for download and viewing InApp purchase, but it has stopped working on our authentication of subscribers. The error that shows is the following:


    This XML file does not appear to have any information of style associated with it. The document tree is shown below.
    < results status = "NOT_FOUND" message = "resource not found". / >

    What could have happened? The thing is quite urgent because currently subscribers are able to access to...

    Thank you

    Please contact support for assistance with this enterprise. You can find contact information by logging into the dashboard http://digitalpublishing.acrobat.com/ and research in the Middle at the bottom of the page.

    Neil

  • ThinkPad X61t: can I use a pen device with WinXP without Tablet Version?

    Ladies and gentlemen,

    Please tell me the truth: I can use not compresses-version of Windows XP with a pen-Interface?

    Can I organize Pen Interface with any kind of drivers, or I need to install the Tablet PC of Windows version?

    And maybe ordinary Windows XP can become a Tablet XP version after installation of drivers of special magic?

    You know any type of software to activate the pen device and touchscreen under non-tablette WINDOWS XP.

    Or it is impossible?

    Thank you for the answers.

    Well, you can get the driver here http://www.wacom.com/productsupport/select.cfm it's only 'pen' good pilot.

    If you need to contact, you can always install driver multitouch above after that.

    Have fun with your tablet,

    sipp11

  • Bargraph tutorial without XML AS3

    Hello

    To complete a project and the need to add a flowchart to vertical bar base visually display score 2 results. Have searched extensively online and have only seen AS3 combined with XML, which for me with limited script skill is difficult to separate in order to have just AS3.

    The bar graph would have only 2 vertical columns that rises up to proportionate to the positive note (s) and 2 vertical column (high reflection of columns) which will become visible if there is a negative score (s) and starting from center of screen, down proportionate to score negative (s).

    Partitions are available in the project as 2 variables.

    Has anyone seen a bar graph like this in AS3 tutorial? (Need to create a basic building block to start, then can adapt, add from there.)

    Any help appreciated.

    Yes, use:

    paramF(mean-3*sd,1,mean+3*sd,-1);

  • How the loading image in as3 without XML?

    Hey Hi,

    Can someone help me please, I want to load image wihout using XML.

    How can I do this?

    Thank you


    JaxNa

    The only thing you need XML for is to load in a list of images... it isn't as you need. You load images and swf with a Loader object files - and there is a lot of info in the help. In short, if you can simply do:

    var myLoader:Loader = new Loader();

    myLoader.load (new URLRequest ("myimage.jpg"));

    addChild (myLoader);

  • How can I load images without XML, please?

    Hi all

    I would highly appreciate if someone can point me in the right direction. I have some AS2 code that loads the images via an xml file. I have asked me to totally eliminate the XML and have the images to be loaded from with in the library. Apart from pictures, there are other xml nodes such as:

    nom_image, image_description and others.

    What would be the best way go about eliminating the XML and get the code to load the images and other related information of the library. I'd highly appreciate your help on this, please.

    Thank you very much.

    create tables that contain the same information as the XML.

    p.s. and you use attachMovie() instead of loadMovie().

  • We have XP computers that have standard versions Adobe 6 or 7 from Adobe on them, we also have computers windows 7 without any version of adobe installed on them.  What are our options for all systems using the same version of Adobe?

    !

    Your choice is basically Acrobat XI (Pro or STD - I suggest Pro). If you have enough computers to deal with, you can talk to Adobe for license site (or volume). Compatibility problems are given to system requirements | The Acrobat product family. I have XP on a machine too, but is planning to upgrade to Windows 7. XP is now a risk to the security and very dangerous in an office environment. If you upgrade the machines (attention, Win 8.1 and even Windows 7 cannot be compatible with your hardware), then you would always buy AA XI, possibly with a volume license (you'd have to talk to the Adobe volume licensing).

    AA6 and AA7 are extensible. If you are talking about a new purchase of Acrobat for machines and probably an upgrade of the OS for XP machines.

  • self-closing tags in different versions of database.

    Hello.

    I have problems with tags of closing across different databases. The script used to test is

    declare
    --
    -data
    --
    V_XML_DATA xmltype: = XMLTYPE ("<?") XML version = "1.0"? >
    rowset <>
    < ROW >
    < PART_NUMBER > HI8005 < / PART_NUMBER >
    < / ROW >
    < ROW >
    < PART_NUMBER > RV8015 < / PART_NUMBER >
    < / ROW >
    (< / LINES > ');
    --
    -Stylesheet
    --
    V_xsl xmltype: = xmltype ("<?") XML version = "1.0"? >
    < xsl: stylesheet xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns:rs = "" urn: schemas-microsoft-com: rowset "xmlns:z ="#RowsetSchema"version ="1.0">"
    < xsl: output method = "xml" encoding = "windows-1251" Indent = "Yes" omit-xml-declaration = "yes" / >
    < xsl: template match = "/" >
    < xmlns:rs rs: data = "urn: schemas-microsoft-com: rowset" >
    < xsl: for-each select = "game of LINES/ROW" >
    < z: line xmlns:z = "#RowsetSchema" id = "811" >
    < xsl: attribute name = "Part_Number" >
    < xsl: value-of select = "PART_NUMBER" / >
    < / xsl: attribute >
    < / z: row >
    < / xsl: foreach >
    < / rs: data >
    < / xsl: template >
    < / xsl: stylesheet >
    ');
    --
    --
    --
    Start
    --
    -Transform
    --
    SELECT XMLTRANSFORM (V_XML_DATA, V_XSL)
    IN V_XML_DATA
    FROM DUAL;
    --
    -Output
    --
    DBMS_OUTPUT. Put_line (dbms_lob.substr (V_XML_DATA. GETCLOBVAL(), 255, 1));
    end;


    This running on Oracle Database 10g Release 10.1.0.5.0.
    I get this result - with self closing tags.

    < xmlns:rs rs: data = "urn: schemas-microsoft-com: rowset" >
    < z: row identifier = "811" xmlns:z = "#RowsetSchema" Part_Number = "HI8005" / >
    < z: row identifier = "811" xmlns:z = "#RowsetSchema" Part_Number = "RV8015" / >
    < / rs: data >


    run this on the Oracle 11 g Release 11.2.0.1.0 database.
    I get this result - with specific closing tags

    < xmlns:rs rs: data = "" urn: schemas-microsoft-com: rowset "xmlns:z ="#RowsetSchema">"
    < z: row identifier = "811" Part_Number = "HI8005" >
    < / z: row >
    < z: row identifier = "811" Part_Number = "RV8015" >
    < / z: row >
    < / rs: data >


    I know this is not well-formed in gR 10, 1 but I need to replicate that in 11 GR 2.
    Anyone know if this is possible, whether by changed the XSL, database installation settings (or other)? Pointers or suggestions welcome.

    Thanks for any help.
    Tony.

    Ah, now it's a different matter. We don't see the extra space in there. In the future, use the tag {code} (without the space) to encapsulate any text you want to put in shape to be kept, as I did below. I opened a bug with Oracle that space should not be presented as that changes the meaning. Here is a possible workaround as well

    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 
    
    SQL>
    SQL> declare
      2  --
      3  -- data
      4  --
      5     V_XML_DATA xmltype := XMLTYPE('
      6  
      7  
      8  HI8005
      9  
     10  
     11  RV8015
     12  
     13  ');
     14  --
     15  -- Style sheet
     16  --
     17     V_xsl xmltype := xmltype('
     18  
     19  
     20  
     21  
     22  
     23  
     24  
     25  
     26  
     27  
     28  
     29  
     30  
     31  
     32  ');
     33  V_NEW_XML_DATA xmltype;
     34  --
     35  --
     36  --
     37  begin
     38  --
     39  -- Transform
     40  --
     41     SELECT XMLTRANSFORM(V_XML_DATA,V_XSL)
     42     INTO V_NEW_XML_DATA
     43     FROM DUAL;
     44  --
     45  -- Output
     46  --
     47     DBMS_OUTPUT.PUT_LINE('Via SQL XMLTRANSFORM');
     48     DBMS_OUTPUT.PUT_LINE(V_NEW_XML_DATA.GETCLOBVAL());
     49
     50     DBMS_OUTPUT.NEW_LINE;
     51     DBMS_OUTPUT.PUT_LINE('Via PL/SQL TRANSFORM');
     52     v_new_xml_data := v_xml_data.transform(v_xsl);
     53     DBMS_OUTPUT.PUT_LINE(V_NEW_XML_DATA.GETCLOBVAL());
     54
     55  end;
     56  /
    
    Via SQL XMLTRANSFORM
    
    
     
     
     
     
    
    
    Via PL/SQL TRANSFORM
    
      
      
    
    

    As you can see, 11.1.0.6 produces a slightly different result than 11.2.0.1. I don't know why the SQL XMLTransform approach puts a new line at the beginning of the XML output so feel free to appear too. I hope that the PL/SQL method generates what you need in your version.

  • XML parsing is not the case for &lt; xmlns &gt;!

    People,

    I try to analyse a XML data using XMLTABLE and because of the presence XML namespace attribute, it does not analyze the content. That's why no results.

    If I change this to another name, it is able to retrieve the xml data. What can be done to analyze with < xmlns > suggestions?

    Examples of data

    -Table

    create table xml_table (id number, xmlc xmltype);

    -block insert xml data (sample)

    declare

    xmltype x_xml;

    Start

    delete from xml_table;

    x_xml: = xmltype (' <? xml version = "1.0" encoding = "UTF - 8" standalone = "yes"? >)

    "< ContactDetailsResponse xmlns="http://capabilities.nat.xyz.com/xsd/crm/v8/contactDetails"> ".

    < Items >

    < CUGID > CUG5000144600 < / CUGID >

    < / Items >

    < CustomerContact >

    < ListOfEmailAddresses >

    < EmailAddress >

    Y < primary > < / elementary school >

    Email from < type > < / Type >

    < lastUpdated > 2015-03-24T 06: 06:39.000Z < / lastUpdated >

    < MailAddress > [email protected] < / MailAddress >

    < IntegrationId > NC1427177191 < / IntegrationId >

    < ListOfEmailconsentPermission >

    < EmailconsentPermission >

    < type > consent to email < / Type >

    < addressId > ABC. [email protected] < / addressId >

    < value > No. < / value >

    < confirmedDate > 2014-04-22 + 01:00 < / confirmedDate >

    820ZCAV190 < accountId > < / accountId >

    < / EmailconsentPermission >

    < / ListOfEmailconsentPermission >

    < / EmailAddress >

    < EmailAddress >

    Email from < type > < / Type >

    < lastUpdated > 2013 - 10 - 04T 07: 51:55.000 + 01:00 < / lastUpdated >

    < MailAddress > [email protected] < / MailAddress >

    < IntegrationId > 921ECAV190 < / IntegrationId >

    < ListOfEmailconsentPermission >

    < EmailconsentPermission >

    < type > consent to email < / Type >

    < addressId > [email protected] < / addressId >

    < value > No. < / value >

    < confirmedDate > 2013-10-04 + 01:00 < / confirmedDate >

    820ZCAV190 < accountId > < / accountId >

    < / EmailconsentPermission >

    < / ListOfEmailconsentPermission >

    < / EmailAddress >

    < / ListOfEmailAddresses >

    < impairmentDetails >

    < impairmentFlag > N < / impairmentFlag >

    < / impairmentDetails >

    < createdBy > 920321698 < / createdBy >

    < createdOn > 2013 - 10 - 04T 07: 51:55.000 + 01:00 < / createdOn >

    < lastModifiedBy > JUMI < / lastModifiedBy >

    < lastModifiedOn > 2015-03-24T 06: 06:39.000Z < / lastModifiedOn >

    < / CustomerContact >

    (< / ContactDetailsResponse > ');

    insert into

    xml_table

    values (1, x_xml);

    commit;

    end;

    /

    -The petition to analyze and extract

    SELECT x1.prim,

    x 1. ETYPE,

    x1.EmailID,

    x 2 .account_num,

    x 2 .addr_id

    OF xml_table x,.

    XMLTABLE)

    ' / ContactDetailsResponse, CustomerContact, ListOfEmailAddresses, EmailAddress.

    PASSAGE X.XMLC

    COLUMNS prim VARCHAR2 (100) PATH '. / primary ',

    ETYPE VARCHAR2 (100) PATH '. / Type',

    EmailID VARCHAR2 (100) PATH "MailAddress".

    child_xml PATH of XMLTYPE '.') x 1,

    XMLTABLE)

    "/ EmailAddress/ListOfEmailconsentPermission/EmailconsentPermission.

    PASSAGE x1.child_xml

    COLUMNS account_num VARCHAR2 (100) PATH "accountId"

    addr_id VARCHAR2 (100) PATH 'addressId') x 2

    WHERE prim = 'Y ';

    -The result

    ETYPE PRIM EMAILID ACCOUNT_NUM ADDR_ID

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

    Y Email [email protected] 820ZCAV190 ABC. [email protected]

    Let me know for any trouble again!

    Thank you!

    Post edited by: Ashu_Neo modified the e-mail ID and exit.

    Specify namespace in XMLTABLE as below (untested)

    SELECT x1.prim,

    x 1. ETYPE,

    x1.EmailID,

    x 2 .account_num,

    x 2 .addr_id

    OF xml_table x,.

    XMLTABLE (XMLNamespaces (default 'http://capabilities.nat.xyz.com/xsd/crm/v8/contactDetails'),

    ' / ContactDetailsResponse, CustomerContact, ListOfEmailAddresses, EmailAddress.

    PASSAGE X.XMLC

    COLUMNS prim VARCHAR2 (100) PATH '. / primary ',

    ETYPE VARCHAR2 (100) PATH '. / Type',

    EmailID VARCHAR2 (100) PATH "MailAddress".

    child_xml PATH of XMLTYPE '.') x 1,

    XMLTABLE (XMLNamespaces (default 'http://capabilities.nat.xyz.com/xsd/crm/v8/contactDetails'),

    "/ EmailAddress/ListOfEmailconsentPermission/EmailconsentPermission.

    PASSAGE x1.child_xml

    COLUMNS account_num VARCHAR2 (100) PATH "accountId"

    addr_id VARCHAR2 (100) PATH 'addressId') x 2

    WHERE prim = 'Y ';

    Thank you

    Ann

  • How to retrieve several key/XML attributes

    Hi community, we get this doc XML, we want to extract the Alias. As the Alias is defined as several key/attribute pairs. How can we do this? The sql below works but when how we flatten alias so the button under the column name and the value is value line?

    with xmltst as (select
    --/SWs/SW[1]/Aliases/Alias[4]
    xmltype (
    '<?xml version="1.0" encoding="UTF-8"?>
    <SWs version="1.0" xsi:schemaLocation="http://xmlns.kazuneric.com/it/eng/v1 /kazuneric/v1/AssDataInternal-1_0.xsd"
    xmlns="http://xmlns.kazuneric.com/v1" xmlns:ext="http://xmlns.kazuneric.com/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <Aliases>
            <Alias Key="ProxyVersion">5.5.7075.0</Alias>
            <Alias Key="SiliconUnitsGenerationComments">9 units missing out of 959</Alias>
            <Alias Key="ReconWaferScribedID">82541239.0106C3</Alias>
            <Alias Key="ReconLotID">000PM50601P.0M0</Alias>
            <Alias Key="PnP_ProcessSegment">RECON</Alias>
            <Alias Key="PnP_EquipmentID">3DPNP6-D</Alias>
            <Alias Key="PnP_ProcessModule">RECON</Alias>
            <Alias Key="PnP_OperationName">RECON_PNP</Alias>
            <Alias Key="PnP_OperationNumber">052</Alias>
            <Alias Key="PnP_Operator">10010512</Alias>
            <Alias Key="PnP_ReconCarrierID">1020349</Alias>
            <Alias Key="PnP_ReconTapeBatchID">tape batch example</Alias>
            <Alias Key="PnP_StartTimestamp">2015-02-08T11:07:43+08:00</Alias>
            <Alias Key="PnP_EndTimestamp">2015-02-08T11:07:43+08:00</Alias>
          </Aliases>  
    <SW s_ID="T6B890.00-01" t_ID="T6B890.00">
          <Ds>
    <De sX="59" sY="-57" rX="7" rY="22" m_ID="L" eTime_s="2014-12-12T02:22:11+08:00" eTime_e="2014-12-12T02:22:42+08:00" mst="0.631"/>
    <De sX="70" sY="-57" rX="7" rY="23" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:22:33+08:00" mst="0.217"/>
    <De sX="69" sY="-57" rX="47" rY="1" m_ID="R" eTime_s="2014-12-12T02:22:16+08:00" eTime_e="2014-12-12T02:22:56+08:00" mst="0.974"/>
    </Ds>
    </SW>
    <SW s_ID="T6B890.00-02" t_ID="T6B890.00">
    <Ds>
    <De sX="56" sY="-1" rX="72" rY="19" m_ID="R" eTime_s="2014-12-12T02:36:01+08:00" eTime_e="2014-12-12T02:36:29+08:00" mst="0.541"/>
    <De sX="57" sY="-1" rX="39" rY="42" m_ID="L" eTime_s="2014-12-12T02:22:12+08:00" eTime_e="2014-12-12T02:23:01+08:00" mst="0.426"/>
    <De sX="58" sY="-1" rX="72" rY="20" m_ID="R" eTime_s="2014-12-12T02:36:07+08:00" eTime_e="2014-12-12T02:36:18+08:00" mst="0.716"/>
    </Ds>
    </SW>
    </SWs>') xmldata
    from dual
    )
    SELECT
    x1.s_id, x1.t_id,x2.*
    FROM xmltst t,
    XMLTABLE (
              xmlnamespaces(
                            default 'http://xmlns.kazuneric.com/v1'
                           ),
    '/SWs/SW'
    PASSING t.xmldata
    COLUMNS s_ID varchar2(30) PATH '@s_ID',
    t_ID varchar2(30) PATH '@t_ID',
    ds xmltype PATH 'Ds'
    ) x1
    ,XMLTABLE (
              xmlnamespaces(
                            default 'http://xmlns.kazuneric.com/v1'
                           ),
    'Ds/De'
    PASSING x1.ds
    COLUMNS sX number PATH '@sX',
    sY number PATH '@sY',
    rX number PATH '@rX',
    rY number PATH '@rY',
    eTime_s varchar2(30) PATH '@eTime_s',
    eTime_e varchar2(30) PATH '@eTime_e',
    mst number PATH '@mst'
    ) x2
    

    Just to add more columns to X 3:

    with xmltst in (select

    -/ SWs/SW [1] / alias/Alias [4]

    XmlType)

    '

    http://xmlns.kazuneric.com/it/Eng/v1 /kazuneric/v1/AssDataInternal-1_0.xsd.

    "xmlns ="http://xmlns.kazuneric.com/v1"xmlns:ext ="http://xmlns.kazuneric.com/v1"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance">".

         

            5.5.7075.0

            9 missing units on 959

            82541239.0106C3

            000PM50601P.0M0

            RECON

            3DPNP6-D

            RECON

            RECON_PNP

            052

            10010512

            1020349

            example of batch of tape

            2015 02-08 T 11: 07:43 + 08:00

            2015 02-08 T 11: 07:43 + 08:00

            

         

    XMLDATA ')

    of the double

    )

    SELECT

    x 1 .s_id, x1.t_id,

    x 3. ProxyVersion,

    X3.comments,

    X2.*

    OF xmltst t.

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "/ SWs/SW.

    PASSAGE t.xmldata

    COLUMNS s_ID varchar2 (30) path "@s_ID",.

    t_ID varchar2 (30) path "@t_ID",.

    DS xmltype PATH "/ SW/Ds.

    ) x 1

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "Ds/en.

    PASSAGE x1.ds

    SX number PATH "@sX"COLUMNS,

    sY number PATH "@sY",

    rX number PATH "@rX",

    rY number PATH "@rY",

    eTime_s varchar2 (30) path "@eTime_s",.

    eTime_e varchar2 (30) path "@eTime_e",.

    STD number PATH "@mst"

    ) x 2,

    XMLTABLE)

    XmlNamespaces)

    default 'http://xmlns.kazuneric.com/v1'.

    ),

    "/ SWs/alias.

    PASSAGE t.xmldata

    COLUMNS

    ["Varchar2 (15) PATH of the ProxyVersion ' Alias[@Key="ProxyVersion "]',

    Comments Varchar2 (20) PATH "Alias[@Key="SiliconUnitsGenerationComments"]"

    ) x 3

    /

    S_ID T_ID PROXYVERSION COMMENTS SX SY RX RY ETIME_S ETIME_E STD
    ------------ --------- --------------- -------------------- --- --- --- --- ------------------------- ------------------------- -----
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss-59 57 7 22 2014-12 - T 12, 02: 22:11 + 08:00 12-2014-T 12, 02: 22:42 + 08:00.631
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss 70 57 7 2014 23-12 - T 12, 02: 22:12 + 08:00 12-2014-T 12, 02: 22:33 + 08:00.217
    T6B890.00 - 01 T6B890.00 5.5.7075.0 9 units Miss 69 57 47 1 2014-12 - T 12, 02: 22:16 + 08:00 12-2014-T 12, 02: 22:56 + 08:00.974
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units Miss 56-1 72 19 2014-12 - T 12, 02: 36:01 + 08:00 12-2014-T 12, 02: 36:29 + 08:00.541
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units miss at 57-1 39 42 2014-12 - T 12, 02: 22:12 + 08:00 12-2014-T 12, 02: 23:01 + 08:00.426
    T6B890.00 - 02 T6B890.00 5.5.7075.0 9 units miss at 58-1 72 20 2014-12 - T 12, 02: 36:07 + 08:00 12-2014-T 12, 02: 36:18 + 08:00.716

    6 selected lines.

    SQL >

    SY.

Maybe you are looking for

  • Can I recover my saving a .tmp file?

    I exported my file a .aif, but something in the process of glitched at the end and the file saved as .tmp instead of .aif. Then garageband crashed before I could save the .band file, so I lost all the tracks in the project. The .tmp file is pretty bi

  • Impossible to pass to el captain

    I have a MacBook Pro with installed Yosemite. I should be able to upgrade to El Captain but for some reason I can't. Download it in the App Store does not yet (it says 0 bytes, calculation) and it has been like this for days. I have no idea what to d

  • What is the function of password HARD drive physically?

    Acer Aspire E3 I put a password on the HARD drive in the BIOS, and I see that it is opposed to access F12 boot without the password menu, thus preventing boot from somwething like a Linux Live CD (good!). My question is, in addition to password lock

  • Can not stop SPAM email

    How to stop these emails?  It's the address 'from': unknown sender@unknowndomain

  • Could not load the windows7 on new Palit Geforce 8400 GS

    I replaced my defective Nvidia Geforce 8400 GS with a Palit Nvidia Geforce 8400 GS. I installed the drivers, but Windows 7 will not progress past the logo.  I checked with Nvidia while in safe mode / networking and also Nvidia let check my installed