How to parse data from XML with prefix?

Hi folks,
I have an XML which tags include prefixes. I would like to parse it using a select. 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 XML.
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'Any idea how to simply get all details into columns?
Thanks,
Tomas

add xmlnamespaces to 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 = 1not tested

Similar Messages

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to fetch data from Mysql with SSL.

    I am using jdk1.5 and mysql 5.0.
    How to fetch data from Mysql with SSL
    I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
    It shows error. how to fetch

    I have created certificate in mysql and checked in mysql.
    mysql>\s
    SSL: Cipher in use is DHE-RSA-AES256-SHA
    but through ssl how to fetch data in java.

  • How to parse contents from XML file in Java

    Hi All,
    I have a scenario like this . I have one xml file with key value pairs of ( name , URL ) . I have retrieved contents from XML file , now I want to parse these contents and store in a bean object.
    How to parse Contents of XML file??
    Thanks in advance,
    Rajendra.

    Hi All,
    I have a scenario like this . I have one xml file with key value pairs of ( name , URL ) . I have retrieved contents from XML file , now I want to parse these contents and store in a bean object.
    How to parse Contents of XML file??
    Thanks in advance,
    Rajendra.

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to fetch data from XML and store it in internal table

    Hi All,
    Can anyone help me out, in fetching data from xml and store it in an internal table. Is there any standard function module is there?
    Regards,
    Karthick

    to do this you can either develop a XSLT program and use it with CALL TRNSFORMATION key word to tranform the XML into itab .
    (search the ABAP General forum, i have posted few samples)
    or simply use the following FM which converts your XML into a itab of name value pair (name would holw the element name and value would hold the value of the element) which you can then loop and read it to your itb.
    data:             xmldata type xstring .
    data: result_xml type standard table of smum_xmltb .
    data: return type standard table of bapiret2 .
    CALL FUNCTION 'SMUM_XML_PARSE'
      EXPORTING
        xml_input       = xmldata
      TABLES
        xml_table       = result_xml
        return          = return .
    Regards
    Raja

  • How to retrive data from .XML file to JMS

    hi friends.. this is vamsi from india.. i have been working on jsp, java bean, xml, jms, message driven bean , ejb and database from last couple of days. but i am not able to retrieve data from fields in xml file to jms. can any one help me out in retrieving the data from xml to jms..
    thanking you,
    vamsi.

    Database but we are not able to retrieve the values
    from XML to JMS."We are not able to" is too vague a statement. An answer to this could well be "Did you turn your computer on?"
    So again, please post formatted code showing what you have done and where you are stuck.
    Perhaps an error message and/or a stack trace if appropriate.

  • How to parse data from a text file with no convenient delimiters?

    I need to read data from a text file.  This file contains one line of data with the repeating pattern "time 00 ADVar2: ___ Height: ____ time 01 ADVar2: ___ Height: ___ ..."  I need LabView to parse out the "time" and "height" values, build an array with the values, and graph the correlation on an X&Y plot.  Does Labview have an automated way to read to the input data file and parse out the correct values, even without convenient delimiters?  Thank you.

    You actually do have a convenient delimiter: "time". Thus, you can make an array using that as the delimiter. Only caveat is that the first array element will be empty. Then you can conveniently use the Scan From String function in a for-loop. Something like this:
    Message Edited by smercurio_fc on 11-21-2008 03:13 PM
    Attachments:
    Example_VI.png ‏9 KB

  • How to retrieve data from xml file into obiee reports

    Hi all,
    I've got a situation here. A xml file is stored as blob in oracle database table. Now i need to retrieve data/info from that xml file into obiee reports. How am i supposed to proceed with this ?

    I will go for a table function:
    http://gerardnico.com/wiki/database/oracle/table_function
    In two words, you can create a function that behave as a table. Then you create a function to pick up your xml, you parse it and you send back the rows.
    I know that Oracle has also a library for XML files but I never use it until now.
    Success
    Nico

  • How to extract data from xml file in owb 10.2?

    I have to load data from an xml file into a relational table , may i know how to do it in owb 10.2.

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to retrieve data from XML

    I have a scenario where I need to read data from database of xmltype (data type)
    Table Structure :
    Create table Ex_Tb (id number(30),emp_data XMLType );
    I can save xml content in database,
    Sample
    insert into Ex_Tb values( 1, xmltype ('<?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata>'));
    Data inserted .
    When retrieved from DB I see the data in the generated BO as given below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ExteOutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/pcbpel/adapter/db/Exte file:/C:/JDeveloper/mywork/Application1/Project1/xsd/Exte.xsd" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/Exte">
    <ExteOutput>
    <SDD_XML_REQ_DATA_GETCLOBVAL__><?xml version="1.0" encoding="UTF-8" ?><userdata><uniqueid>54321</uniqueid><name>moorthi</name><age>25</age><city>Chennai</city></userdata></SDD_XML_REQ_DATA_GETCLOBVAL__>
    </ExteOutput>
    </ExteOutputCollection>
    My Question :
    1. How to retrive values of individual tags contained within the embedded XML so that it can be mapped to a BO?
    Basically I would like to map uniqueId, name,age,city from xml to a BO.
    Rgds,
    Krishna

    Hi Krishna,
    I'm not sure but are you selecting the data from the XMLType column as given in the section Using XMLType in an SQL Statement in the below doc?
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96620/xdb04cre.htm#1030582
    Regards,
    Neeraj Sehgal

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • How to extract data from CRM with Data Service?

    Hi all,
                 I'll try to explain briefly the main issue; We need to read or extract data from SAP CRM with Data Service tool, then we'll show the data with webi, but now I would like to know if there are some standard tool as a rapid mart (i mean that it doesn't exists) but if some one knows how it works and if it's possible, it could be very helpful for us.
    BW option doesn't ok because the client needs a lot of queries for a report and the standard tool in our project is Data Service.
    Thanks in advance, and ask all u need if it can be a help for answer the question.
    Best Regards.
    Edited by: Cantabria on Jun 7, 2011 1:14 PM

    Hi,
    Your very familiar with LO data source even though your getting doubts on it.
    LBWE/SM13 belongs to only LO Data sources.
    CRM data sources also have delta settings based on data source.
    You can search on google about CRM data sources by using data source names.You may get some useful information.
    Before using CRM Data sources, CRM functional team need to set proper configurations at CRM system. those also you can easily get form google.
    use search term as " CRM - BW Adapter settings".
    Like other standard data sources for crm also,
    we need to activate from RAS5 and do the modification at RSA6.
    test at RSA3 and replicate into BW. Do the rest of the flow at bw system.
    Thanks

  • How to populate data from XML to SQLserver 2008

    Hi 
    I have following XML file data. I need to create table in sql sever and load the data. I dont know how to read and load the file located at C:Drive.
    Please kindly help me on loading the data into table
    This is what I see in the file located on C drive - invoiceXML: 
    <?xml version="1.0" encoding="utf-8"?>
    <CLinv xmlns="http://www.sdfsfdfsfd.com">
      <billCom xmlns="">billCom1</billCom>
      <remittance xmlns="">
        <remCom>remCom1</remCom>
      </remittance>
      <summary xmlns="">
        <title>title1</title>
        <TBAmt>1</TBAmt>
        <totalNC>1</totalNC>
        <accountAging>
          <past3DAm>1</past3DAm>
          <tPDe>1</tPDe>
        </accountAging>
        <items>
          <item>
            <itNo>1</itNo>
            <NC>1</NC>
          </item>
          <item>
            <itNo>23</itNo>>
            <NC>23</NC>
          </item>
          <item>
            <itNo>34</itNo>
            <NC>34</NC>
          </item>
        </items>
      </summary>
      <GrpDet xmlns="">
        <detailGrouping>
          <grouping>grouping1</grouping>
          <details>
            <detail>
              <CNo>CNo1</CNo>
              <Namtt>1</Namtt>
            </detail>
            <detail>
              <CNo>CNo2</CNo>
              <Namtt>23</Namtt>
            </detail>
            <detail>
              <CNo>CNo3</CNo>
              <Namtt>34</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping2</grouping>
          <details>
            <detail>
              <CNo>CNo4</CNo>
              <Namtt>0.9</Namtt>
            </detail>
            <detail>
              <CNo>CNo5</CNo>
              <Namtt>1.1</Namtt>
            </detail>
            <detail>
              <CNo>CNo6</CNo>
              <Namtt>23</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping3</grouping>
          <details>
            <detail>
              <CNo>CNo7</CNo>
              <Namtt>34</Namtt>
            </detail>
            <detail>
              <CNo>CNo8</CNo>
              <Namtt>0.8</Namtt>
            </detail>
            <detail>
              <CNo>CNo9</CNo>
              <Namtt>1.2</Namtt>
            </detail>
          </details>
        </detailGrouping>
      </GrpDet>
    </CLinv>

    Sorry This is the correct Data:
    <?xml version="1.0" encoding="utf-8"?>
    <CLinv xmlns="http://www.sdfsfdfsfd.com">
      <billCom xmlns="">billCom1</billCom>
      <remittance xmlns="">
        <remCom>remCom1</remCom>
      </remittance>
      <summary xmlns="">
        <title>title1</title>
        <TBAmt>1</TBAmt>
        <totalNC>1</totalNC>
        <accountAging>
          <past3DAm>1</past3DAm>
          <tPDe>1</tPDe>
        </accountAging>
        <items>
          <item>
            <itNo>1</itNo>
            <NC>1</NC>
          </item>
          <item>
            <itNo>23</itNo>>
            <NC>23</NC>
          </item>
          <item>
            <itNo>34</itNo>
            <NC>34</NC>
          </item>
        </items>
      </summary>
      <GrpDet xmlns="">
        <detailGrouping>
          <grouping>grouping1</grouping>
          <details>
            <detail>
              <CNo>CNo1</CNo>
              <Namtt>1</Namtt>
            </detail>
            <detail>
              <CNo>CNo2</CNo>
              <Namtt>23</Namtt>
            </detail>
            <detail>
              <CNo>CNo3</CNo>
              <Namtt>34</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping2</grouping>
          <details>
            <detail>
              <CNo>CNo4</CNo>
              <Namtt>0.9</Namtt>
            </detail>
            <detail>
              <CNo>CNo5</CNo>
              <Namtt>1.1</Namtt>
            </detail>
            <detail>
              <CNo>CNo6</CNo>
              <Namtt>23</Namtt>
            </detail>
          </details>
        </detailGrouping>
        <detailGrouping>
          <grouping>grouping3</grouping>
          <details>
            <detail>
              <CNo>CNo7</CNo>
              <Namtt>34</Namtt>
            </detail>
            <detail>
              <CNo>CNo8</CNo>
              <Namtt>0.8</Namtt>
            </detail>
            <detail>
              <CNo>CNo9</CNo>
              <Namtt>1.2</Namtt>
            </detail>
          </details>
        </detailGrouping>
      </GrpDet>
    </CLinv>

  • How to load data from XML DOM into tables using Business Components

    <p>
    Hi,
    </p>
    <p>
    I need to upload XML file (it&#39;s not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
    </p>
    <p>
    <font face="courier new,courier" size="2">&lt;Departments&gt;
       &lt;Department&gt;
          &lt;DepartmentName&gt;OPERATIONS&lt;/DepartmentName&gt;
          &lt;Localization&gt;BOSTON&lt;/Localization&gt;
          &lt;Employees&gt;
             &lt;Employee&gt;
                &lt;LastName&gt;TURNER&lt;/LastName&gt;
                &lt;Job&gt;SALESMAN&lt;/Job&gt;
                &lt;Manager&gt;7698&lt;/Manager&gt;
                &lt;HireDate&gt;1981-09-08&lt;/HireDate&gt;
                &lt;Salary&gt;1500&lt;/Salary&gt;
                &lt;Commerce&gt;0&lt;/Commerce&gt;
             &lt;/Employee&gt;
          &lt;/Employees&gt;
       &lt;/Department&gt;
    &lt;/Departments&gt;</font>
    </p>
    <p>
    Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
    </p>
    <p>
    Kuba 
    </p>

    Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
    HTH
    Srini

Maybe you are looking for

  • How I check in group by query the group change

    How I check in group by query the group change Hi master Sir I have master detail table This is my query select rownum,chartofacc.accid,title,nvl(drbal,0),nvl(crbal,0), (select case when nvl(sum(debit),0)-nvl(sum(credit),0)>0 then nvl(sum(debit),0)-n

  • Fillable Form Return Email Address

    How can I change the incorrect email return address on my distributed fillable form?

  • Visa config. problem

    Hi, everyone I connect my device at COM1, but I cannot find that com port in serial config. It means I cannot find any connection with my device in system manager. I only want to use labview to control my device, even not use dll. Anybody can figure

  • Adobe Muse keep "Not responding"

    Hi, I'm doing another website project, and after a while my adobe muse seems not responding when i clicked the preview button, or when I try to publish it to BC domain. My muse file is 379 MB. Is it because it's too big? Thank you for your help and t

  • Column headings

    Post Author: timg CA Forum: General In my crosstab I want to change the column headings so that I do not show the actual months, but rather "month 1", "month 2", "month 3", etc. Is one way to tie it to a column index?