How to fetch XML

hi,
I want to fetch XMLType datatype and want to write it in an XML file.
How can I do that??
I am using OCI.
regards,
srikanth

user613021, if the end goal is to same the XML into a file, the infoset from the document has to be serialized anyway, so doing it from an XMLType instance on the client side, or via getclobval() on the server side, shouldn't be very different no?
Furthermore, XMLType has 3 different storage models in 11g, Object-Relational, CLOB, and BinaryXML (the latter new in 11g), and if XMLType is CLOB backed, why would it be more expensive to use getclobval()?
I'm not saying you are wrong, I'm just trying to understand exactly what is going on, and whether what you said applies only (or more) to an XMLType stored using Structure (Object-Relational) Storage. Any precisions and insights would be appreciated.
Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to fetch XML file thru Sender File adapter

    Dear friends,
    I am having a scenario of fetching an xml file through sender file adapter. When i am testing my mapping in Test mode of message mapping it is working fine but when i fetch the real source xml file which is not having the XML namespace and Source Message type.
    It is throwing error in Runtime.
    At the same time when i edit the source xml file  with the XML NAMESPACE & Source Meessage type it is passing successfully to the target system.
    Kindly tell me friends how to solve this problem.
    Take care,
    Karthik

    Hi Friends,
    My Source XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    My xml file in the Test Tab of Message mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Source_MT xmlns:ns0="http://kpmg.com/ibs/mdm">
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    </ns0:Source_MT>

  • To fetch XML files from database  AND regarding barcodes

    Hi !!
    I am very new to this forum...this is my first mail to this forum...
    1.) Actually I would like to know how to fetch XML files from database and then how to get the datas from that XML files???Right now i am using struts frame work...If u anyone send some sample code for this one,it is Very helpful for me.....
    2.)Using java ,how to generate Barcodes?In database I have Some serial number.While I try to display the serial number in Front end ,I should display with Barcode Corresponding to that number.Plz send some sample codes if u have.....
    Thanks in ADVANCE,

    PonJAVA wrote:
    Hi !!
    I am very new to this forum...this is my first mail to this forum...
    1.) Actually I would like to know how to fetch XML files from databaseStart with a JDBC tutorial. Check out DAO Pattern and Hibernate as well.
    and then how to get the datas from that XML files???Google Java & XML (there are many ways to do this
    Right now i am using struts frame work...Okay...
    If u anyone send some sample code for this one,it is Very helpful for me..... You haven't provided any detail regarding your task so there's no way anyone could post code for you.
    2.)Using java ,how to generate Barcodes?Search Google
    In database I have Some serial number.While I try to display the serial number in Front end ,I should display with Barcode Corresponding to that number.Plz send some sample codes if u have.....Try a JSP/Servlet tutorial.

  • How to fetch Error message

    Hi folks,
    I am new to c/c++.
    And i am finding it difficult to figure it out ..............
    char* APIParser::parseDocument(const char *xmlInput) {
              XMLParser parser;
              const char *doc;
              uword ecode;
              doc = xmlInput;
              if(doc == NULL)
    //Return XML output
                   return getDefaultXMLOutput(-1, 0, "XML input document is null");
              if (ecode = parser.xmlinit()) {
                   cout << "Failed to initialize XML parser, error " << ecode;
                   //return ecode;
                   return getDefaultXMLOutput(-1, 0, "Failed to initialize XML parser");
              if (ecode = parser.xmlparseBuffer((oratext *) doc, strlen(xmlInput), (oratext *) 0,
                   XML_FLAG_DISCARD_WHITESPACE)) {
                   cout << "Parse failed, error " << ecode << "\n";
                   //          return 3;
                   return getDefaultXMLOutput(-1, 0, "Parse failed");
              if (ecode = schema.initialize(&parser))     {
                   cout << "Failed, code " << ecode << "!\n";
                   //return 4;
                   return getDefaultXMLOutput(-1, 0, "Error in initialize Schema");
              root = parser.getDocumentElement();
              if (ecode = schema.validate(root, NULL )){
                   cout << "Validation failed, error " << ecode << "\n";
                   ub4* ub4;
                   unsigned char** path;
                   int i=0;
                   boolean value;
                   while((value = parser.xmlwhere(ub4, path, i++))){
                        cout<<ub4<<endl;
                        cout<<ub4<<path;
                   cout<<value;
                   schema.terminate();
                   //return 5;
                   return getDefaultXMLOutput(-1, 0, "Validation failed");
              return "";
    Where i am passing xmlInput which is a char*.
    Things work fine.
    I need to send back exact error message to client to debug the messages.
    How to fetch the messages, line number etc.
    By seing docs i wont be able to figure it out.
    Can any one send piece of code to fetch the error messages.

    If you access the FacesContext you find a method called
    getMessages()
    Return an Iterator over the FacesMessages that have been queued, whether or not they are associated with any specific client identifier.

  • How to read xml file and place it into an internal table...

    hello all,
    can any one help me in - how to read xml data file (placed in application server) and placing the same into an internal table (remove the xml tags or say fetching the xml data without xml tags).

    Hi Murashali,
    use this.
    TYPES: BEGIN OF day,
    name TYPE string,
    work(1) TYPE c,
    END OF day.
    DATA: BEGIN OF week,
    day1 TYPE day,
    day2 TYPE day,
    day3 TYPE day,
    day4 TYPE day,
    day5 TYPE day,
    day6 TYPE day,
    day7 TYPE day,
    END OF week.
    DATA xml_string TYPE string.
    DATA result LIKE week.
    week-day1-name = 'Monday'. week-day1-work = 'X'.
    week-day2-name = 'Tuesday'. week-day2-work = 'X'.
    week-day3-name = 'Wednesday'. week-day3-work = 'X'.
    week-day4-name = 'Thursday'. week-day4-work = 'X'.
    week-day5-name = 'Friday'. week-day5-work = 'X'.
    week-day6-name = 'Saturday'. week-day6-work = ' '.
    week-day7-name = 'Sunday'. week-day7-work = ' '.
    CALL TRANSFORMATION ...
    SOURCE root = week
    RESULT XML xml_string.
    CALL TRANSFORMATION ...
    SOURCE XML xml_string
    RESULT root = result.
    Regards,
    Vijay

  • How to map XML File input to VO (eventually to update table) upon fileupld

    Reqirement: I am downloading an XML File (basically name-value pair) from user using OAMessageFileUploadBean. I need to take this file and update to an existing record in the table (cs_incidents_all). XML File schema is well-known in advance.
    Approach: Don't know what is the best, but I'm thinking if there is an OAF way to map the XML File (Blobdomain) to VO and get the rowIMPL.getColumn1Value to fetch all the datavalues then loop thru all the columns (xml-tags) and finally call plsql APIs which will update/insert into table (cs_incidents_all)
    Is this possible in OAF? If so please shed some light as to how to map XML File to VO.
    If this is not possible then please let me know the other way. I have to do this inside the oaf.
    Thank you,

    Can someone please let me know if this is possible in OAF?

  • How to Integrate XML Pulisher with OAF

    Hi,
    How to Integrate XML Pulisher with OAF??
    Regards,
    Mayank,

    Hi,
    If you are using View Link then
    public XMLNode getPrintDataXML()//XMLNode
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    I hope this will fetch the data from View Link also.
    Regards,
    Reetesh Sharma

  • How to fetch 2 set of records in MII from SQL procedure

    Hi Experts,
    I am invoking a SQL procedure from MII which return 2 set of records. But at MII I am able to get only first set of records. Is there any configuration required at MII side or SQL side to get both set of records in MII?
    Here is the SQL Query Structure
    Create procedure Sample_Proc
      @Param1 Varchar(10),
      @Param2 varchar(10),
      @Param3 Varchar(20) OUT,
      SET INCOUNT ON;
    AS
    Begin
      *//Selection statements//*
    END
    SP Executing in MII
    Declare @Param1,
      @Param2,
      @Param3,
    Exec Sample_Proc
      @Param1='name',
      @Param2='Id',
      @Param3=@Param3 OUTPUT,
    Select @Param3
    Our SP is returning values (Say Recordset1)based on the input parameters 1 and 2 , along with Parameter3 value(Say Recordset2) in MS SQL server but in MII its returning only the values(Recordset1) ... how to fetch recordset2 values in MII
    I hope MII can return 2 set of records (rowsets) after executing the procedure.
    MII version -> 12.2.3 Build(182)
    Thanks & Regards,
    Rajasekhar Kantepalli

    Hi Swaroop,
    With MII 14.0 SP5 Patch 11, in a transaction, I get following XML output for a query that executes an SP(returning multiple resultSets) :
    And, results in this format can surely be used for further processing in an MII transaction.
    Thanks Rajasekhar, got to know about this because of your query.
    regards,
    Manisha

  • Fetch XML file data

    Hi All,
    Please can you give an idea how to fech xml data..I wanto fetch all <POL_NO> tag data in a temp table.
    My sample xml:
    <POL>
    <Polinfo>
    <POL_NAME>COMP1</POL_NAME>
    <POL_NO>100</POL_NO>
    </Polinfo>
    </POL>
    <POL>
    <Polinfo>
    <POL_NAME>COMP2</POL_NAME>
    <POL_NO>101</POL_NO>
    </Polinfo>
    </POL>
    <POL>
    <Polinfo>
    <POL_NAME>COMP3</POL_NAME>
    <POL_NO>102</POL_NO>
    </Polinfo>
    </POL>
    <POL>
    <Polinfo>
    <POL_NAME>COMP4</POL_NAME>
    <POL_NO>103</POL_NO>
    </Polinfo>
    </POL>
    Thanks,

    The EXTRACTVALUE and XMLSEQUENCE method is deprecated in 11g, and from 10g you would be better using the XMLTABLE method:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<root>
      2  <POL>
      3    <Polinfo>
      4      <POL_NAME>COMP1</POL_NAME>
      5      <POL_NO>100</POL_NO>
      6    </Polinfo>
      7  </POL>
      8  <POL>
      9    <Polinfo>
    10      <POL_NAME>COMP2</POL_NAME>
    11      <POL_NO>101</POL_NO>
    12    </Polinfo>
    13  </POL>
    14  <POL>
    15    <Polinfo>
    16      <POL_NAME>COMP3</POL_NAME>
    17      <POL_NO>102</POL_NO>
    18    </Polinfo>
    19  </POL>
    20  <POL>
    21    <Polinfo>
    22      <POL_NAME>COMP4</POL_NAME>
    23      <POL_NO>103</POL_NO>
    24    </Polinfo>
    25  </POL>
    26  </root>') as xml from dual)
    27  --
    28  -- end of test data
    29  --
    30  select x.*
    31  from   t
    32        ,xmltable('/root/POL'
    33                  passing t.xml
    34                  columns pol_name varchar2(10) path './Polinfo/POL_NAME'
    35                         ,pol_no   number       path './Polinfo/POL_NO'
    36*                ) x
    SQL> /
    POL_NAME       POL_NO
    COMP1             100
    COMP2             101
    COMP3             102
    COMP4             103

  • Fetch XML data from CLOB

    Hi,
    I'm very new in Oracle. I have DB running on oracle 9i. On production DB one tablespace have CLOB datatype and this CLOB field have all techinal stuff stored in XML format. How DO I fetch this info?
    select info from infotbl; showing all the XML junk.
    what is the batter way to fetch XML data properly

    Difficult to give the exact answer without knowing which node repeats..
    Howver it will be something like this
    select extractValue(value(x),'/RepeatingNode/NonRepatingNode/NonRepeatingNode)
      from TABLE, table(xmlsequence(extract(xmltype(clob),'/Root/Node/RepeatingNode')))) x

  • How to fetch file from app. server without complete filename?

    Hi,
    In my report I have to read data from txt file on application server.
    My file name on App. server conatain system id and date and time stam.
    my file path :- /User/IDD/S10009112007101525
    here,'User'  is dirctory
            'IDD' is folder in directory
            'S100' is system id
             '09112007' is date
             '101525'  is time in hour,miniute,second format.
    From my program I can only pass directory , Folder name,System Id,Date only. I don't have time value in my program.
    So please tell me how to fetch files without having time stamp value from app. server.
    Plz send me exact code.It's urgent.
    Message was edited by:
            Manisha Kadam
    Title was edited by:
            Alvaro Tejada Galindo

    Do you want to return the file to the user on click of button or something?
    Then, use web_show_document with http link which you are speaking about.
    Else download the file to client using Webutil.

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • How to fetch NO DATA FOUND exception in Ref Cursor.

    In my procedure ref cursor is out parameter with returns dataset. in my proceudre
    its like...
    OPEN pPymtCur FOR
    select.....
    when I call this procedure from report to get dataset it causes NO DATA FOUND exception.
    How to fetch this exception in my oracle procedure so I can get some other data.
    Any Idea to do this?
    Edited by: Meghna on 17-Jun-2009 22:28

    Mass25 wrote:
    Correct me if I am wrong.
    So if I do something as follows in my stored proc, I do not have to check for NO_DATA_FOUND?
    OPEN my_CuRSR FOR
          SELECT DISTINCT blah blah blahmy_cursr is what I am returning as OUT param in my SP.Correct. At the point you open the cursor, oracle has not attempted any 'fetch' against the data so it won't know if there is any data or no data. that only occurs when a fetch is attempted.
    Take a read of this:
    [PL/SQL 101 : Understanding Ref Cursors|http://forums.oracle.com/forums/thread.jspa?threadID=886365&tstart=0]

  • Opening Stock+Purchase-Closing stok ,how to fetch in P&L Statement

    HI! All,
    In Schedule 15 in India showing the opening Stock+Purchases-Closing Stock .In FSV or in report painter how to fetch these figure  to prepair in the P&L Statement.
    Thanks & Regards
    Archana

    Hi,
    You need to use FSI3. The opening balance will be the last month's as off. Create a formula for the Purchases where it will be the stock balance as of the current period less the balance in previous period.

Maybe you are looking for

  • Poor Nokia Care Support

    I had purchased a Nokia E6-00 in September 2012 in Bangalore. It was working well until the beginning of November when the mobile refused to load, switching it on taking it up to the Nokia Welcome screen and switches off after that.  I took it to the

  • Pages not loading properly. Flash problem ?

    I updated my osx to 10.7.2 yesterday, everything works fine except some pages in safari wont load up. For example, facebook loads in this way (image attached). I have flash player installed and updated. Do i need to reinstall flash ? or put some othe

  • She cess not coming in j1iin(TOTAL AMOUNT SECTION)

    HI , TAXINN PROCEDURE in j1iin all duties bed/ecess & also shecess are coming  in INVOICE ITEM DETAILS SECTION  in columns BED/ECS/TAX1 But in below  TOTAL AMOUNT section BED/ECS ARE COMING & ONLY SHECESS FIELD IS NOT COMING 1 in excise registeration

  • DTW - UDT of Document Type

    Hi, Is it possible to implement DTW to UDT of Document Typeu2026 it displaying my UDT in Business object [drop down selection] selection... But while mapping fields itu2019s displaying code and name in target fields. I didnu2019t map this field with

  • Apple keyboard in windows xp

    Hi, i just installed a new apple keyboard on a pc running windows xp. how can i do to make all special keys work? I mean the F13, F14 and so on.. Where I can find drivers for windows fo this keyboard? thank you very much