Get vertical xml output in sqlplusw

I'm getting horozontally formatted and difficult to read xml in sqlplus and also in TOAD when generating the xml from tables using SQLX functions like XMLELEMENT() etc. Is there some way to format the output to a more readable form that is vertically aligned? I tried to use xmlformat.createformat without success.

I tried the example but SQL plus totally crapped out. Following is my sqlplus environment -
SQL*Plus: Release 9.2.0.1.0 - Production on Wed Feb 21 14:12:45 200
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

Similar Messages

  • Help require to get the XML output to design template- JDE

    Hi Friends,
    I am asking this question from JDE perspective.I want to design XMLP Template for R40572 Check Printing.
    When I upload an blank template and after attaching RD, When ever I initiate a check from P04572 Application.RThe Write Row exit will lead to check printing which in turn will call a batch R04571 and this batch will call R04572(Which I require the XML output) since it is the second report and we cant direct it to local server I am not able to get the XML output..
    Another think is since its running in server i think its not taking the RD modification we done in loacl because it always fires PDF .

    Hi,
    I assume you're Using XMPOSA for generating the files locally. What I suggest is, you set the application to run with the report definition by default. That way, even when it is called, it will be called along with the report definition. You can take the resultant XML file from P95630
    hope this helps,
    -Domnic

  • ns0 Prefix in XML output file

    Dear Gurus,
    I am working on a scenario where vendor master is triggered from  SAP-XI--FTP.
    when i am posting the vendor master on FTP.. i am getting
    the xml output with prefix as below
    <ns0:VENDORID>0000100000</ns0:VENDORID>at each element in vendor master xml file.
    Instead of  <VENDORID>0000100000</VENDORID>
    could anyone tell how to fix this prefix at each level.
    Does i need to add any module in file receiver adapter..or any patch i need to apply ..
    we are on SP9 PI 7.0
    Kind Regards,
    Vijay

    Hi,
    I tryed as per blog earlier ..it is not working
    i am using file receiver adapter...any other solution to fix this.
    Regards,
    Vijay

  • XML Output with nesting of group

    Hi,
    Not sure if this is even possible to resolve but I figured I might as well ask.
    I have a report which is built using a Reference Cursor which outputs to XML. The data is coming back exactly as expected so I am happy that the cursor is working.
    I am now moving into trying to make the report a bit more advanced.
    My aim is to get the XML output looking like:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <!-- Generated by Oracle Reports version 9.0.2.0.3 -->
    <TEST1>
    <STANDARD1>
    <IDENTIFIER>000005385/7743198743</IDENTIFIER>
    <RUNDATE>21-AUG-09</RUNDATE>
    <TABLE1>
    <TABLE1_FIELD1>000708</TABLE1_FIELD1>
    <TABLE1_FIELD2>ABCDEF</TABLE1_FIELD2>
    <TABLE1_FIELD3>123456</TABLE1_FIELD3>
    </TABLE1>
    <TABLE2>
    <TABLE2_FIELD1>Happy</TABLE2_FIELD1>
    <TABLE2_FIELD2>Days</TABLE2_FIELD2>
    <TABLE2_FIELD3>Are Here</TABLE2_FIELD3>
    </TABLE2>
    </STANDARD1>
    </TEST1>
    At the moment the best that I can seem to do is the following using Break Groups.
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <!-- Generated by Oracle Reports version 9.0.2.0.3 -->
    <TEST>
    <STANDARD1>
    <IDENTIFIER>000005385/7743198743</IDENTIFIER>
    <RUNDATE>21-AUG-09</RUNDATE>
    <TABLE1>
    <TABLE1_FIELD1>000708</TABLE1_FIELD1>
    <TABLE1_FIELD2>ABCDEF</TABLE1_FIELD2>
    <TABLE1_FIELD3>123456</TABLE1_FIELD3>
    <TABLE2>
    <TABLE2_FIELD1>Happy</TABLE2_FIELD1>
    <TABLE2_FIELD2>Days</TABLE2_FIELD2>
    <TABLE2_FIELD3>Are Here</TABLE2_FIELD3>
    </TABLE2>
    </TABLE1>
    </STANDARD1>
    </TEST>
    So the Table2 tags are a child of the Table1 grouping. In reality the table2 information should be at the same level as table1.
    Is there anyway in Oracle Reports where you can create the equivilant of a break group but allow multiple groups to have the same level?
    My aim is to allow multiple groups (at least 8) that are a subset of the STANDARD1 tag, but are all at the same level.
    Any ideas?
    Thanks in advance,
    Leanne

    I am facing same problem when i generate the xml from oracle reports. did you get any solution from this problem.
    Thanks in advance,

  • URGENT start tag needs to be generated in xml output

    I am getting the xml output as below
    since my value for each element is empty doesn't generate the start tag. BUT I NEED START TAG also to be created with this xml file. What property need to specify while generating it thro' Transformer and TransformerFactory. Please help me
    <?xml version="1.0" encoding="UTF-8"?>
    <address>
    <addressID/>
    <streetNumber/>
    <addressLine1/>
    <addressLine2/>
    <addressLine3/>
    <city/>
    <zipCode/>
    <lastUpdatedUserID/>
    <deletedFlag/>
    <phoneNumber/>
    <country/>
    <state/>
    </address>

    I don't quite understand your question. You want to have the start tag of each element outputed or you want one root element start tag to be outputed?
    If it's the first case, try separating start and end tags from your elements instead of having them combined, i.e. do the following:
    replace
    <addressLine1/>by
    ]<addressLine1>
    </addressLine1>I don't know if this is the answer you expect, reply if not.

  • RoboHelp 7 and XML output

    Can RoboHelp 7 output topics as XML (.xml files) ?
    We are researching upgrading to RoboHelp 7 from our RoboHelp
    HTML 2002 versions. We skipped the X-series upgrades, but I recall
    reading that the X-series supported XML in some way. I downloaded
    the RH7 trial version and could not find anything in the Help about
    XML. Then it seems that suddenly an XML Output icon appeared in the
    Single Source Layouts pane. It was not there previously. I then
    could generate xhtml (.htm) files.
    We called sales who didn't seem to know and said we'd need a
    valid license to ask tech support.
    Can someone enlighten me about the history of the X-series
    and XML output, and what is actually possible for XML from RH7? And
    what you need to do to get the XML Output to appear in the Single
    Source Layoutspane? XML Output is not covered anywhere I found in
    help or knowledge base, but it seems so huge a deal that it makes
    me think I must be missing something.
    Thanks for your help.

    Hi Peter
    Thanks for your help. In the Single Source Layouts pane, I
    clicked create Layout, and selected XML Output, and it now appears
    in the Single Source Layouts screen. Still have some questions.
    1\ Do you know any of the history of what kind of XML support
    was offered in the X-series, and if version 7 offers less, more, or
    the same support?
    2\ Any idea why there is NOTHING mentioned in the RoboHelp
    Help if you search using XML or XML output? Even more curious is
    when I click the Help button from the XML Output Options box, I do
    find a topic called XML Output Options. I wonder why their main
    Search tool doesn't find this...
    We were hoping to migrate to XML using XMetaL, but Mgt is
    balking due to the time and costs involved in conversion and
    translation issues. Which is why we may need to upgrade RH2002 to
    RH7, so our legacy docs remain pretty much intact. But at the same
    time, we want to know what the current RH XML capabilites are, and
    are wondering what their plans are for the future, like, will they
    offer real XML out to the current major tech writing standard,
    DITA. We hope to start authoring new docs only then using XMetal so
    we don't take the conversion/translation memory hit.
    So yes, our XML questions are deliberate.

  • Error in getting xml output from Apps

    I have developer 10g. Whatever report (rdf) I create I face exactly the same problem. I register the report (rdf) in Apps and select xml format as the output. But when I run it to get the xml file, I get the following error
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    A semi colon character was expected. Error processing resource 'http://XXXX.XXXX.XXX.XXX:8000/OA_CGI/FNDWRR.exe?temp_id=3547...
    <?xml version="1.0" encoding="&Encoding"?>
    ---------------------------------------^If I use Reports 6i to create exactly the same report (rdf) everything works fine (i.e I get the xml file when I run it).
    What is the issue with 10g?

    If you have & or any other special characters like < ,>
    & lt;      <      less than
    & gt;      >      greater than
    & amp;      &      ampersand
    & apos;      '      apostrophe
    & quot;      "      quotation mark
    these , have to replaced by the equivalent in the sql queries. to get like & lt; , & gt; ,
    because these are pre-defined in XML , so the xml will error out , if you any of these characters in the xml element value.

  • Help required in Getting XML output as Required

    Hi All,
    I have below xml
    INSERT INTO XMLTABLE VALUES (4,'<?xml version="1.0"?>
    <Node_1 empID="202" empName="Pro1" oper="Update">
    <Node_2 empID="20" empName="Pro2" oper="Update">
    <Bode_3 empID="2" empName="Pro3" oper="Update">
    <Bode_4 empID="22" empName="Pro4" oper="Update">
    <Bode_5 empID="12" empName="Pro5" oper="Delete"/>
    <Bode_6 empID="223" empName="Pro6" oper="Insert"/>
    <Bode_7 empID="201" empName="Pro7" oper="All"/>
    <Node_3 empID="21" empName="Pro71" oper="ll">
    </Bode_4>
    </Bode_3>
    </Node_2>
    </Node_1>');
    I have a sequence seq_i
    seq_i start with 1 increment by 1
    am able to display output as below,
    Node|EMPID|OPER|EMPNAME|MGRID
    Node_1|202|Update|Pro1|Null
    Node_2|20|Update|Pro2|Node_1
    Bode_3|2|Update|Pro3|Node_2
    Bode_4|22|Update|Pro4|Bode_3
    Bode_5|12|Delete|Pro5|Bode_4
    Bode_6|223|Insert|Pro6|Bode_4
    Bode_7|201|All|Pro7|Bode_4
    Node_3|21|ll|Pro71|Bode_4
    Now I want below one as output
    All nodes starting with Bode_, I need to replace that with sequence, seq_i
    so for the seq_i (starting with i and incrementing by 1)
    Please note when ever node changes to sequence, corresponding mgrid also changes,
    Node|EMPID|OPER|EMPNAME|MGRID
    Node_1|202|Update|Pro1|Null
    Node_2|20|Update|Pro2|Node_1
    1|2|Update|Pro3|Node_2
    2|22|Update|Pro4|1
    3|12|Delete|Pro5|2
    4|223|Insert|Pro6|2
    5|201|All|Pro7|2
    Node_3|21|ll|Pro71|2
    Please let me know your thoughts on this to acheive the same,
    Thanks,

    Well you've already said you can get your XML into the initial flattened hierarchy structure, so you just need to manipulate that to assign a sequence (row number) as appropriate.
    Something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (
      2  select 'Node_1' as node, 202 as empid, 'Update' as oper, 'Pro1' as empname, Null as mgrid from dual union all
      3  select 'Node_2', 20, 'Update', 'Pro2', 'Node_1' from dual union all
      4  select 'Bode_3', 2, 'Update', 'Pro3', 'Node_2' from dual union all
      5  select 'Bode_4', 22, 'Update', 'Pro4', 'Bode_3' from dual union all
      6  select 'Bode_5', 12, 'Delete', 'Pro5', 'Bode_4' from dual union all
      7  select 'Bode_6', 223, 'Insert', 'Pro6', 'Bode_4' from dual union all
      8  select 'Bode_7', 201, 'All', 'Pro7', 'Bode_4' from dual union all
      9  select 'Node_3', 21, 'All', 'Pro71', 'Bode_4' from dual
    10  )
    11  -- end of test data obtained from flattening XML - just use query below against own data
    12  select rpad(' ',(level-1)*2,' ')||coalesce(bode_no, node) as tree
    13        ,coalesce(bode_no, node) as node
    14        ,empid
    15        ,oper
    16        ,empname
    17        ,case when bode_no is not null then prior coalesce(bode_no, node) else mgrid end as mgrid
    18  from (
    19    select node
    20          ,case when node like 'Bode%' then
    21                     to_char(row_number() over (partition by case when node like 'Bode%' then 1 else 0 end order by node))
    22                else null
    23           end as bode_no
    24          ,empid
    25          ,oper
    26          ,empname
    27          ,mgrid
    28    from t
    29    )
    30  connect by mgrid = prior node
    31* start with mgrid is null
    SQL> /
    TREE                 NODE                                EMPID OPER   EMPNA MGRID
    Node_1               Node_1                                202 Update Pro1
      Node_2             Node_2                                 20 Update Pro2  Node_1
        1                1                                       2 Update Pro3  Node_2
          2              2                                      22 Update Pro4  1
            Node_3       Node_3                                 21 All    Pro71 Bode_4
            3            3                                      12 Delete Pro5  2
            4            4                                     223 Insert Pro6  2
            5            5                                     201 All    Pro7  2
    8 rows selected.

  • Get XML Output and parameters

    I'm using Oracle BI Publisher 11.1.1.3.0 and I've created a Dataset with several parameters. (6 to be precise) I'm using the "Get XML Output" button to generate my sample data...
    Without the parameters all is good... but when I add parameters... the parameters line up from left to right three of my parameters "disappears" to the right and even more importantly the "Run" & "Return" buttons disappear and I cannot access them.
    I feel like I'm missing something simple... but I just can't find it. How can I get those parameters to line up some other way?
    (Let me specify once again that I am ONLY in the Dataset area, not the report area)
    Thanks in advance

    Look... this seems like a serious problem...
    I cannot generate the sample data when I add more than 3 parameters (Type Menu with a LOV) ....
    I cannot generate sample data, the parameters do not appear on the report...
    The Run button is off screen and there are no scroll bars...
    I am in the data model area only... NOT the report are and I have NO way of seeing the parameters that are off screen or even accessing the Run & Return button or the "Save sample data"
    What is going on?

  • How to get XML output from a stored procedure

    I have a very simple question:
    I would like to write a stored procedure (SP) that will return results in XML format (as a string). My tables in database are not of XML TYPE. But I need XML output.
    ie, SP will run like a typical SP but the only difference will be its output in XML.
    1) is it possible?
    2) if possible, how?
    Please, help
    Omer Koksal

    Thank you Peter, it was a great problem for me !
    Omer Koksal

  • How do you get an xml file from the PO Output for Communication report?

    Can anyone tell me how you've created an xml output fil for this program? When I run it, the View XML button doesn't light up, and the output file is empty.
    I can see the XML when I click the View Log button, but can't figure out how to save it so that the XMLP Desktop tool can load it properly.
    If you can tell me how to create this file, I'd be very appreciative.

    Hi,
    I can't see the xml in my log file. Maybe you have a different logging level. One issue I have had before is that the xml declaration had a strange character encoding. It should say something like: <?xml version="1.0" ?>. If it mentions anything about encoding you can remove it.
    One of our developers wrote a custom process to write the xml to a table when the document was generated as we couldn't find any other way of doing it.
    You can use the sample xml available from the data definition but this is missing fields.
    Probably not much help...
    Paul

  • Calling XML Publisher Report from OAF using the conc programs xml output

    Hi all
    I am trying to call a report from oa Framework. I have developed the Template in the Ms-Word and for Generating the xml data i used the view object defined in OAF, this approach is working for me...i used the following code to do this in the AM as mentioned in many places...
    public XMLNode getEmpDataXML()
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    now i want that instead of the view object i should use the xml generated by the report which is registered as concurrnet program with output as xml.
    I am submitting the concurrent program and able to get the request id ...
    Now from here what should i do.. please suggest...

    Hi,
    I am thinking of doing something very similar. What i was planning on doing is submitting the request, and then redirecting the user to the concurrent request page. They can then use the standard functionality to view output and get the xml to use the appropriate template.
    i would be interested in how you get the concurrent request id from the submitted job.
    Many thanks
    Rupesh

  • Easiest and/or best methods for generating XML output (not with a report)

    Hi, several of our EBS customers (11.5.10) are converting their PDF reports to use XML/BI publisher to produce output. The data stream comes from a report that generates the XML output, and then the XML template is applied. This works great ... no problems, etc. From what I have read, however, Oracle intends to treat the traditional Forms and Reports Developers as legacy tools (although still supporting them, of course).
    My question is if I wanted to ditch using Reports to generate XML output, what, in your opinion or in your current usage, is the easiest way of getting this data? In Reports, the data modeler is excellent in providing a method to write your queries, split them into different repeating groups, write formula and summary columns, link multiple queries, etc, etc. If one were to become Reports Developer free, what comparable tools are available to take its place? I would expect this tool to handle a mix of GUI and coding like the Reports data modeler. Please note that I'm not looking for an EBS-specific solution -- say for a custom application using regular Oracle 10g DB and iAS, with BI Publisher for reporting.
    Thanks for your feedback,
    Ryan

    What I'm looking for is to not use Oracle Reports to generate the XML data output since Oracle's statement of direction is pushing BI Publisher rather than Oracle Reports as the preferred tool for reporting. That said, the data modeler in Reports provides a very flexible tool to construct and link multiple queries and to manipulate the queries into several levels of a master/detail relationship. Further, the mix of GUI and coding makes setting up the data model a lot more efficient. What I'm looking for (and I don't know if anything exists) is something comparable that can be used to generate XML output from the DB -- the idea being that I wouldn't use legacy tools, like Reports, for this task. I hope that is clearer.
    Really, another way of answering my question is, aside from Reports and the APIs mentioned so far, what are my fellow developers using, if anything, to extract XML data in a way that handles the features i list above?

  • Generate XML output using DBMS_XMLGEN.getxmltype and not from rdf

    Hi,
    I have a requirement to display output from a particular table in XL format. Out of all the known possible options, I am planning to use the XML publisher to generate XL output.
    For the data source, instead of using the conventional way of creating XML data using rdf,I am planning to use DBMS_XMLGEN.getxmltype pl/sql procedure to generate the XML output. And from the output, call the template to generate the required Excel output.
    Now, I am using the following code to generate XML output but am not sure how to proceed from here. I need to first print the XML data in the FND Output file after which I was planning to call the 'XML Report Publisher' (XDOREPPB) program and use the current request id to get the excel output but I am not able to find the way to print the XML data in the output file as:
    fnd_file.put_line (fnd_file.output, l_xml_type); - is throwing an error as l_xml_type is an XML data output.
    PROCEDURE xml_main (
    errbuf OUT VARCHAR2
    ,retcode OUT VARCHAR2
    ,p_project_from IN VARCHAR2
    ,p_project_to IN VARCHAR2
    AS
    l_xml_type XMLTYPE;
    BEGIN
    SELECT DBMS_XMLGEN.getxmltype
    ('SELECT fnd_global.conc_request_id
    ,TO_CHAR (segment1)
    ,to_char(start_date,''MM/DD/RRRR'')
    ,to_char(xxmcc_project_details_pkg.current_profit_projection
    (project_id),''999,999,990.90'')
    ,to_char(xxmcc_project_details_pkg.cost_to_date (project_id),''999,999,990.90'')
    ,''1''
    FROM pa_projects_all
    WHERE segment1 BETWEEN NVL (p_project_from, segment1)
    AND NVL (p_project_to, segment1)')
    INTO l_xml_type
    FROM DUAL;
         fnd_file.put_line (fnd_file.output, l_xml_type);
    END xml_main;
    Can anyone point me as to how to publish XML output using a PL/SQL procedure (DBMS_XMLGEN.getxmltype)
    Thanks.

    Pl see if the example included in this presentation helps http://www.oracle.com/technology/products/applications/Events/OOW-2006/EBS/S281401_Sridhar_Bogelli.pdf
    Also, you do not need to explicitly call XDOREPPB in later versions of XML Publisher. If you set up everything correctly (as described in the presentation above and the link below) the Output Post Processor is called automatically after the XML file is generated successfully.
    Another excellent tutorial is at http://www.oracle.com/technology/obe/fusion_middleware/fusion/bi/xmlp_ebiz/index.html
    HTH
    Srini

  • Generating and Viewing XML Output without rdf

    Howdy,
    I have been dev Oracle Forms/Reports for over 10 years. We are now migrating all of our reports to BIP.
    To date when I have been developing these reports I have been using the old rdf files to "generate to a file" and thus get a nice, quick and dirty XML output file (what I am calling a “datafile”). Using this makes it substantially easier to then dev the format template. However going forward I/we would like to completely remove the Designer 2000 tool entirely when it comes to report development.
    How can we as developers can get our hands on the XML "datafiles" that are generated by the data templates in BIP? Are these stored anywhere on the server for the viewing? Is there another tool I can pop my Data template and SQL into and generate XML ‘with’ the correct groupings, ect.?
    Thanks in advance for any assistance/guidance you can provide.
    ScottC

    Or, from the browser see Note:394631.1
    1.Using System Administrator responsibility
    Nav:Profile->System
    query Viewer: Text, set this to Browser and save
    2. Using your Receivables responsibility
    Run the the XML report that is failing, note the request_id
    when it finishes, even with errors do this,
    View->Requests
    query this request_id
    click on Diagnostic button->View XML
    save the file to your PC by doing File->Save As
    3. Upload this XML data file.

Maybe you are looking for

  • My ipod touch is stuck on recharge mode even when it isn't connected to the computer???

    Right now my Ipod touch is in the charging / recharge screen and it won't leave that screen even when I unplug it. And it don't seem to be charging the red part on the battery indicator is flashing red and not moving into the green at all I have trie

  • Acrobat 9 Pro - Serial Number Problem - 3 Separate Licenses

    I own 3 separate licenses of Acrobat 9 Pro and have owned several licenses going clear back to Acrobat 6.  We have used them on the office computers and home or laptop just as the license authorizes. Recently we had a problem of employees getting con

  • MathType 6.7e with InDesign CS6 on Mac OS 10.6.8

    We have created an equation as EPS/None format by using the MathType version mentioned above. The same equation was imported into InDesign CS6 and found that there was an extra space that occurred around the equations. But we did not give any additio

  • Receiver determination step in BPM

    Hi, I have open a topic about BLOCK in BPM, as this link Re: question on BLOCK in BPM I descript the symptom in it, you can have a look. But now I find that the problem is due to receiver determination step in BPM, not block. So I think I'd better po

  • Assign roles automatically when user gets created

    Hello, I want to know if there is a way to assign basic roles to all the users in the system when they get created in the back end as well in the portal. Thanks in advance.