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

Similar Messages

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

  • Adding namespace in XML

    Hi,
    I have created an xml by using XMLTYPE( oracle object ). Now I want to add a namespace to the existing root node. How can I achieve this?
    Currently
    <RESPONSE>
    <TAG1>jack</TAG1>
    <TAG2>mon<TAG2>
    </RESPONSE>
    Desired ouput
    <RESPONSE xmns=''http://aloha.com">
    <TAG1>jack</TAG1>
    <TAG2>mon<TAG2>
    </RESPONSE>
    Thanks,
    VJ

    SELECT insertchildxml(XMLTYPE('<RESPONSE>
    <TAG1>jack</TAG1>
    <TAG2>mon</TAG2>
    </RESPONSE>'),
                          '/RESPONSE',
                          '@xmlns',
                          'http://aloha.com')
      FROM dual;Produces
    <RESPONSE xmlns="http://aloha.com"><TAG1>jack</TAG1><TAG2>mon</TAG2></RESPONSE>

  • Adding namespaces to XML

    Hi all,
    When I generate a XML message via a mapping and using the Anonymizer Module i can create the following:
    <os:envelope xmlns:os="http://www.name.org">
    Standard SAP is using the prefix ns0 instead of the prefix os. The Anonymizer Bean is able to change this prefix.
    Now I would like to add some additional namespaces. the result should look like this:
    os:envelope xmlns:os="http://www.name.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.name.org http://www.system.name.org/schemas/valid/docuemnt.xsd">
    How can I establish this?
    Best regards and Thanks
    Ron

    This is not possible with the graphical mapping tool, as the XI interfaces have only one namespace.
    You can do this with Java Mapping or XSLT mapping as seperate step after the standard mapping.
    Regards
    Stefan

  • Problem using namespace of XML docs gerenrated by  XMLForm

    Hi community!
    I am facing a problem using namespace within a XSL stylsheet. Let me describe my problem:
    I am using the SAP XMLFormsBuilder within the SAP EnterprisePortal in order to provide a HTML based form for creating and editing specific XML documents. The data in the generated documents is finally presented as HTML using XSL Transformation.
    In the XMLFormsBuilder you define the Schema of the XML document and the HTML GUI of the form. The Schema document looks like below (extract):
    <?xml version="1.0" encoding="utf-8"?>
    <schema targetNamespace="http://www.xmlspy.com/schemas/orgchart"
            xmlns="http://www.w3.org/2001/XMLSchema"
            xmlns:xyz="http://www.xmlspy.com/schemas/orgchart" Version="6.3.0">
      <element name="commodity"
               default=""
               minOccurs="1"
               maxOccurs="1"
               ns="p2p"
               xmlns:p2p="http://www.portal.p2p.com">
        <complexType>
          <sequence>
            <element name="administrative_information"
                     default=""
                     minOccurs="1"
                     maxOccurs="1"
                     ns="p2p">
              <complexType>
                <sequence>
                  <element name="creation_date"
                           default=""
                           minOccurs="1"
                           maxOccurs="1"
                           type="date"
                           ns="p2p"/>
    As far as I understand, each element defined in the Schama belongs to the namespace "p2p" and this is exactly what I want.
    The XML document generated by the form looks like below (extract):
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="show_card.xsl"?>
    <commodity xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms"
               xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance"
               xsi:noNamespaceSchemaLocation="/etc/xmlforms/P2PCategoryCard_TEST/P2PCategoryCard_TEST-Schema.xml">
      <administrative_information>
        <creation_date>2005-07-04</creation_date>
    Consequently, the file "show_card.xsl" is the responsible XSLT stylesheet, which looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="p2p:commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="p2p:administrative_information/p2p:creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    The problem in the XSLT stylesheet is, that I want to access the XML document elements using their namespace. And this is exactly what does not work for me. On the other hand, if I remove the reference to the namespace:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="administrative_information/creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    the stylesheet works fine, but for some technical reasons, which I don't want to explain here, I have to use the namespace when accessing the XML document elements.
    For technical reasons, I cannot change the format of the Schema document and also cannot change the format of the generated XML document. The only file I can change and control is the XSLT stylsheet.
    My question is now, in the case described above, if there is any way to use the namespace in the sytlesheet when accessing the XML elements?
    Any help is appreciated.
    Cheers,
    Adam Kreuschner

    duggal.ashish wrote:
    3. Some XML files contain a "iso-8859-1" character with character code 146 which appears like apostrophes but actually it is : - &#146; and the problem is that words like can&#146;t are shown as can?t by database.http://en.wikipedia.org/wiki/ISO8859-1
    Scroll down in that page and you'll see that the character code 146 -- which would be 92 in hexadecimal -- is in the "unused" area of ISO8859-1. I don't know where you got the idea that it represents some kind of apostrophe-like character but it doesn't.
    Edit: Actually, I do know where you got that idea. You got it from Windows-1252:
    http://en.wikipedia.org/wiki/Windows-1252
    Not the same charset at all.

  • Namespace in XML Payload for HTTP Sender

    Hello,
    I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.
    After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked
    This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?
    Do you have any information on this?

    Hi,
    U need to copy the payload from Message mapping test message tab and use that payload.
    or u can use the HTTP test client for testing the same.
    sample HTML code to create HTTP Client:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    You can also use the Wfetch application by Microsift for the same..
    download the same from below link
    http://www.iisfaq.com/Default.aspx?tabid=2975
    Thnx
    Chirag

  • Remove  Namespace from XML File except Attribute

    Hi  XI  Experts ,
    1.I have referred to the code of xslt Generic XSLT Code to Remove ALL Namespaces from XML:
    http://forums.sdn.sap.com/thread.jspa?threadID=1920630
    But this removes the Attribute : id  from the records .
    My expected output is supposed to be :
    <?xml version="1.0" encoding="GBK"?>
    <body>
      <head>
        <nsrsbh>112001069711</nsrsbh>
        <nsrmc>诺维信(中国)生物技术有限公司出口发票</nsrmc>
        <dcrq>20120209</dcrq>
        <sssq_q>20111201</sssq_q>
        <sssq_z>20120207</sssq_z>
        <records>4</records>
      </head>
      <data>
        <record id="1">
           <fpdm></fpdm>
        </record>
    </data>
    </body
    But after using this XSLT code it removes :id from <record_1 id=> and generated the below code :
    The xml file now doesn't contain teh attribute :id
    <?xml version="1.0" encoding="GBK"?>
    <body>
      <head>
        <nsrsbh>112001069711</nsrsbh>
        <nsrmc>诺维信(中国)生物技术有限公司出口发票</nsrmc>
        <dcrq>20120209</dcrq>
        <sssq_q>20111201</sssq_q>
        <sssq_z>20120207</sssq_z>
        <records>4</records>
      </head>
      <data>
        <record>
          1
          <fpdm></fpdm>          
           </record>
    </data>
    </body>
    Could  you please provide your input
    Plaese note : Here  XI versin iS x1 3.0 SP7 . I have tried suing the Analyzer bean for the Encoing  of Chinese : GBK Intsead of UTF-8 in the Namespace  . But AF_Modules/XMLAnonymizerBean is not comptacible with XI 3.0 SP7
    Hence i have used the following code to remove namespcae and add  Encoding :GBK instead of UTF-8:
    <?xml version="1.0" ?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output encoding="GBK"/>
    <xsl:template match="node()|@*">
      <xsl:copy>
       <xsl:apply-templates select="node()|@*"/>
      </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>

    You could use exclude-result-prefixes.
    For example:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wt="http://www.example.com" exclude-result-prefixes="wt">
    </xsl:stylesheet>

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

  • XML output from Repostiory Reports

    Hi,
    Any ideas why the table definition report (cktci.rdf) data from the Repository Reports cannot be generated to XML?
    I'm running Designer ver. 9.0.2.91.9, Reports ver. 9.0.2.0.3 . XML is not on the destination format list in Repository Reports, but if you type in xml, the DESFORMAT parameter is correctly set to it. However, only part of the data model is output to the xml file:
    &lt;?xml version="1.0"?&gt;
    &lt;!-- Generated by Oracle Reports version 9.0.2.0.3 --&gt;
    &lt;CKTCI&gt;
    &lt;LIST_G_IRID&gt;
    &lt;G_IRID&gt;
    &lt;IRID&gt;*****&lt;/IRID&gt;
    &lt;NAME&gt;SODO&lt;/NAME&gt;
    &lt;LIST_G_LEV&gt;
    &lt;G_LEV&gt;
    &lt;VERSION&gt;1.8&lt;/VERSION&gt;
    &lt;LEV&gt;0&lt;/LEV&gt;
    &lt;/G_LEV&gt;
    &lt;/LIST_G_LEV&gt;
    &lt;CS_TABS&gt;1&lt;/CS_TABS&gt;
    &lt;/G_IRID&gt;
    &lt;/LIST_G_IRID&gt;
    &lt;D_USERNAME&gt;REP_OWNER&lt;/D_USERNAME&gt;
    &lt;D_USERNAME1&gt;&lt;/D_USERNAME1&gt;
    &lt;F_COL_DET&gt;N&lt;/F_COL_DET&gt;
    &lt;F_VW&gt;&lt;/F_VW&gt;
    &lt;F_SNP&gt;&lt;/F_SNP&gt;
    &lt;TABLES_YN&gt;Yes&lt;/TABLES_YN&gt;
    &lt;VW_TYPE&gt;No&lt;/VW_TYPE&gt;
    &lt;SNP_TYPE&gt;No&lt;/SNP_TYPE&gt;
    &lt;COL_DET&gt;Yes&lt;/COL_DET&gt;
    &lt;D_TABTY1&gt;&lt;/D_TABTY1&gt;
    &lt;CF_PROP_NAME&gt;&lt;/CF_PROP_NAME&gt;
    &lt;P_NULL_IND&gt;Optional ? : &lt;/P_NULL_IND&gt;
    &lt;P_DOMAIN_NAME&gt;Domain : &lt;/P_DOMAIN_NAME&gt;
    &lt;P_UPPERCASE&gt;Uppercase ? : &lt;/P_UPPERCASE&gt;
    &lt;P_ORAC_SEQ&gt;Sequence : &lt;/P_ORAC_SEQ&gt;
    &lt;P_DEF_VAL&gt;Default Value : &lt;/P_DEF_VAL&gt;
    &lt;P_ORD_SEQ&gt;Order By Sequence : &lt;/P_ORD_SEQ&gt;
    &lt;P_SORT_ORD&gt;Sort Order : &lt;/P_SORT_ORD&gt;
    &lt;D_YN&gt;&lt;/D_YN&gt;
    &lt;D_YES&gt;Yes&lt;/D_YES&gt;
    &lt;D_NO&gt;No&lt;/D_NO&gt;
    &lt;D_NULL&gt;Yes&lt;/D_NULL&gt;
    &lt;D_NOT_NULL&gt;No&lt;/D_NOT_NULL&gt;
    &lt;D_NULL_IND&gt;&lt;/D_NULL_IND&gt;
    &lt;D_VERSION&gt;1.8&lt;/D_VERSION&gt;
    &lt;D_CONTAINER&gt;ZSI-WARTA/SODO&lt;/D_CONTAINER&gt;
    &lt;D_VERSION1&gt;&nbsp&lt;/D_VERSION1&gt;
    &lt;D_CONTAINER1&gt;&nbsp&lt;/D_CONTAINER1&gt;
    &lt;COUNTER&gt;*****&lt;/COUNTER&gt;
    &lt;/CKTCI&gt;
    The biggest problem is that the main group G_APP from the report definition is not generated to XML, in spite of its parameter "Exclude from XML Output" being set to No. Any ideas why this happens?
    Regards,
    Tomasz

    hello,
    you can specify the look of the XML tags in the "XML Settings" property of the respective field. so let's say your datamodel has the colun called NAME then by default the xml tag would look soemthing like this
    <NAME>this is the value </NAME>
    now if you set the value for the
    "XML Tag" property and the "XML Tag Attributes" property to e.g. facet and name="his-name"> (the * is just to terminate the the values in this text) the generated XML tag would look something like
    <facet name="his-name">name="his-name"></facet>
    columns that are not in the datamodel (like i asume you mean by <stuff> and <futurestuff> you can create by adding formula columns into your datamodel. formula columns have the same "XML settings" section in their property sheet and can be modified accordingly.
    hope this is what you are looking for.
    thanks,
    ph.

  • Formatting XML Output

    How can I format the XML output I get from extract()?
    - get rid of new lines
    - get rid of indents
    - get rid of namespaces
    Thanks.

    You write some PL/SQL or Java code yourself to do so. We'll provide the capability to turn off the indent & newline stuff in a future release. I'm at a loss to understand why you would want to turn off namespace declarations though--they change the semantics of the data.

  • Transform LiveCycle form xml output using xsl

    I've completed my first form but now want to format the xml that's generated.
    Whilst I work for a big Company, I don't think they'll stretch to purchasing the Reader Extensions Module so I can output as PDF. Also there will be more than 500 users completing the form, so I can't just extend the rights using Adobe Acrobat.
    Therefore, I'd like to transform the xml created using xsl (as I have knowledge in this area) - I'd like the transformation to occur when the form is submitted via email so that a 'friendly' attachment is added to the email and not the xml output.
    Any ideas on this one?

    First thing is, the fonts did not work in my system.. So I can not really understand where the email address fields are..
    Few things:
    1) You have used an Email submit button and tried to place the code in the MouseDown event.
        You need to change this button to "Regular Type Button". and place the code in the Click event to work.
    2) I placed a sample button and put in my code for your reference.. This is working fine..You can check the below sample.
    https://acrobat.com/#d=tQa4E*8aA*mJq6aijSHuDQ
    3) You can do the same way for your form..
    4) If you have Acrobat software, you can enable JavaScript debugger which can give you the specific error message rather than Submit cancelled. If you do not, then you need to put some messageBox statements and check..
    Thanks
    Srini

  • Xml output remove tag begin with LIST_

    Hi,
    I have a requirement to generate a report with XML output. This output will be used for upload informations to other application. I know names of all tags and I can't have other tags.
    I have a xml file for bi publisher and work fine but group element added one more tag who begin with LIST_.
    e.g.
    <LIST_mygroup_name>
    <mygroup_name>
    </mygroup_name>
    </LIST_mygroup_name>
    I want to remove all tags which begin with LIST_.
    Any suggestion?
    Thanks
    Kale.

    In reports6i I can you can click on the report properties of the group to remove the list tag.
    In data templates just add the property
              <property name="include_rowsettag" value="false"/>Don't forget to give me the points!
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Upload XML output into DMS

    Hello all,
                 I have generated an XML output through Smartforms. Now I need to load this file into DMS . Please let me know how I can achieve this.
    Thanks,
    Kalyan

    check this code and use it...
    REPORT  Z_RMTIWARI_XML_TO_ABAP_46C              .
    Load iXML Lib.
    type-pools: ixml.
    class cl_ixml definition load.
    data: G_IXML type ref to if_ixml.
    data: STREAMFACTORY type ref to if_ixml_stream_factory.
    data: ISTREAM type ref to if_ixml_istream.
    data: DOCUMENT type ref to if_ixml_document.
    data: PARSER type ref to if_ixml_parser.
    data: LV_FILE_URL type rlgrap-filename.
    You should provide the parameter for file name
    LV_FILE_URL = 'C:input_xml.xml'.
    types: begin of XML_LINE,
            DATA(256) type x,
          end of XML_LINE.
    types: begin of TY_HEADER,
             CUST_NAME(20)     type c,
             CARD_NO(20)       type c,
             TAX_AMOUNT(10)    type c,
             TOTAL_AMOUNT(10)  type c,
           end of TY_HEADER.
    types: begin of TY_ITEM,
             ITEM_NO(4)      type n,
             ITEM_ID(20)     type c,
             ITEM_TITLE(50)  type c,
             ITEM_QTY(10)    type c,
             ITEM_UPRICE(10) type c,
           end of TY_ITEM.
    data: GV_HEADER type TY_HEADER.
    data: GT_ITEM   type standard table of TY_ITEM   with header line.
    data: XML_TABLE      type table of XML_LINE,
          XML_TABLE_SIZE type i.
    The next step is creating the main factory for the iXML library:
    G_IXML = cl_ixml=>create( ).
    Now Create Stream Factory
    STREAMFACTORY = G_IXML->create_stream_factory( ).
    upload a file from the client's workstation
    call function 'WS_UPLOAD'
         exporting
              filename   = LV_FILE_URL
              filetype   = 'BIN'
         importing
              filelength = XML_TABLE_SIZE
         tables
              data_tab   = XML_TABLE
         exceptions
              others     = 11.
    wrap the table containing the file into a stream
    ISTREAM = STREAMFACTORY->create_istream_itable( table = XML_TABLE
                                                    size  = XML_TABLE_SIZE )
    Get the file data as Stream
    *istream = streamfactory->create_istream_uri( public_id = lv_file_url
                                                system_id = lv_file_url ).
    Create XML Document instance
    DOCUMENT = G_IXML->create_document( ).
    Create parser Object
    PARSER = G_IXML->create_parser( stream_factory = STREAMFACTORY
                                    ISTREAM = istream
                                    DOCUMENT = document ).
    Parse an XML document into a DOM tree
    *parser->parse( ).
    Parsing Error Processing
    if PARSER->parse( ) ne 0.
      if PARSER->num_errors( ) ne 0.
        data: PARSEERROR type ref to if_ixml_parse_error,
              STR        type STRING,
              I          type i,
              COUNT      type I,
              INDEX      type i.
        COUNT = PARSER->num_errors( ).
        write: COUNT, ' parse errors have occured:'.
        INDEX = 0.
        while INDEX < COUNT.
          PARSEERROR = PARSER->get_error( INDEX = index ).
          I = PARSEERROR->get_line( ).
          write: 'line: ', i.
          I = PARSEERROR->get_column( ).
          write: 'column: ', i.
          STR = PARSEERROR->get_reason( ).
          write: STR.
          INDEX = index + 1.
        endwhile.
      endif.
    endif.
    Close the stream since it �s not needed anymore
    call method ISTREAM->close( ).
    clear ISTREAM.
    Now try to make it look good
    data : lv_size     type sytabix,
            lv_ret_code type sysubrc.
    data: lo_xml_document type ref to cl_xml_document.
    field-symbols: <fs_xml_data> type any table.
    lo_xml_document = document.
    call method lo_xml_document->get_as_table
       importing
         table   = <fs_xml_data>
         size    = lv_size
         retcode = lv_ret_code
    *data: items type ref to if_ixml_node_collection.
    *items = document->get_elements_by_tag_name( name = 'Item' ).
    *data: iterator type ref to if_ixml_node_iterator,
         node     type ref to if_ixml_node.
    *iterator = document->create_iterator( ).
    *node = iterator->get_next( ).
    *while not node is initial.
    do something with the node
    node = iterator->get_next( ).
    *endwhile.
    DATA : GV_NODE type ref to if_ixml_node.
    DATA : GV_NODETEXT type STRING.
    data:  GV_FIRST_TIME.
    GV_FIRST_TIME = 'X'.
    GV_NODE = DOCUMENT.
    GT_ITEM-item_no = 1.
    perform GET_DATA tables     GT_ITEM
                     using      GV_NODE
                     changing   GV_HEADER.
    Last item is still not added.
      append GT_ITEM.
    write  : GV_HEADER-cust_name,
             GV_HEADER-card_no,
             GV_HEADER-tax_amount,
             GV_HEADER-total_amount.
    loop at GT_ITEM.
      write  /:.
      write  : GT_ITEM-item_no,
               GT_ITEM-item_id,
               GT_ITEM-item_title,
               GT_ITEM-item_qty,
               GT_ITEM-item_uprice.
    endloop.
          FORM Get_data                                                 *
    form get_data tables   YT_ITEM    structure GT_ITEM
                  using value(x_node) type ref to if_ixml_node
                  changing Y_HEADER   type TY_HEADER.
      data: INDENT      type i.
      data: PTEXT       type ref to if_ixml_text.
      data: STRING      type string.
      data: TEMP_STRING(100).
      case X_NODE->get_type( ).
        when if_ixml_node=>co_node_element.
          STRING = X_NODE->get_name( ).
          GV_NODETEXT = STRING.
        when if_ixml_node=>co_node_text.
          PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
          if PTEXT->ws_only( ) is initial.
            STRING = X_NODE->get_value( ).
            case GV_NODETEXT.
              when 'Customer'.
                clear GV_HEADER.
              when 'Name'.
                move STRING to GV_HEADER-cust_name.
              when 'Cardnum'.
                move STRING to GV_HEADER-card_no.
              when 'Tax'.
                move STRING to GV_HEADER-tax_amount.
              when 'Total'.
                move STRING to GV_HEADER-total_amount.
            Iteam details
              when 'ID'.
                move STRING to GT_ITEM-item_id.
              when 'Title'.
                move STRING to TEMP_STRING.
                move TEMP_STRING to GT_ITEM-item_title.
              when 'Quantity'.
                move STRING to GT_ITEM-item_qty.
              when 'UnitPrice'.
                move STRING to GT_ITEM-item_uprice.
            endcase.
          endif.
      endcase.
      if GV_NODETEXT = 'Customer'.
        clear GV_HEADER.
      elseif GV_NODETEXT = 'Item'.
        if GV_FIRST_TIME ne 'X'.
           append GT_ITEM.
         clear : gt_item.
           GT_ITEM-item_no = gt_item-item_no + 1.
        endif.
        GV_FIRST_TIME = ' '.
      endif.
    Get the next child
      X_NODE = x_node->get_first_child( ).
    Recurse
      while not X_NODE is initial.
        perform GET_DATA tables     GT_ITEM
                         using      X_NODE
                         changing   GV_HEADER.
        X_NODE = x_node->get_next( ).
      endwhile.
    endform.

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

Maybe you are looking for

  • How to know the list of scenario that use a KM

    In ODI work repository, from which table I can know a list of interfaces that use one IKM and from which table I can can know a list of package that use that interface? The reason for this question is I want to regenerate all scenarios impacted by th

  • Rectangles not spanning in different browsers

    We made a landing page inside of muse and it looks great in firefox however in safari and chrome, the two rectangle boxes we made are not spanning.  The site is:  marquee01.businesscatalyst.com The issue is the black rectangle across the top of the p

  • Images fail to load completely

    I regularly visit a web site which displays many photographs. Often some of the images fail to load completely, I may see the top 30% of the image and the rest shows as a grey box. Pasting the same URL into Firefox, shows the whole image. Any ideas?

  • How to get back to the calling application ?

    Hi Friends ,             I am having a BSP application which is being called from different Planning layouts in BPS .   Its a stateful application and I am finding that when i hit standard browser Back button i am returning to my application again .

  • Can I rename my iPod?

    I have an iPod nano and an iPod touch that are both called "Ernie's iPod" in iTunes.  Since the iPod touch is wireless, it's usually in the Devices list, and when I plug in the iPos nano to sync it, both appear -- and at can be confusing.  Can I rena