XML Output prefixes in XI

Hi,
I'm having problems with prefixes:
The first problem:
How do I remove prefixes that does were not even declared in the xsd's?Take note that the xsd used did not have external dependencies (did not use the include or import schema command)  because all its contents were encoded inside the xsd itself.
from
Message
     ns0:Header
     ns0:Content
to
Message
    Header
    Content
The second problem:
How do I add prefixes in the output of XI? Take note that the xsd used external dependencies.
from
Message
     Header
     Content
to
Message
    sh:Header
    sh:Content
Please help me on this one. Points will be awarded. Thanks

Hi,
First problem
If you don't want to have the prefix ns0, in your external definition (xsd) add something like this:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Header">
instead of ns0
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Content">
instead of ns0
second problem
please do viceversa
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="ns0:Header">

Similar Messages

  • 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

  • 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 :)

  • XML Report is generating xml output instead of pdf output

    Hi All,
    I have created a report using BI publisher.When I am runnng the report it is showing xml output instaead of pdf format...The report is getting completed with a warning message.I am able to see other reports (XML) outputs in pdf format.But this report is having some problem ,which i am not able to identify.
    Please help..
    Thanks,
    Joohi

    Output of OPP log file
    [5/17/12 5:35:11 PM] [main] Starting GSF service with concurrent process id = 457384.
    [5/17/12 5:35:11 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [5/17/12 5:35:11 PM] [Thread-32] Service thread starting up.
    [5/17/12 5:35:11 PM] [Thread-33] Service thread starting up.
    [5/17/12 5:47:20 PM] [OPPServiceThread0] Post-processing request 33169846.
    [5/17/12 5:47:21 PM] [457384:RT33169846] Executing post-processing actions for request 33169846.
    [5/17/12 5:47:21 PM] [457384:RT33169846] Starting XML Publisher post-processing action.
    [5/17/12 5:47:21 PM] [457384:RT33169846]
    Template code: XXMI_MILEAGE_ALLOWANCE
    Template app: XXMI
    Language: en
    Territory: 00
    Output type: PDF
    [051712_054721299][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [051712_054721299][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [051712_054721299][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [051712_054721299][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
    [051712_054721299][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [051712_054721299][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
    [051712_054721300][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
    [051712_054721300][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [051712_054721300][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
    [051712_054721300][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=ffebdbs04.datahost.int)(PORT=1611)))(CONNECT_DATA=(SID=MFDEV)))]
    [051712_054721300][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
    [051712_054721300][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
    [051712_054721300][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
    [051712_054721300][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
    [051712_054721300][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [051712_054721301][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [051712_054721301][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
    [051712_054721301][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
    [051712_054721301][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
    [051712_054721301][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [051712_054721301][][EXCEPTION] [DEBUG] [APPLTMP]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/appltmp]
    [051712_054721301][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) SE Runtime Environment]
    [051712_054721301][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
    [051712_054721301][][EXCEPTION] [DEBUG] [java.vm.version]:[16.0-b13]
    [051712_054721301][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
    [051712_054721301][][EXCEPTION] [DEBUG] [dbcfile]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/appl/fnd/12.0.0/secure/MFDEV.dbc]
    [051712_054721301][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
    [051712_054721301][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
    [051712_054721301][][EXCEPTION] [DEBUG] [path.separator]:[:]
    [051712_054721301][][EXCEPTION] [DEBUG] [APPLCSF]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/logs/appl/conc]
    [051712_054721301][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
    [051712_054721302][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
    [051712_054721302][][EXCEPTION] [DEBUG] [sun.java.launcher]:[SUN_STANDARD]
    [051712_054721302][][EXCEPTION] [DEBUG] [user.country]:[US]
    [051712_054721302][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
    [051712_054721302][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
    [051712_054721302][][EXCEPTION] [DEBUG] [user.dir]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/logs/appl/conc/log]
    [051712_054721302][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.6.0_18-b07]
    [051712_054721302][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[30695]
    [051712_054721302][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
    [051712_054721302][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
    [051712_054721302][][EXCEPTION] [DEBUG] [os.arch]:[i386]
    [051712_054721302][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/appl/fnd/12.0.0/secure/MFDEV.dbc]
    [051712_054721302][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[tmp]
    [051712_054721302][][EXCEPTION] [DEBUG] [line.separator]:[
    [051712_054721303][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [051712_054721303][][EXCEPTION] [DEBUG] [os.name]:[Linux]
    [051712_054721303][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [051712_054721303][][EXCEPTION] [DEBUG] [cpid]:[457384]
    [051712_054721303][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[UTF-8]
    [051712_054721303][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
    [051712_054721303][][EXCEPTION] [DEBUG] [java.library.path]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/lib32:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/lib:/u02/erp/mfdevAPP/apps/apps_st/appl/cz/12.0.0/bin:/u02/erp/mfdevAPP/apps/apps_st/appl/iby/12.0.0/bin:/u02/erp/mfdevAPP/apps/apps_st/appl/pon/12.0.0/bin:/u02/erp/mfdevAPP/apps/apps_st/appl/sht/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
    [051712_054721303][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
    [051712_054721303][][EXCEPTION] [DEBUG] [java.class.version]:[50.0]
    [051712_054721303][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Tiered Compilers]
    [051712_054721303][][EXCEPTION] [DEBUG] [queue_appl_id]:[0]
    [051712_054721303][][EXCEPTION] [DEBUG] [os.version]:[2.6.18-238.12.1.0.1.el5]
    [051712_054721303][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
    [051712_054721303][][EXCEPTION] [DEBUG] [user.home]:[home/appmfdev]
    [051712_054721304][][EXCEPTION] [DEBUG] [user.timezone]:[Europe/Berlin]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
    [051712_054721304][][EXCEPTION] [DEBUG] [file.encoding]:[UTF-8]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.specification.version]:[1.6]
    [051712_054721304][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
    [051712_054721304][][EXCEPTION] [DEBUG] [conc_queue_id]:[6269]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.class.path]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u02/erp/mfdevAPP/apps/apps_st/comn/java/lib/appsborg2.zip:/u02/erp/mfdevAPP/apps/apps_st/comn/java/classes]
    [051712_054721304][][EXCEPTION] [DEBUG] [user.name]:[appmfdev]
    [051712_054721304][][EXCEPTION] [DEBUG] [DBCFILE]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/appl/fnd/12.0.0/secure/MFDEV.dbc]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.home]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre]
    [051712_054721304][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
    [051712_054721304][][EXCEPTION] [DEBUG] [user.language]:[en]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
    [051712_054721304][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
    [051712_054721305][][EXCEPTION] [DEBUG] [logfile]:[u02/erp/mfdevAPP/inst/apps/MFDEV_ffebapp04/logs/appl/conc/log/FNDOPP457384.txt]
    [051712_054721305][][EXCEPTION] [DEBUG] [java.version]:[1.6.0_18]
    [051712_054721305][][EXCEPTION] [DEBUG] [java.ext.dirs]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/ext:/usr/java/packages/lib/ext]
    [051712_054721305][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/u02/erp/mfdevAPP/apps/tech_st/10.1.3/appsutil/jdk/jre/classes]
    [051712_054721305][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
    [051712_054721305][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [051712_054721305][][EXCEPTION] [DEBUG] [file.separator]:[]
    [051712_054721305][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
    [051712_054721305][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
    [051712_054721305][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
    [051712_054721305][][EXCEPTION] [DEBUG] [APPLOUT]:[out]
    [051712_054721305][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
    [5/17/12 5:47:23 PM] [UNEXPECTED] [457384:RT33169846] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:558)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:228)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 17 more
    [5/17/12 5:47:23 PM] [457384:RT33169846] Completed post-processing actions for request 33169846.
    [GC 21325K->4165K(63360K), 0.0107770 secs]

  • 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

  • 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

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • How to create a xml output in report 2.5

    Hi
    Please Anyone using reports 2.5 and trying to
    implement XML outputsolutions ?? I have some
    oracle reports that need to produce XML output
    I know that 6i supports XML output. i dont know
    how to do in 2.5. If anyone has done anything similar
    to this, I'd be interested in hearing different solutions?
    Thanks,
    Parthi

    [ajayubbott],
    I am not sure if you should create another folder to house all your servlets when using Java Web Server 2.0.
    The servlet invoker of Java Web Server 2.0 looks at the <server_root directory>/servlets/ directory as the root servlet directory by default and any servlets that is housed under this directory is monitored by the custom class loader provided by Java Web Server 2.0.
    This custom class loader will automatically reload any serlvet class files that are modified i.e. a newer version of the servlet that is newly compiled e.g. change in functionality. What this means is that you don't have restart the web server to reload any new version of the existing servlets on the web server.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • How to create a errortag in the XML-Output ?

    Hey
    who can help me creating a error-tag in my XML-output of a PL/SQL procedure ?
    Enviroment:
    Oracle DB is 8.1.7 with installed XDK-package (in a few
    weeks perhaps Oracle 9i). I've no problems to use the dbms_xmlquery-functions and -procedures.
    I've to develop a PL/SQL procedure which is called via JDBC from a JAVA program. The procedure execute a Select-Statement. The result is transformed in XML and stored in a CLOB, which is given back to the calling JAVA-program.
    There exist 2 possible result-situations.
    -1- one or more rows are found
    -2- no row is found
    Problem:
    For each of these situation the XML-Output should have a different structure and my main problem is to integrate the errortag !!!
    for -1-
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <data>
    <error err_code="NoError"/>
    <record num="1">
    </record>
    <record num="2">
    </record>
    </data>
    for -2-
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <data>
    <error err_code="NoDataFound"/>
    </data>
    Hope somebody can help me ???
    Andre

    Hey Rajat,
    thanks for your answer, but the errortag is needed by another department. They use it for their processing.
    Have you got any idea, how to integrate the errortag with the functions or procedures of the dbms_xmlquery package ??? I've got only a few days experience with the dbms_xmlquery-package, so some code examples or advices would be great !!!
    I've tried the following coding:
    out_xmlresult OUT CLOB; -- OUT Parameter of the PLSQL-Proc
    c1 CLOB;
    queryctx dbms_xmlquery.ctxtype;
    -- create XML-context
    queryctx:=dbms_xmlquery.newcontext(<selectstatement>);
    -- delete the rowsettag (use 'data' later on)
    dbms_xmlquery.setrowsettag(queryctx,'');
    -- create new tag 'data' which enclose an empty header
    -- and the data section
    dbms_lob.createTemporary(c1, TRUE );
    c1:=EMPTY_CLOB();
    dbms_xmlquery.setDataHeader(queryctx,c1,'data');
    -- rename rowtag
    dbms_xmlquery.setrowtag(queryctx,'record');
    -- set encoding tag
    dbms_xmlquery.setEncodingTag(queryctx,'ISO-8859-1);
    -- create XML-Output
    out_xmlresult := dbms_xmlquery.getxml(queryctx);
    ...but I haven't got any success !!!
    Andre

  • Report XML output fail to load into .RTF layout [EBS r12]

    Hi,
    In EBS r12, we have requirement to have a standard report output in excel.
    I got the report's xml output to create the xml template (.RTF layout) using BI Publisher.
    I created the .RTF layout and it works fine on my laptop using Bi Publisher.. the xml loads into it and i can preview xml data on layout with all format (Excel, PDF...)
    I uploaded the layout to EBS, and assigned it to the standard report.
    I changed standard report out put to XML
    When i go to submit report request, the template is assigned with report and everything seems correct.
    [See screen shot: http://img35.imageshack.us/i/xmlt.jpg/]
    But after i run the report.
    The report is Completed with Warning status.. and output is only XML with Error message :
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    The Log file says :
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2350601 on node CLONE at 13-APR-2011 09:03:47.
    Post-processing of request 2350601 failed at 13-APR-2011 09:03:48 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Why this is happening ? i have done this many times with other standard reports and it worked fine.
    Please advise.
    Standard Report: Supplier Aging Report
    EBS : 12.1.1

    please check the log file and post the output here
    How to find OPP log file?
    To investigate on XML issues or other publishing problems, often the OPP logfile is needed.
    OPP stands for Output Post Processor. Below are the steps to find log file
    1. Login to the application as SYSADMIN
    2. Responsibility: System Administrator
    3. Function: Concurrent --> Manager --> Administration
    4. Select the Output Post Processor
    5. Click on the Processes button
    6. Select the Concurrent Process which was active during the time that the request ran
    7. Click on the Manager Log button to open the Output Post Processor log file

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • 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.

  • How to send job postings to multiple third party sites using the XML output

    Dear Friends,
    We are Implementing Irecruitment for our client, Client requirement is how can we send job postings to multiple third party sites using the XML output from i-Recruitment
    With regards
    Surya
    .

    Can you be more specific about your Requirement. In General, Please navigate to iRecruitment Recruiter Responisbility.
    Then Select, Setup > Recruiting Sites. Here, you can configure your Third Party Websites information and attach stylesheets. The default mode oracle sends the vacancy information is HR-XML Format.
    If you would like to select more sites information select "Add Another Row".
    Then, you can see this information while "New Vacancy Creation Process".
    iRecruiter.
    Edited by: iRecruiter on Oct 18, 2009 7:43 AM

  • How to calculate number of data records in a XML output file

    Hi,
    After generating a XML output file from Oracle Reports, I want to calculate number of records in the XML file. Is it possible? Specifically, I want to calculate number of records for a group variable ( organization_id, which I use for bursting).
    Thanks for the help.

    Thanks BIPuser. It is useful for me.
    I can use this xsl function within the template. However, I'm also looking to print this in the concurrent request log file. So, outside of rtf template, id there any PL/SQL based XML functions I can use to count the number of records.
    Thanks.

Maybe you are looking for

  • Hibernate OR EclipseLink...Which is best with Weblogic and Oracle DB?

    Hi All, In my company, we are using Oracle DB and Weblogic application server. So in the process to upgrade or switch to new ORM, we shortlisted two options - Hibernate and EclipseLink. I gathered following summary regarding both ORMs - Hibernate: 1.

  • Adding Previously Backed-Up CD's of iTunes, dont want to delete current..?

    I don't want to delete my current iTunes Library... or lose the songs.... so when I put a back-up CD in of iTunes library previously backed up, will it delete my current stuff???? I have songs on the previously backed-up CDs that arent on here and so

  • Fault handling in DIServer Interact

    Good Day Mentors, I'm currently testing out how the DIServer works. Now, I am testing Fault handling with the DI Server, and would want to know if there is a way to get multiple Errors from an DI Server Interact call. My test scenario was adding 2 Sa

  • Using Validator with mx:ComboBox causes it to auto-close

    I've recently ported a 3.x flex app to Flex 4. I've run in to a bug that causes all mx:ComboBoxes to close the first time the user attempts to open the drop down list. Subsequent attempts to open the box work fine. Example: <mx:ComboBox id="typeId" d

  • Redwood: Migration from Basic to Full version

    Hi All, Our client is now going ahead with OEM version of REDWOOD and will plan for full blown version in future. In this regard, we wanted to know the possibility of migrating all the existing stuff (like all the created scripts, job chains, time wi