How to write oracle output in XML

can any one please let me know how to write or covert procedure or function output in XML?

845470 wrote:
can any one please let me know how to write or covert procedure or function output in XML?What is that asking?
Are you wanting to take output from a procedure/function that is in XML format and then convert it to something else?
Are you wanting to get the procedure/function to produce output in XML format?
Are you wanting to take an existing procedure/function and convert it so the code is stored in some XML structure for some purpose?
How is anybody supposed to know what you're talking about if you don't explain it?
{message:id=9360002}

Similar Messages

  • How to write an output of a VI/exe to command line before quitting

    how to write an output of a VI/exe to command line or standard output before exiting the program

    You can use "System Exec.vi" in the Communication pallete. (6.1 and 7.0)
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • How to write the output of a mapping into a file (OWB10.2

    Hi
    I am using Oracle 10.2.0.1 version of OWB.
    the task is to write the output of a mapping into a File (Flat File).
    Please help me out!
    Regards
    Abi

    Hi,
    Create the file format thru OWB and mention the location in OWB. Deploy the file and it will be ready to use for target load. Make sure the connection to the target loc is available.
    Regards
    Bharadwaj Hari

  • How to convert Oracle database to XML standard?

    I have a project to convert oracle database to XML standard.And get it to show in webpage.Please tell me for do it.Tell about the way to do it.Tell me some kit to do it.

    Hi,
    otn says like this
    "You can use the XML SQL Utility to generate a DTD based on the schema of the underlying table being queried. You can use the generated DTD as input to the XML Class Generator for Java, which will generate a set of classes based on the DTD elements. You can then write Java code that use these classes to generate the infrastructure behind a web-based form. Based on this infrastructure, the web form will capture user data and create an XML document compatible with the database schema."
    use 'mlsql utility'
    regards
    raghavan

  • How to install Oracle Berkeley DB XML in ubuntu ?

    Dear all :
    i have download Berkeley DB XML 2.4.16.tar.gz (36M) from http://www.oracle.com/technology/software/products/berkeley-db/xml/index.html.
    But i can't find any doc about how to install it ?
    cheers
    pink

    Hi Pink,
    The doc you are searching for is here:
    [Oracle Berkeley DB XML|http://www.oracle.com/technology/documentation/berkeley-db/xml/index.html]
    [Berkeley DB XML Reference Guide|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/toc.html]
    [Building Berkeley DB XML for UNIX/POSIX|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/intro.html]
    [Building Berkeley DB XML Libraries for UNIX/POSIX|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/libs.html]
    Bogdan

  • How to write from database to XML file using JAVA and back..

    Hi....
    I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

    Hi,
    In java world, there is a tutorial on what you are looking for :
    http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
    It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
    Hope it helps.

  • How to write data to an XML file present under application server

    frnds: can ne one tell me, how to write data in to a file, which is present under a application server
    Ex: i want to write a string data in to a file test.txt which is present under "http://localhost:8080/<some_webapp>/test.txt"
    Note:i have deploted a service<some_webapp> under Tomcat/webapps dir

    Very simple. A servlet can writes to that file if it has the good rights.
    In the servlet get (or post) method, use a code like this:
    import java.io.*;
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
    try {
    String filePath = this.getServletContext().getRealPath("/text.txt");//See http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
             PrintWriter writer = new PrintWriter (filePath);
            //or BufferedWriter out = new BufferedWriter(new FileWriter(filePath));
            writer .println("aString");
           writer.flush();
            writer .close();
        } catch (Exception e) {
           e.printStackTrace();
    }Hope That Helps

  • How to write static Data in xml using XStream

    Hi All,
    I have a swing desktop application.
    In this ProposalData class contains all the input value of the application.
    I want to write proposal data to XML using XStream.
    Below I attached the part of code which responsible for create xml.
    But it is written all the non static data to the xml not the static data.
    public class ReadWriteXml {
        static ProposalData proposalData = new ProposalData();
        static XStream xstream = new XStream(new DomDriver()); // does not require XPP3 library
        FileWriter fileWriter = null;
        FileReader fileReader = null;
        public void writeXMLFile(String fileName)throws IOException{
            try{
                fileWriter = new FileWriter(fileName);
                proposalData = VPProposalApp.getApplication().getInstances().updateData();
                xstream.toXML(proposalData, fileWriter);
                } catch (Exception e) {
                                System.out.println("IOException : "+e);
    }Can any body help me to write the satac data in xml using Xstream.
    Please help me.
    Thanks in Advance
    Ananda

    Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.

  • How to - write oracle logs to syslog

    Is there a method for writing some/all of the logs produced by oracle in syslog format? In the
    SANS oracle security class it was suggested to write oracle logs using syslog on unix systems.
    I am running 10g on RedHat.
    Has anyone done this before? Any pointers to reference material? My google search for
    variations of - syslog oracle unix logs was not helpful.
    thanks
    THeresa

    Is there a method for writing some/all of the logs produced by oracle in syslog format?What type of logs do you mean?
    Maybe following link will help you (Documentation - New Features):
    http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/whatsnew.htm#sthref34
    This is example if you want put all messages from alert log to syslog.
    You could use "logger" command for this purpose.
    For example create startup script (in /etc/init.d/ directory) which will execute (as root) following command:
    tail -f /path/to/oracle/bdump/alert_<SID>.log | logger &Now all actions will be logged in alert log and also in system logs.
    This example has at least one disadvantage:
    If you remove alert log tail will loose the pointer for file - no new messages in system logs.
    For more info execute "man logger" from shell.

  • How to convert ALV output into XML format.

    Hi all,
    I just want to know how to convert an ALV output into a XML format, this is really urgent.
    regards,
    Ruchika saini

    This program exports an internal table to an XML file. *----
    Report ZPRUEBA_MML_13 *
    Export an internal table to XML document *
    NO BORRAR ESTE CODIGO *
    REPORT ZPRUEBA_MML_13.
    PANTALLA SELECCION *
         PARAMETERS: GK_RUTA TYPE RLGRAP-FILENAME.
    PANTALLA SELECCION *
    TYPE TURNOS *
    TYPES: BEGIN OF TURNOS,
         LU LIKE T552A-TPR01,
         MA LIKE T552A-TPR01,
         MI LIKE T552A-TPR01,
         JU LIKE T552A-TPR01,
         VI LIKE T552A-TPR01,
         SA LIKE T552A-TPR01,
         DO LIKE T552A-TPR01,
    END OF TURNOS.
    TYPE TURNOS *
    TYPE SOCIO *
    TYPES: BEGIN OF SOCIO,
         NUMERO LIKE PERNR-PERNR,
         REPOSICION LIKE PA0050-ZAUVE,
         NOMBRE LIKE PA0002-VORNA,
         TURNOS TYPE TURNOS,
    END OF SOCIO.
    TYPE SOCIO *
    ESTRUCTURA ACCESOS *
    DATA: BEGIN OF ACCESOS OCCURS 0,
         SOCIO TYPE SOCIO,
    END OF ACCESOS.
    ESTRUCTURA ACCESOS *
    START OF SELECTION *
    START-OF-SELECTION.
         PERFORM LLENA_ACCESOS.
         PERFORM DESCARGA_XML.
    END-OF-SELECTION.
    END OF SELECTION *
    FORM LLENA_ACCESOS *
    FORM LLENA_ACCESOS.
    REFRESH ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45050' TO ACCESOS-SOCIO-NUMERO,
                   'MOISES MORENO' TO ACCESOS-SOCIO-NOMBRE,
                   '0' TO ACCESOS-SOCIO-REPOSICION,
                   'T1' TO ACCESOS-SOCIO-TURNOS-LU,
                   'T2' TO ACCESOS-SOCIO-TURNOS-MA,
                   'T3' TO ACCESOS-SOCIO-TURNOS-MI,
                   'T4' TO ACCESOS-SOCIO-TURNOS-JU,
                   'T5' TO ACCESOS-SOCIO-TURNOS-VI,
                   'T6' TO ACCESOS-SOCIO-TURNOS-SA,
                   'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    CLEAR ACCESOS.
    MOVE: '45051' TO ACCESOS-SOCIO-NUMERO,
                   'RUTH PEÑA' TO ACCESOS-SOCIO-NOMBRE,
                   '0' TO ACCESOS-SOCIO-REPOSICION,
                   'T1' TO ACCESOS-SOCIO-TURNOS-LU,
                   'T2' TO ACCESOS-SOCIO-TURNOS-MA,
                   'T3' TO ACCESOS-SOCIO-TURNOS-MI,
                   'T4' TO ACCESOS-SOCIO-TURNOS-JU,
                   'T5' TO ACCESOS-SOCIO-TURNOS-VI,
                   'T6' TO ACCESOS-SOCIO-TURNOS-SA,
                   'T7' TO ACCESOS-SOCIO-TURNOS-DO.
    APPEND ACCESOS.
    ENDFORM.
    FORM LLENA_ACCESOS *
    FORM DESCARGA_XML *
    FORM DESCARGA_XML.
    DATA: L_DOM TYPE REF TO IF_IXML_ELEMENT,
                   M_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
                   G_IXML TYPE REF TO IF_IXML,
                   W_STRING TYPE XSTRING,
                   W_SIZE TYPE I,
                   W_RESULT TYPE I,
                   W_LINE TYPE STRING,
                   IT_XML TYPE DCXMLLINES,
                   S_XML LIKE LINE OF IT_XML,
                   W_RC LIKE SY-SUBRC.
    DATA: XML TYPE DCXMLLINES.
    DATA: RC TYPE SY-SUBRC,
    BEGIN OF XML_TAB OCCURS 0,
                   D LIKE LINE OF XML,
    END OF XML_TAB.
    CLASS CL_IXML DEFINITION LOAD.
    G_IXML = CL_IXML=>CREATE( ).
    CHECK NOT G_IXML IS INITIAL.
    M_DOCUMENT = G_IXML->CREATE_DOCUMENT( ).
    CHECK NOT M_DOCUMENT IS INITIAL.
    WRITE: / 'Converting DATA TO DOM 1:'.
    CALL FUNCTION 'SDIXML_DATA_TO_DOM'
    EXPORTING
                   NAME = 'ACCESOS'
                   DATAOBJECT = ACCESOS[]
    IMPORTING
                   DATA_AS_DOM = L_DOM
    CHANGING
                   DOCUMENT = M_DOCUMENT
    EXCEPTIONS
                   ILLEGAL_NAME = 1
                   OTHERS = 2.
    IF SY-SUBRC = 0.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   SY-SUBRC.
    ENDIF.
    CHECK NOT L_DOM IS INITIAL.
    W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
    IF W_RC IS INITIAL.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   W_RC.
    ENDIF.
    CALL FUNCTION 'SDIXML_DOM_TO_XML'
    EXPORTING
                   DOCUMENT = M_DOCUMENT
    IMPORTING
                   XML_AS_STRING = W_STRING
                   SIZE = W_SIZE
    TABLES
                   XML_AS_TABLE = IT_XML
    EXCEPTIONS
                   NO_DOCUMENT = 1
                   OTHERS = 2.
    IF SY-SUBRC = 0.
                   WRITE 'Ok'.
    ELSE.
                   WRITE: 'Err =',
                   SY-SUBRC.
    ENDIF.
    LOOP AT IT_XML INTO XML_TAB-D.
                   APPEND XML_TAB.
    ENDLOOP.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
                   BIN_FILESIZE = W_SIZE
                   FILENAME = GK_RUTA
                   FILETYPE = 'BIN'
    TABLES
                   DATA_TAB = XML_TAB
    EXCEPTIONS
                   OTHERS = 10.
    IF SY-SUBRC <> 0.
                   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Message was edited by:
            Hymavathi Oruganti

  • How to write the output of an SQL query to a text file?

    I am using Oracle 11g and SQL plus.
    I have a large table called rating.
    Whenever I do
    SQL> select * from rating;
    The output goes much beyond what the SQL Plus screen can show. I want to therefore store the output of this query into a text file.
    How can this be done? Please help. Thanks.

    SQL> SPOOL results.txt
    SQL> select * from rating;
    SQL> SPOOL OFF

  • How to write report output into table

    Hi,
    I want to get data out from report "RSPARAM" which list all system profile parameters my requirement is that i need to write output of this report to table so can anyone please tell me how should achieve this?
    is there any FM which read report as parameters and write into table?
    thanks in advance.
    john.

    Looks like the program you are calling(rsparam) is just calling another report, RSPFPAR.  Let's just call that one directly.  Here is an updated version of the program.
    This will also put the first 3 columns in a internal table.  This should show you what you need to do.
    report zrich_0003 .
    data: begin of listout occurs 0,
          line(1024) type c,
          end of listout.
    data: begin of itab occurs 0,
          column1(100) type c,
          column2(100) type c,
          column3(100) type c,
          therest(100) type c,
          end of itab.
    * Submit the report and export list to memory
    submit  rspfpar exporting list to memory
                and return.
    * Get list from memory and convert to ascii
    perform retrieve_list_from_memory tables listout.
    loop at listout.
      if sy-tabix => 7.
        clear itab.
    split listout+1(500) at '|' into itab-column1 itab-column2
                                     itab-column3 itab-therest.
        append itab.
      endif.
    endloop.
    loop at itab.
      write:/ itab-column1, itab-column2, itab-column3.
    endloop.
    * RETRIEVE_LIST_FROM_MEMORY
    form retrieve_list_from_memory tables reportlines.
      data: list like abaplist occurs 0 with header line.
      data: txtlines(1024) type c occurs 0 with header line.
      clear list.  refresh list.
      clear reportlines. refresh reportlines.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = list
           exceptions
                not_found  = 1
                others     = 2.
      check sy-subrc = 0.
      call function 'LIST_TO_ASCI'
           tables
                listobject         = list
                listasci           = txtlines
           exceptions
                empty_list         = 1
                list_index_invalid = 2
                others             = 3.
      check sy-subrc = 0.
      reportlines[] = txtlines[].
      call function 'LIST_FREE_MEMORY'.
    endform.
    Regards,
    Rich Heilman

  • How to write Oracle EBS/Forms script results to Excel spreadsheet?

    Hi All,
    I developed a scripts that tests hundreds of forms and my idea is to output specific test results into a Excel spreadsheet.
    I like the Basic and Functional Test Reports...but if I send it to other people they have difficulties to get required information out if it.
    My plan is to use "info", "warn" and "fail" statements to populate the spreadsheet.
    Does anyone has any idea how to accomplish this?
    Regards,
    Michael

    Something like that:
    import oracle.oats.scripting.modules.webdom.api.elements.DOMTable;
              // in initialize section only
              DOMTable maTable = null;
              // column number in the excel spreadsheet. Whatever you want here
              int myColumn = 1;
              // After each action you want to export the result
              getVariables().set("myResult", "{{result.code}}",
                        Variables.Scope.GLOBAL);
              // getIteration().getTotalIterationsCompleted() is equal to the iteration number
              String myResult = eval("{{myResult}}");
              maTable.storeCell(myResult, getIteration().getTotalIterationsCompleted(), myColumn);
              // in the finish section
              maTable.exportToCSVFile("c:\\temp\\export.csv", false);
    But it would be quite tough to implement.
    Why not exporting the report into Excel and transform it using macro? (don't know macro BTW :) )
    JB

  • How to write into file from xml dom Object

    Hello,
    I try to transform my xml DOM document object into
    file. I try the following:
    try {
              // Prepare the DOM document for writing
              DOMSource source = new DOMSource(newDoc);
              // Prepare the output file
              File file = new File(myHomeRep + "btLom.xml");
              StreamResult result = new StreamResult(file);
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(source, result);
              } catch (TransformerConfigurationException e) {
              } catch (TransformerException e) {
    But my file is empty.
    I do it with some wel formed xml tree document, thus I am certain
    that the xml tree exists.
    Could you explane me please what I am doeing wrong,
    or is there are some possibility to make from my xml dom object
    a file.
    In advance much thanks,
    Julia

    Here's one thing you are doing wrong:} catch (TransformerConfigurationException e) {
    } catch (TransformerException e) {
    }With this code, if an exception occurs then you are guaranteed to know nothing about it. At the minimum do this:} catch (TransformerConfigurationException e) {
      e.printStackTrace();
    } catch (TransformerException e) {
      e.printStackTrace();
    }

  • How to write XI output to PDF file

    when we were  trying to do simple file to file scenario, I wanted to read a text file and write it in to pdf file format.The pdf file gets created but it show error(not supportd file type or file corrupted).
    Please help me to know whether pdf format is supported by XI file adapter.If yes, then how to convert the default XML ouptut to pdf format.
    Thanks in Advance,
    Regards
    Rashmi

    Hi,
    The following links will help you:
    http://www.devx.com/xml/Article/16430/0/page/2
    http://www.apache.org/dyn/closer.cgi/xml/fop
    Regards,
    Sridhar

Maybe you are looking for

  • Getting an error at the i-Tunes Store

    I just got an i-Phone 4 and started doing the set up on it.  Downloaded the program for the i-Tunes.  Attempted to use it and an error message came up as follows: "We could not complete your i-Tunes store request.  An unknown error occured (0x8009201

  • Why am I not able to install snow leopard on a new hard drive for my macbook pro, which at one point was upgraded to Lion?

    I've just had my hard drive go caput and after purchasing a new one was inclined to install snow leopard but received an error message when attempting to do so. I did not create a back up or restore file before I decided to upgrade from snow leopard.

  • Swf compilation failed--error msg

    This is an ordinary project with no user-made variables.  I had been working for hours, adding effects to text when I got this msg which went on to say, "Note:  Please verify if any of the actionscript keywords is used as user variable name." I reboo

  • Pre Printed Invoice

    Hello, We are currently in the analysis phase to the implementation of SAP ECC 6.0 Ehp3 for a society in Ecuador, and I know that this situation happens in Venezuela too. The laws require that the invoices and delivery notes must be pre-printed by a

  • I pod stolen

    I had my I pod classics stolen from my vehicle. I have the serial # ! Is there a way apple can tell if someone is using it illegally?