Parshing and XML [V 10 G] data extraction

Hi Experts,

I have an XML CD catalog file. I extract the values of the fields in xml format and load it into a table of the same number of columns.

can someone help me how can I extract XML data

Example of XMl

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

<!-edited by XMLSpy®->

<>CATALOG

< CD > < TITLE > Empire Burlesque < / TITLE > < ARTIST > Bob Dylan < / ARTIST > < COUNTRY > USA < / COUNTRIES > < Columbia COMPANY > < / COMPANY > < PRICE > 10.90 < / PRICE > < YEAR > 1985 < / YEAR > < / CD >

< CD > < TITLE > hide your heart < / TITLE > < ARTIST > Bonnie Tyler < / ARTIST > < UK COUNTRY > < / COUNTRIES > < COMPANY > CBS records < / COMPANY > < PRICE > 9.90 < / PRICE > < YEAR > 1988 < / YEAR > < CD >

Greatest Hits < CD > < TITLE > < / TITLE > < ARTIST > Dolly Parton < / ARTIST > < COUNTRY > USA < / COUNTRIES > < COMPANY > RCA < / COMPANY > < PRICE > 9.90 < / PRICE > < YEAR > 1982 < / YEAR > < CD >

< CD > < TITLE > Still you have the blues < / TITLE > < ARTIST > Gary Moore < / ARTIST > < UK COUNTRY > < / COUNTRIES > < COMPANY > Virgin records < / COMPANY > < PRICE > 10.20 < / PRICE > < YEAR > 1990 < / YEAR > < / CD >

Eros < CD > < TITLE > < / TITLE > < ARTIST > Eros Ramazzotti < / ARTIST > < EU COUNTRIES > < / COUNTRIES > < BMG COMPANY > < / COMPANY > < PRICE > 9.90 < / PRICE > < YEAR > 1997 < / YEAR > < / CD

< / CATALOGUE >

Thank you

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

Emmeline

with

xml_source as

(select q' {})

Empire BurlesqueBob Dylan U.S.. Columbia 10.90 1985

Hide your heartBonnie Tyler UK CBS Records 9.90 1988

Greatest HitsDolly Parton É.-u. RCA 9.90 1982

Always you have the bluesGary Moore UK Virgin records 10.20 1990

ErosEros Ramazzotti EU BMG 9.90 1997 >

}' the_xml

of the double

)

Select x.*

of xml_source s.

XMLTable ('/ CATALOGUE/CD ')

by the way of xmltype (s.the_xml)

columns 'TITLE' path of the varchar2 (30) "TITLE."

Path of varchar2 (30) "ARTIST", "ARTIST."

Path varchar2 (5) of 'COUNTRY', 'COUNTRY ', he said.

Path varchar2 (30) "Company" "SOCIETY."

"PRICE' number path"PRICE. "

Path number 'YEAR' 'YEAR '.

) x

TITLE ARTIST COUNTRY COMPANY PRICE YEAR
Empire Burlesque Bob Dylan U.S.. Columbia 10.9 1985
Hide your heart Bonnie Tyler UK CBS Records 9.9 1988
Greatest Hits Dolly Parton U.S.. RCA 9.9 1982
Always you have the blues Gary Moore UK Virgin records 10.2 1990
Eros Eros Ramazzotti EUROPEAN UNION BMG 9.9 1997

Concerning

Etbin

Tags: Database

Similar Questions

  • I have a problem with file compression and then not be able to extract their share at a later date

    original title: file compression

    I am running Vista Home Premium on my laptop. I have problems with file compression and then not be able to extract their share at a later date. For example, I sent a file compressed to my instructor and she pointed out that she had a .zipx extension and the fact that she was unable to extract the files of ranking. Can someone help me with this problem?

    Hello

    1. do you have a third party compression/extraction of software installed on your machine?
    2. do you get an error message when you try to extract the files?
    3. is the relevant question for the particular file type?
    4. don't you make changes to your computer before the problem?

    Follow the steps and check if they help.

    Step 1:

    Open zip files is to open the folder and drag the content to another folder.

    See article:
    Compress and uncompress files (zip files)

    Step 2:

    If you have a third party software to Compress/decompress, I'd Uninstall it employs the way Windows compression and decompression of files/folders and see if they help.

  • Date format and XML (XmlType)

    Hi all

    I'm trying to generate XML in PL/SQL.
    select xmlelement("Date", sysdate).getClobVal() from dual;
    
    XMLELEMENT("DATE",SYSDATE).GETCLOBVAL()
    -------------------------------------------
    <Date>2012-07-13</Date>
    This is the date format, I was expecting (date format XML standard).

    And the Documentation of Oracle described:
    "The XML schema standard specifies that the dates and timestamps in the XML are in standard formats. Generation of XML in Oracle XML DB functions produce dates XML and timestamps in accordance with this standard. »


    When I want to create an XML from a query, I tried this
    DECLARE
    
       l_refcursor SYS_REFCURSOR;
       l_xmltype xmltype;
       l_ctx dbms_xmlgen.ctxHandle;
         
    BEGIN
    
       OPEN l_refcursor FOR select sysdate "Date" from dual;
    
       l_ctx := dbms_xmlgen.newContext (l_refcursor);
       dbms_xmlgen.setRowTag (l_ctx, null);
       dbms_xmlgen.setRowSetTag (l_ctx, null);
       l_xmltype := dbms_xmlgen.getXMLType (l_ctx);
       dbms_xmlgen.closeContext (l_ctx);
       
       dbms_output.put_line(l_xmltype.getClobVal());
    END;
    /
    
    <Date>13-JUL-12</Date>
    I was also expecting the date format XML standard, but I get the nls_date_format.

    Of course I can use to_char and specify the correct date format, or do an alter session (alter session set nls_date_format = 'RRRR-MM-DD';), but I wonder why XMLElement uses the standard and not the dbms_xmlgen.
    Or y at - it another way to use the default XML standard?

    Gert

    Or y at - it another way to use the default XML standard?

    You can return to the dbms_xmlquery based on java instead:

    SQL> alter session set nls_date_format='rrrrhh24'  ---just to show the result is independent from nls_format
    /
    Session altered.
    
    SQL> declare
      l_xmltype   xmltype;
      l_ctx       dbms_xmlquery.ctxhandle;
    begin
      l_ctx := dbms_xmlquery.newcontext ('select sysdate "Date" from dual');
      dbms_xmlquery.setrowtag (l_ctx, null);
      dbms_xmlquery.setrowsettag (l_ctx, null);
      l_xmltype := xmltype (dbms_xmlquery.getxml (l_ctx));
      dbms_xmlquery.closecontext (l_ctx);
    
      dbms_output.put_line (l_xmltype.getclobval ());
    end;
    /
    
    2012-07-13 22:45:25
    PL/SQL procedure successfully completed.
    
  • Difference between DAQ and DAQmx for acquisition of data PCI 6534

    Hello

    I use the PCI DAQ 6534 card for my digital I/o transfer. I am beginner in the labview.

    I want to store the data coming in memory and the reading of the data at the level of the trigger.

    I have seen the examples in the labview. Some have used DAQmx and DAQmx read write that screws and some have used the confg DIO port and all...

    So I want to know the difference between these two. For my application that I use?

    Hey Bo,

    First of all, I would recommend that you discover the NI 6533/6534 for NOR-DAQmx help. You may be able to find some of your answers in this help document. Now for what you try to do in your application, it looks like you are only buying data. If this is the case, with the 6534, the device acquires data in memory shipped as soon as the DAQmx series start task VI, as long as you don't start hardware triggers have in place. If you have a trigger of starting material, then will make the purchase of the aircraft after the DAQmx start task VI and only after you receive this material trigger. If you call not the DAQmx Read VI, then the data will be stored in the memory board for you, as the driver manages this data in the on-board memory storage, until reading DAQmx VI is called, which at that time, data is transferred to the Board of Directors in the memory of the computer. Once you get it in the computer's memory, you can do whatever you want with these data, as this graph or treat. If you look at the sample programs (which have been mentioned on how to find those in a previous post), you can find an example that little shows you how it works. One of the examples that you can check is called reading Dig Port-Ext Clk.VI. In this example, it sets up to read a finite number of samples and then starts the task. If you set a breakpoint on the line of the error after the VI begin, the data will be acquired in the amount of on-board memory. Then when you cancel the break of the VI, data will be extracted from the amount memory embedded in the memory system with the reading VI DAQmx. Again, the pilot takes care to put the data in the memory board for you once you start the task.

    I hope this helps. Please let us know if you have any questions or concerns about this issue. Also, certainly, discover and try to run all the programs related to the 6534 examples so that you can learn how the equipment works and how to use features to do what you want your program to do. Also, be sure to read through the help on the 6534, as well as the help of VI documentation to learn what makes each function. Thank you and have a nice day.

    Kind regards

    DJ L.

  • Calendar Gadget has all orange background and does not show any date information

    My calendar gadget all orange background and does not display the date information. I tried the various help and resets listed in the site support, and also through a search engine search.  No solution that was out there was again active. I tried to reset the file .dll, re-installed McAfee, closed, deleted and re-installed the gadget.  I'm running to do a total reinstall of Vista (not), but I don't really want to do this for a simple gadget. I don't know that there is a difficulty there. I have install a registry cleaner and then uninstalled it, but I don't remember the name of the program. Thoughts?

    It is a few extra for support measures to...

    This behavior is observed if the XML registration is missing in the system. To resolve this issue, follow these steps:

    • Close the Windows Sidebar . To do this, right-click on the Sidebar icon in the Notification area, and then clickoutput (GK: in the case of Windows 7, press Windows key + R > typetaskmgr and press enter > Proccesses tab > selectsidebar.exe > click on the end process button)
    • Open an elevated command prompt window. To do this, clickStart , click principally made programs , Accessories , right-clickguest , and then click run as administrator .
    • In the command prompt window, type the following command and press ENTER:

    regsvr32 msxml3.dll

    Similarly, run these commands:

    regsvr32 scrrun.dll

    regsvr32 jscript.dll

    If the registration was successful, you will see the message DllRegisterServer in succeeded to for each executed command. OpenWindows Sidebar (sidebar.exe ) and check if the problem is resolved.  You will need to disconnect and reconnect your user account to check if the issue has been addressed.

    Aaron
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Help file XML generating the table data

    Hello, I am new to generate XML and tried a host of options, including using variants of XMLELEMENT, XMLGEN and XMLDOM, all to nothing does not. I need to write code that will generate an XML file that will produce results such as below. Data will be taken from a table called cmdb_formatted_test and number of lines may vary. The code below seems to work almost however I get an error "not enough values. The select works if I don't mean to put the clob data in the variable.

    [code]

    DECLARE

    l_file_name VARCHAR2 (30);

    l_file_path VARCHAR2 (200);

    l_xmldoc CLOB.

    BEGIN

    l_file_path: = 'cmdb_dir ';

    l_file_name: = 'TEST_XML.xml ';

    Select xmlelement ("xmlns:ns1 = 'CILoad' ns1:CIList'),

    XMLELEMENT ("ns1:ConfigurationItem", XMLATTRIBUTES (c.transactionID, c.action),

    XMLELEMENT ("ns1:RequiredElements",

    XMLELEMENT ("ns1:AssetTag", c.assettag)

    XMLELEMENT ("ns1:CIName", c.ciname)

    XMLELEMENT ("ns1:FdaStatus", c.fdastatus)

    XMLELEMENT ("ns1:OwnerGroup", c.ownergroup)

    XMLELEMENT ("ns1:OwnerPerson", c.ownerperson)

    XMLELEMENT ("ns1:SoxCritical", c.soxcritical)

    XMLELEMENT ("ns1:Status", c.status)

    XMLELEMENT ("ns1:Type", c.type)

    ) like"ADDITIONS".

    ). getclobval()

    in l_xmldoc

    of cmdb_formatted_test c;

    dbms_xslprocessor.clob2file (l_xmldoc, l_file_path, l_file_name, nls_charset_id ('UTF8'));

    END;

    /

    [/ code]

    Need for XML output is attached

    You don't have to try things at random, all of this is well documented, with examples:

    Generate XML from the database data

    Your query, although not correct, returns two columns. That's why Oracle is complaining when you try to search in a single variable.

    Not tested, but the following should be close to what you want:

    DECLARE
    
      l_file_name      varchar2(30) := 'TEST_XML.xml';
      l_file_path      varchar2(30) := 'CMDB_DIR'; -- you probably want uppercase here
      l_xmldoc         clob;
    
    BEGIN
    
      select '' ||
             xmlserialize(document
               xmlelement("ns1:CIList"
               , xmlattributes('CILoad' as "xmlns:ns1")
               , xmlagg(
                   xmlelement("ns1:ConfigurationItem"
                   , xmlattributes(
                       c.transactionID as "transactionID"
                     , c.action as "action"
                     )
                   , xmlelement("ns1:RequiredElements"
                     , xmlelement("ns1:AssetTag", c.assettag)
                     , xmlelement("ns1:CIName", c.ciname)
                     , xmlelement("ns1:FdaStatus", c.fdastatus)
                     , xmlelement("ns1:OwnerGroup", c.ownergroup)
                     , xmlelement("ns1:OwnerPerson", c.ownerperson)
                     , xmlelement("ns1:SoxCritical", c.soxcritical)
                     , xmlelement("ns1:Status", c.status)
                     , xmlelement("ns1:Type", c.type)
                     )
                   , xmlelement("ns1:OptionalElements", null)
                   )
                 )
               )
               as clob
             )
      into l_xmldoc
      from cmdb_formatted_test c ;
    
      dbms_xslprocessor.clob2file(l_xmldoc, l_file_path, l_file_name, nls_charset_id('AL32UTF8'));
    
    END;
    /
    
  • What LKM and IKM for b/w MSSQL 2005 and Oracle 11 of fast data loading

    Hello

    Can anyone help to decide what LKMs and IKMs are best for data loading between MSSQL and Oracle.

    Staging area is Oracle. Need to load around the lines of 400Million of MSSQL to Oracle 11 g.

    Best regards
    Muhammad

    "LKM MSSQL to ORACLE (BCP SQLLDR)" may be useful in your case which uses BCP and SQLLDR to extract and laod of MSSQL and Oracle database.

    Please see details on KMs to the http://docs.oracle.com/cd/E28280_01/integrate.1111/e12644/ms_sqlserver.htm#BGBJBGCC

  • XML in a Table data. It is NOT easy for me :-(

    Hi friends.

    I have a table with 2 rows and three columns.

    The titles are at the forefront and they are: software - license - Date of expiry

    And the values are supposed to be in 2nd place.

    I have a text called 'Customer' field

    I want to have an XML file that is linked to my PDF file. This XML file must contain all my clients databases, something like this:

    Alfred:

    Software: Antivirus

    License: personal

    Expiration: 2 years

    Emily:

    Software: firewall

    License: Pro

    Expires: 3 years


    And so on with all my clients.

    I need the field text called 'Customer' to display all possible clients on my XML (drop menu, maybe) file so I can choose a customer (Alfred and Emily in this example)

    And most of all... I need the table either automatically filled in according to the selected customer.

    If I choose "Alfred", then the number of the line 2 should be supplemented with "Personal-Antivirus-2 Years", each column, a field.

    I'm really confused.

    Can you help me, please? Thank you and best regards.

    You guessed it... It is will be the easiest way to manage in this scenario.

    Have the data integrated into Acrobat and then send the file to users.

    Whenever there is a change in the XML data, you need to re - import the XML file and save the file.

    When I said "hardcode the values in the PDF file", the drop-down menus in the PDF file will have values populated means design time itself. You can do this either type the values in the property or important data XML of Acrobat.

    I hope this helps to answer your requirements...

    Let me know if you have any questions go to this approach.

    Thank you

    Srini

  • All tables and xml are be NULL problem

    Hello guys

    I'm working on a project that uses the format of loading xml, e4x and intensively, table manipulation and it was fine but now I'm stuck on a strange problem.  All code was beautiful and application work and respond in a desired way, but then mystourisly it stopped working and started to return NULL values in almost all the tables of the (internal) actionscript and XML varibales.

    Now every time I have to load the xml file and set the loaded xml internal variables, internal values get only NULL instead of data.
    The same is the situation with the berries, I created a few components in mxml, and when I passed them to reference tables, the code gets compiled successfully, but again Array has only null values [that code worked very well too]

    I wonder if Adobe Flex did an update reduced to silence or something similar and it's the result of this things!

    I use Adobe Flex 3.2 SDK 3.3 on windows Vista Ultimate Edition.

    Please check this project attached, import it and see if you face the same problem

    Thank you

    Link to the problematic project

    http://isolatedperson.googlepages.com/problemXperiment.zip

    Problem screenshot

    http://isolatedperson.googlepages.com/xmlissue.jpg

    HTTPService to load the data. You will have less problems.

    
    
         
              
         
         
         
    
    
  • HFM data extract

    Hello
    When I extracted data using the HFM client, the first line of the file is! Data.
    I load the file in a SQL server using Bulk insert table.
    I wanted to skip first line, if I use FIRSTROW = 2, it ignores the first line of data.

    When to skip lines, the SQL Server database engine looks only at the field terminators, and does not validate the data in the fields of ignored rows.
    With this statement, it would compare the fields in the table and ignore the number of endings to the field to form a line and now the line terminator.

    I can extract the data of HFM without «!» Data line"in a file? or can I pull data into a sql table directly using utilities HFM etc.?

    Thank you

    Discover Extended analytics in the Administrator's Guide. I believe that you will get exactly what you are looking for.

  • PL/SQL and XML

    So I have a little problem. I have a request that I need to have to produce XML from. I was initially doing this through htp.prn, but then I realized that some of the data that I was out to and XML file may have special characters in them, namely signs and double quotes. I decided to see if Oracle were all functions to remove special characters and replace them with the HTML counterparts (an ampersand would turn into & amp ;)) I found a few things that seemed useful, but the problem is, with the functions I found, he wanted the data to be strictly out of the database and some of the data I wanted in the XML document was also user entered on the pages. Is there something out there that will search by text AND query results to check that there are no special characters? Thank you.

    -Joshua

    The following function should work for what you are trying to do.

    htp.p(htf.escape_sc(:P1_ITEM));
    

    To escape the database columns simply include in your select statement:

    SELECT htf.escape_sc(COLUMN_NAME) alias
      FROM TABLE
    

    To escape from the elements on your page apex:

    INSERT INTO table
               (COLUMN_NAME)
         VALUES(htf.escape_sc(:P1_ITEM))
    

    Good luck

    Tyson

    Published by: Tyson Janet on November 25, 2008 16:12

  • I just got 6 seconds more and chose an old backup date of previous phone. How can I do it again?

    I just got the 6s more and chose an old backup date of previous phone. How can I do it again now that my phone is done with the set up?

    I don't know what you mean by redo. If you want to restore from a more recent backup, you can do so, providing that you have a more recent backup.

    Restore your iPhone, iPad or iPod touch from a backup - Apple Support

    If you have a backup you want to restore, you must first clear the device in settings > general > reset > erase content and settings. After the unit starts again, you will be at the activation screen and will be able to restore this backup, when you get to this point in the implementation process.

    If you back up with iTunes and you want to restore a backup from there, you will have the option to select all the backups that you have when you select restore from a backup.

  • I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes

    I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes but it says "the"iPhone"iPhone cannot be used because it requires a newer version of iTunes. Go to www.itunes.com to download the latest version of iTunes. "

    I checked and the version of itunes is the latest AID!

    DooozySue wrote:

    I checked and the version of itunes is the latest AID!

    Most likely, what you found, is that the iTunes version is the latest available for your operating system.

    The latest version of iTunes is 12.4.3.  This version requires at least OS X 10.8.5 or later version, or Windows 7 or later version.

    If your iTunes version is earlier than 12.4.3, it will probably not recognize your 6s performance iPhone iOS 9.

    If you do not have the required operating system, get first.  Then download from iTunes

    http://www.Apple.com/iTunes/download

  • I used the migration assistant to transfer data from my pc windows for my macbook pro, and it erased all my data. Is he here to retrieve these data

    I used the migration assistant to transfer data from my laptop to windows xp for my macbook pro OS X Yosemite 10.10.5 version and she erased all the data on my mac iTunes i.e., photos, documents, games, etc. Is it possible to recover these data or take it back to a State of pre migration? If not can I erase it and reload the software from scratch?

    Thank you

    Dave has

    You have a backup of Mac before moving the data from the PC?

  • Have just bought a new iMac and imported all my old data.  When I try to open a pages document it says that it cannot be opened because it is too old, and that to open it, I have to save it with Pages ' 09 first.  So, how he back up if I can't open it?

    Have just bought a new iMac and imported all my old data.  When I try to open a pages document it says that it cannot be opened because it is too old, and that to open it, I have to save it with Pages ' 09 first.  So, how he back up if I can't open it?

    Start the OS X App Store, then click on the item toolbar updates. V5.6.1 pages should be available, and this will open documents Pages ' 09, ' 08 and ' 06. In messages to this community, you should always share what version specific pages and OS X that you are currently using.

Maybe you are looking for