Adding Comment for XML output

How to add comment in xml output.
I have to replace the default comment in the xml output.
If i use SRW.ADD_DEFINITION, Its not working.
Can any on guide me through this to achieve it.

i have written the following code in after parameter form. In the data model i am selecting empno and empname. Now i have to generate an xml which has the comment "Internal purpose only". I have to dynamically change the tag names also. But this code throws an error
REP-0069:Internal error
REP-57054: In-Process job terminated:Terminated with error
REP-866648059:Error in the xml report definition at line 3 in
Invalid element 'source' in content of 'section',expected elements '[tabular,groupAbove,groupLeftinsideAbove....]
-------------------------------------------------------code----------------------------
SRW.ADD_DEFINITION('<report name="Employee"
author="Generated" DTDVersion="9.0.2.0.0"> <!-- Internal purpose only-->');
SRW.ADD_DEFINITION('<layout>');
SRW.ADD_DEFINITION('<section name="main">');
SRW.ADD_DEFINITION('<source="empno">');
SRW.ADD_DEFINITION('<source="empname" >');
SRW.ADD_DEFINITION('</section>');
SRW.ADD_DEFINITION('</layout>');
SRW.ADD_DEFINITION('</report>');
SRW.APPLY_DEFINITION;

Similar Messages

  • How can print blank rows for XML output report..

    Hi all,
    I am working in XML output PO fix format report and in that report there is 3 sections. (1) Header section(2)Line section (3) Footer section. My requirement is like this, header and footer section print in all pages and line section break for next page after printing fix 15 lines in a page. And if any page has less then 15 lines then it generate remaining blank row to maintain footer position.
    Please suggest me, how can i generate blank rows and break lines for page if there is more then 15 rows in Line section.
    Thanks in Advance!

    Hi,
    <?for-each:ROW?>
    <?end for-each?><xsl:variable name="cnt" select="count(//row|//ROW)" />
    <?for-each:xdoxslt:foreach_number($_XDOCTX,1,15-count(ROW),1)?> <?end if?>
    this will create 15 lines irrespective of you have that much rows of data in xml or not
    if you want more help , drop me mail @ [email protected]

  • How to remove default comment from XML output

    Hi,
    I have a requirement to generate the XML report with XML output(Not PDF). Everything is working fine except I am getting one comment line "<!--Generated by Oracle Reports version 6.0.8.28.0--> which is not required and I want to remove this line. This report will be run through Oracle Apps 11i.
    Thanks.

    Hi,
    There is option to change the "Prolog Value" but nothing is there to remove the comment.
    Thanks

  • Adding namespace to XML output

    Hi,
    I have a requirement to generate a XML document for columns in the table. I am using DBMS_XMLgen.getXML inside my procedure to get the XML document.
    The output which i get after executing my procedure is:
    <?xml version="1.0"?>
    <EMP>
    <EMPLOYEE_NO>000017</EMPLOYEE_NO>
    <EMPLOYEE_STATUS>ACTIVE</EMPLOYEE_STATUS>
    <NAME_LAST>Mini</NAME_LAST>
    <NAME_FIRST/>
    </EMP>
    But I also need namespace prefix and namespace uri in this xml output. Is there a way to add namespace prefix and namespace uri to this xml output.
    So what i need is something like below one:
    <?xml version="1.0"?>
    <xs:EMP>xmlns:out="http://xmlns:out="http:/example.org/ver1.0/ThisISTest#">
    <xs:EMPLOYEE_NO>000017</xs:EMPLOYEE_NO>
    <xs:EMPLOYEE_STATUS>ACTIVE</xs:EMPLOYEE_STATUS>
    <xs:NAME_LAST>Mini</xs:NAME_LAST>
    <xs:NAME_FIRST/>
    </xs:EMP>
    Any solutions or sample code on this would be of great help.
    Thanks in Advance.

    Hi,
    IMO, the best option is to use an XSL transformation "on the fly" with DBMS_XMLGEN.
    Here's a stylesheet that should work (change namespace and prefix to yours) :
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://test">
    <xsl:template match="*">
    <xsl:element name="ns0:{local-name()}">
      <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>Right now, I only have a 10gR1 at my disposal and the transformation doesn't give expected results (there are a few known issues with XSLT on 10g).
    However, I could test it with an external processor (saxon9he) and it should work OK in 11g too.
    So, in your procedure, all you have to do is declare the XSLT document :
    xsldoc    xmltype := xmltype(
    '<?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://test">
    <xsl:template match="*">
    <xsl:element name="ns0:{local-name()}">
      <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>'
    );and bind the stylesheet to the context :
    DBMS_XMLGEN.setrowsettag (messagehandle_xml, 'EMP');
    DBMS_XMLGEN.setrowtag (messagehandle_xml, NULL);
    DBMS_XMLGEN.setmaxrows (messagehandle_xml, 2);
    DBMS_XMLGEN.setNullHandling(messagehandle_xml, DBMS_XMLGEN.EMPTY_TAG);
    DBMS_XMLGEN.setXSLT(messagehandle_xml, xsldoc); -- < here
    ...Let me know if it works :)

  • Unable to use the Copy function while submitting the program for XML output

    Hi
    when i submit the concurrent program with XML output type, getting the output..
    when i submit he concurrent program using the copy button not able to get the output,
    my observation
    while submitting the program the xml template is not called....
    Diagnostics--> view xml -- able to view the ouput.
    do let me know if any of the steps is missing while registration in the xml responsibility..
    this is only with the custom conc program.. the standard program is working fine...
    do help me out..
    Regards
    Yram

    It's really a little difficult to answer your question without a bit more information. What version of JDeveloper are you using? What's your technology stack?
    If this is JDeveloper 11+g+, with the Fusion technology stack, you can use a technique like the one described here:
    http://groundside.com/blog/GrantRonald.php?title=jdeveloper_11_business_services_cascadin&more=1&c=1&tb=1&pb=1
    If it's JDeveloper 10.1.3, with the default Web technology stack, look here:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#62
    If, as it looks like, this is really a question about generic JSPs (no JSF), you might actually have a bit more success on a generic JSP forum--using scriptlets hasn't really been best practices within JDev since...well, since JSTL became available, really. That was a number of years ago.
    Like I said, there's really no direct way to use Javascript output in a scriptlet--unless you mean something like storing Javascript output in a hidden field, and using the value in a scriptlet on the next request. But by the time Javascript runs, any scriptlet from the current request will already have executed.

  • Logging: GUI for XML output? (Like Chainsaw for Log4j)?

    There is a nice GUI tool to view XML formatted output from Log4J log files. Is there some similar tool for Java logging XML formatted output?

    Hi,
    <?for-each:ROW?>
    <?end for-each?><xsl:variable name="cnt" select="count(//row|//ROW)" />
    <?for-each:xdoxslt:foreach_number($_XDOCTX,1,15-count(ROW),1)?> <?end if?>
    this will create 15 lines irrespective of you have that much rows of data in xml or not
    if you want more help , drop me mail @ [email protected]

  • Functions needed in Data Template for XML output

    Hi ,
    Are there any oracle functions like abs() available
    in data_template to be used as follows
    group name="listItem" source="Q2">
    <element name="amount" value="abs(amount)"/>
    <element name="serialNumber" value="TXN_SERIAL_NO"/>
    I want the absolute value of the amount .
    OR
    Can I HIDE the xml Element like
    <element name="amount" value="amount"/> (i want to hide this tag in output?)
    Please do not suggest to do the same in the SQL query as I am using the SQL query to do something else and resolve another issue.
    rdgs
    xyz

    You can do this abs in Template.
    use xdoxslt:abs or abs from xsl.
    if you want the data in the xml to habe absolute value , then write pl/sql package to this .
    <element name="amount" value="yourpcakage.yourabs(amount)"/>
    or do it in sql query, which you dont want to.

  • Properly structuring a document for XML output, CS4

    Hello all,
    I was wondering if anyone could provide me with a proper resource for how to to do this, what parameters I must work in and how I can work around some problems that I may be forseeing.
    Now, I have done some research on this. I have some books on the subject but I have yet to find them to be terribly helpful for the kind of content I work with. In books, Things like the master pages, footnotes many other elements are essential. Most of the examples provided for me are frankly not as complex as the documents I work with. Frequently the books provide examples of an image with some text next to it.
    Anyway clearly this could go on forever, so let me try and keep this tight. If anyone knows of an online database/resource of information I could use, that'd be great. Secondly, is it possible to export the data from the master pages into XML, or perhaps map the relevent content to xml (page numbers, title running head and chapter running head.) and the footnotes.
    Thank you!

    Did you know that you can place an InDesign document into another InDesign document?
    Start with your letter-size version, and make sure it's up-to-date. Save it, close it, then start a new empty tabloid document. Go to File -> Place and place the four pages of your letter-size document into your tabloid document.
    When you need to update both docs, then make the text changes in the lettersize doc. Save and close, then open up the tabloid doc and update the links. In fact, unless you've changed the way your install of ID is set up, then the moment you open the tabloid doc, it should ask you if you want to update your out-of-date links.

  • Random file name for xml output

    Hi:
    You know how when you're in design mode and select PDF preview, then click an email submit XML data button it assigns a random number as the XML file name? How can I set that same thing up when a user clicks the submit button from the web site? The default it assigns is the name of the pdf form.
    Many thanks for any suggestions,
    Ginger

    Virginia,
    The email submit button can only do what you described in your message.
    - The random file name generated in PDF preview is because you are in the design mode (not everyone has the working xpd file saved when he/she does a PDF preview. This results in a random file _x3432gd4343.xml is generated. It could have been called untitle1.xml if the product developers decide to do so).
    - When you open a PDF file (which has a name) in acrobat, the PDF filename is being used for the email attachment.
    Jimmy
    [email protected]

  • Hierachical reports for xml output

    Hi,
    is there a way to get a SQL result set for the xml export with more than 1 level ?
    For example:
    SELECT dname, empno, ename
    FROM emp, dept
    WHERE emp.deptno = dept.deptno
    will give me the following xml when being exported:
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <DNAME>ACCOUNTING</DNAME>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    </ROW>
    <ROW>
    <DNAME>ACCOUNTING</DNAME>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    </ROW>
    <ROW>
    <DNAME>ACCOUNTING</DNAME>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    </ROW>
    <ROW>
    <DNAME>RESEARCH</DNAME>
    <EMPNO>7566</EMPNO>
    <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
    </ROW>
    But the depts should be considered as seperate groups, to get the correct hierarchy:
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <DEPT>
    <DNAME>ACCOUNTING</DNAME>
    <EMP><EMPNO>7839</EMPNO><ENAME>KING</ENAME><JOB>PRESIDENT</JOB></EMP>
    <EMP><EMPNO>7782</EMPNO><ENAME>CLARK</ENAME><JOB>MANAGER</JOB></EMP>
    <EMP><EMPNO>7934</EMPNO><ENAME>MILLER</ENAME><JOB>CLERK</JOB></EMP>
    </DEPT>
    </ROW>
    Someone here who had similar problems ?
    Thanks,
    Jochen

    Hello,
    You could just run it through an XSLT after download to fix it up exactlly how you want it.
    Or call an On Demand Process that builds out the XML exactly how you want it.
    there is an example of me building out xml here and getting it from a link (it's a svg graphic but the concept is exactly the same) http://apex.oracle.com/pls/otn/f?p=11933:90
    Carl

  • Output type for XML in ECC - XI conversion?

    Hi,
    I ahve few queries regarding the PO o/p sent from ECC for XML output type...
    I header XML is supported in ECC from EHP4..is this true?
    If PO from ECC need to be sent out via XML,the output configuration for ECC PO's need to be changed also?
    Also if PO o/p needs to be sent EDI or XML,my understanding is XI will be mandatory for PO to be sent to supplier system.Can you pls confirm.
    Also when we say PO is sent via EDI(idoc) or XML,is there any difference in the data format/way in which data is sent to XI?If there any conversion happening on XI based on output type EDI or XML?
    On ECC side,is XML one of the output type or we just ALE and EDI?

    Hi,
       Check this help.
    http://help.sap.com/saphelp_srm30/helpdata/en/91/41faf2c220e84c9002a4ae4cc1906a/content.htm
    Best Regards,
    Ravi

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • Xml output emails are not coming

    Hi,
    We have an issue in our prod EBS 11i environment,
    suddenly we are unable to get mails for xml output. Other emails are coming.
    How to find the issue? please help.
    Thanks,
    Kavitha

    Hi,
    This it the request log.
    ========================================================
    XXDN Doner Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXDN_PA_XML_INV_PRT module: XXDN: Invoice Printing Report
    Current system time is 06-JUN-2012 20:40:06
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_INVOICE_NUM_LOW='90137418'
    P_INVOICE_NUM_HIGH='90137418'
    P_COPY_NAME='Customer Copy'
    P_TO_EMAIL_ADDRESS='[email protected]'
    P_PRINTER_NAME='SFLD-ACCT05-HP4250'
    P_MASTER_REQUEST_ID='9539199'
    P_NO_OF_COPIES='1'
    P_CUST_PDFS='N'
    P_CLIENT_ADDR='Y'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /ap02/u05/applmgr/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /ap02/u05/applmgr/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Xlib: connection to "apclsr01:0.0" refused by server
    Xlib: No protocol specified
    REP-3000: Internal error starting Oracle Toolkit.
    MSG-00100: XXDN_PA_XML_INV_PRT.rdf V1.9
    Report Builder: Release 6.0.8.28.0 - Production on Wed Jun 6 20:40:07 2012
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    Return 0
    Return 0
    Consolidation successful.
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 9539200 on node APCLSR01 at 06-JUN-2012 20:40:13.
    Post-processing of request 9539200 completed at 06-JUN-2012 20:40:15.
    ------------- 2) PRINT   -------------
    Printing output file.
    Request ID : 9539200      
    Number of copies : 0      
    Printer : SFLD-ACCT05-HP4250
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 06-JUN-2012 20:40:15
    ===========================================================
    And also i see below error in OPP log but that is not related to this request,
    [6/6/12 4:57:15 PM] [UNEXPECTED] [31721:RT9538937] oracle.apps.xdo.oa.schema.server.TemplateExpiredException: END_DATE has passed.
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.initStream(TemplateInputStream.java:439)
         at oracle.apps.xdo.oa.schema.server.TemplateInputStream.<init>(TemplateInputStream.java:235)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.getTemplateFile(TemplateHelper.java:1159)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3430)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    Thanks,
    Thanks,

  • Generating XML output

    I relaize that SVGs would probably be a better approach to this problem, but I'm designing maps for the stages in a friend's Xbox360 platformer game.  The game requires an XML document for each level describing the locations of the platforms.  It's onerous to do this by hand, and I thought it would be nice to write a Photoshop script/plugin that just looks at certain layers and generates the XML file for you.
    I know that the CS5 Javascript API has access to the "File" Javascript class, but are there any other pre-existing solutions that I could use to speed up writing the plugin?  I didn't see anything for XML output, which isn't the end of the world, but I figured I'd ask just in case anybody knows any gotchas.

    JS in PSCS5 has native XML support. Reading and writing XML files is trivial.
    Here's a post with a script that writes out some basic layer info to an XML file:
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=2268
    There are probably other examples floating around.

  • [svn:fx-trunk] 10866: Fix broken links in ASDoc comments for TLFTextInput. as and TextArea.as, and add OverrideBase.as to ASDoc output

    Revision: 10866
    Author:   [email protected]
    Date:     2009-10-05 08:56:44 -0700 (Mon, 05 Oct 2009)
    Log Message:
    Fix broken links in ASDoc comments for TLFTextInput.as and TextArea.as, and add OverrideBase.as to ASDoc output
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/states/OverrideBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as

    Sorry about that. I am not exactly sure where the problem is, but I know it takes place after I put the <nav> in (in the html portion). If I understand what I am learning, the CSS at the top will structure my html code so I would have thought the CSS tageting my nav would be the focus. Maybe it is a different section though.
    CSS part:
    nav p {
    font-size: 90%;
    color: #FFC;
    text-align: right;
    font-weight: bold;
    background-color: #090;
    padding-top: 5px;
    padding-right: 20px;
    padding-bottom: 5px;
    border-top-width: 2px;
    border-top-style: solid;
    border-top-color: #060;
    HTML part: (bold italic is the part I added)
    <body>
    <div class="container">
      <div id="apDiv1"><img src="Lessons/images/butterfly-ovr.png" width="170" height="158" alt="GreenStart Logo"></div>
      <header></header>
      <nav>
        <p>Home | About Us | Contact Us</p>
      </nav>
      <div class="sidebar1">
        <ul class="nav">
          <li><a href="#">Green News</a></li>
          <li><a href="#">Green Products</a></li>
          <li><a href="#">Green Events</a></li>
          <li><a href="#">Green Travel</a></li>
          <li><a href="#">Green Tips</a></li>
        </ul>

Maybe you are looking for