How to analyze data from XML with prefix?

Hi people,

I have a XML, the tags are prefixes. I would like to analyze using a select statement. Any ideas?

[Sample XML | http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_or.cgi?ico=46972501]

I tried this:
select xml
 from
   (  select 
            httpuritype('wwwinfo.mfcr.cz/cgi-bin/ares/darv_or.cgi?ico=46972501').getXML() xml
      from dual
    );
This just returns the XML code.


select  x.ico,
        x.org_name
    from dual d
         ,XMLTABLE('/are:Ares_odpovedi/are:Odpoved/D:Vypis_OR'
                    PASSING httpuritype('http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_or.cgi?ico=46972501').getXML()
                    COLUMNS
                       ico varchar2(50) PATH 'D:ZAU/D:ICO'
                      ,org_name varchar2(200) PATH 'D:ZAU/D:OF'
                    )  x
   where rownum = 1
 
ORA-19228: XPST0008 - undeclared identifier: prefix 'are' local-name 'are:Ares_odpovedi'
No idea how just get all the details in columns?

Thank you
Tomas

Add xmlnamespaces xmltable

select  x.ico,
        x.org_name
    from XMLTABLE(
         xmlnamespaces('http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3' as "are"
         , 'http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_datatypes/v_1.0.3' as "D"),
         '/are:Ares_odpovedi/are:Odpoved/D:Vypis_OR'
                    PASSING httpuritype('http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_or.cgi?ico=46972501').getXML()
                    COLUMNS
                       ico varchar2(50) PATH 'D:ZAU/D:ICO'
                      ,org_name varchar2(200) PATH 'D:Vypis_OR/D:ZAU/D:OF'
                    )  x
   where rownum = 1

not tested

Tags: Oracle Development

Similar Questions

  • to retrieve data from xml data type

    Hello...
    I have a doubt in the oracle database... Here's how to retrieve data from xml data type?

    Like this...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select xmltype('
      2  
    3 4 toMonth5 5 ctTestPan1 6 costType2 7 toYear2012 8 fromMonth12 9 fromYear2011 10 11
    ') as xml from dual) 12 -- 13 -- end of sample XMLDATA, use below query on your own table etc. as required 14 -- 15 select x.* 16 from t 17 ,xmltable('/DETAILS/FIELDS_VALUES/FIELD' 18 passing t.xml 19 columns name varchar2(30) path './NAME' 20 ,val varchar2(10) path './VALUE' 21* ) x SQL> / NAME VAL ------------------------------ ---------- toMonth 5 ctTestPan 1 costType 2 toYear 2012 fromMonth 12 fromYear 2011 6 rows selected.
  • How to transfer data from oracle to the web service using ODI with axis2 tech

    Hi all

    Can someone cause a document or markets about 'How to transfer data from oracle to the web service with the help of ODI with AXIS2 technology'
    If any person with a document or markets, please share it with me

    Thank you
    Phani

    I can give you a few examples of web services in ODI, perhaps that you find them useful?
    Try: -.
    http://John-Goodwin.blogspot.com/2009/04/ODI-series-Web-services.html
    http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-3.html
    http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-4.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to transfer data from my computer to a new phone

    How to transfer data from my computer/Itunes to a new device? I downloaded all my data from an Iphone 4 on my computer and I wonder how to transfer all of these data to an Iphone 5 that I own. I need to my emails and text messages transfer too. Any ideas? Email that I have Setup with my phone is an email from work, so it is important that I do not lose one of them.

    You must put all your media files in iTunes. Synchronize your phone using iTunes.

    iTunes - Apple Support

    iPhone - Apple Support

  • How to load data from ms sql to the by the file rules and maxl essbase

    Hi, everybody!
    Pretty Shure the kind of topic exists already on the forum, but unfortunately can't find it.

    I want to understand, how to load data from the database to ms sql for the PB of essbase application.

    (I) so I have:
    1. a request for 'society '.
    2 and its database 'Plan '.
    3. with simple outline, which contains only two dimensions:

    -The time period < 1 > (Label only)
    -Total year (~)
    -Qtr1 (+)
    Jan (+)
    Feb (+)
    Mar (+)
    -Qtr2 (+)
    APR (+)
    May (+)
    Jun (+)

    -Accounts < 1 > (Label only)
    -Lost / based (~) (Label only)
    -Revenues (+)
    L1.1 (+)
    L1.2 (+)
    -Costs (-)
    L2.1 (+)
    L2.2 (+)

    (II) also, I created a rules file called "CO_DWH" and associated with this schema
    It (Rules file) a 3 columns:
    Data of the 'period', 'account '.

    There is also the option checked "load data".

    (III) in MS SQL Server, I have a database of "hypdb" and "essadmin" with "password" login

    (IV) I executed my bat file:
    C:\Hyperion\EssLoad.bat
    There is only one line:

    EssLoad.bat-
    startMaxl.cmd EssLoad.txt
    ----------------------------------------------

    EssLoad.txt-
    login password admin on erpserver;
    Import database data Company.Plan connect in essadmin password using the server rules_file 'CO_DWH' error abort;
    disconnection;
    "exit";
    --------------------------------------------


    All plans that I copied well worked ERP system, but I don't understand, this is exactly table in the MS SQL database, data loading to essbase db?

    TOU have to do a few things
    1. on the server of Essbase, put in place a system odbc for your MySQL database connection
    2. in the State of charge, go to the file menu and select open source SQL database and in the source of data in your SQL statement. A few tips. Where it says select, don't put in the select Word and when he says to not put in of. The system adds for you. TI enter a simple SQL statement is to do this in the box so select if your SQL would be normanlly as select * from myTable just enter the code as * from myTable in the upscale neighborhood

    The ol/recover the click and fill your connection information. Should bring back the data in the State of charge. Save the State of charge and use

  • How to transfer data from laptop to external hard drive?

    How to transfer data from laptop to external hard drive?

    my model is vgn-cr323.

    Thanks in advance

    Let me provide you with General information on how you can transfer data from your computer to an external drive.

    To transfer the data, plug the USB cable into the correct port. Usually, your computer will know that he has a new disc attached and a pop box up will warn you. It will scan to determine what to do with the new connection and your computer will assign a drive letter (for example, drive G: and so on.) This will allow you to transfer data to the external hard drive just like you would move files on your internal hard drive.

    Once you have the USB cable plugged into your computers port (and the other end plugs into the external drive) you can now start to save files you want on the external hard drive.

    Open the item (s) or folder (s) you want to transfer or save on your external hard drive. There are two ways to save external hard disk 1). If you have only one or two things to save, you can open each item, click on file / record under... and choose the letter/drive (for example, drive G corresponding to that of your external hard drive, click Save.) This he recorded on the external hard drive.

    For more information on your model Asia Pacific computer we recommend contacting Sony's Support Center in your area at http://www.sony-asia.com/section/support.

    If my post answered your question, please mark it as "accept as a Solution.

  • How to erase data from the iphone if I lost and iphone is offline

    How to erase data from the iphone if I lost and iphone is offline

    < post branched out by host >

    Hello

    What to do if your iOS device is turned off or offline?

    If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.

    If your iPhone, iPad or iPod touch is lost or stolen - Apple supports

  • How to delete data from the iPhone 5 c?

    How to remove data from my iPhone 5 c?

    What do you mean by data? Applications, photos, music??  It depends on what you're trying to delete.

  • How to transfer data from a mac mini in 2006 for a new?

    How to transfer data from a mac mini in 2006 for a new?

    The following can help:

    Move your content to a new Mac - Apple Support

    OS X: manually the Data Migration from another Mac - Apple Support

  • How to save data from the COM port to file?

    Hi all

    can someone tell me please how to save data from the COM port on file? I transfer 1 byte of serial port... attached is the image of the vi... very basic.

    I would like to save the data in a table... I mean, 1 data--> data--> data tab 2 tab 3rd--> tab

    and so on... can anyone help?


  • How to acquire data from the memory of the meter

    I am a beginner of Labview. I don't know how to acquire data from the memory of the meter.

    I read a few examples of data acquisition, but apparently not similar to my case. I can't use DAQ in my computer, because I don't have DAQ card.

    Could someone give me some pointers? Similar examples would be great.


  • How to transfer data from USB key

    How to transfer data from the reader flash player (C), when you open send it to it does not have this option

    Drag & drop.

  • How to erase data from 2 printers I want to throw - HP Laser Jet CP1215 &amp; HP Laser Jet III

    How to erase data from 2 printers I want to throw - HP Laser Jet - CP1215 & HP Laser Jet III thank you

    The CP1215 can be reset as described in the paper here.  The Laserjet III has no memory, which would keep the work print or any other private beyond information to remove the power.

  • How to transfer data from an old laptop (broken screen) to a new laptop

    How to retrieve data from an old laptop, to transfer to the new laptop. the problem is that the screen is broken on the old portable th.

    From Internet Explorer

    Original title: data transfer

    The easiest way would be to put his HARD drive in a box that connects to the computer by USB.

    This is just an example - http://www.amazon.co.uk/Hard-Drive-Caddy-Case-Enclosure/dp/B003MVW2SM

    You probably have a 2.5 HDD "because I know that all laptops do.  If you need to buy an enclosure for a 2.5 drive "[not a disk 3.5" that could come from a desktop computer].

    Almost all cases derive the power to drive the HARD drive to the USB itself [rather than an external power].  If you see one that needs an external power supply, then you are probably looking to the wrong thing.

    You need to know if the HARD drive is IDE or SATA.  It depends on the age of the computer.  Your computer's manual should tell you or you can whip the HARD drive just to have a look.

  • How to recover data from the choicefield retained

    Hello

    How to recover data from the choicefield retained

    Thank you

    SujithRavindran

    getSelectedIndex method will help you.

Maybe you are looking for