XML Header Output

Hello
Could some one please tell me how to have the following XML output with simple transformation:
<?xml version="1.0"> encording="ISO-8859-1"?>
When I used the following transformation template:
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
I get the following output header:
<?xml version="1.0" encoding="utf-8" ?>
My problem is I would like to have the following output header:
<?xml version="1.0"> encording="ISO-8859-1"?>
Thank you for your input
Nina
Message was edited by:
        nadin ram

Make sure you use .xsl mapping as the <b>last</b> mapping program in your mappings list, in the Interface Mapping.
Also, test the mapping in interface mapping test tab.
Execute the mapping and go to XML Source view of the target message.
Is it removed there?
- If yes, then probably the header is added in a later point, maybe in receiver adapter (could occurr with soap adapters, for example). Try a test scenario with a file receiver adapter.
- If not, try to revise the xsl mapping.
The key is the <i>omit-xml-declaration="yes"</i> attribute in the <xsl:output> tag.
You could alternatively, try to use <i>method="text"</i>, also in the <xsl:output> tag (if you go for text output, then you don't need to set the <i>omit-xml-declaration</i> attribute).
Regards,
Henrique.

Similar Messages

  • Help in XML Report output

    Hi Experts,
    I have created the XML report which will generate the output in EXCEL format. I have used the template(rtf) to generate the output. I am facing the critical issue the output file (excel) is giving output with headings( ex: empno,ename,job..)even if there is no record count in the query.
    But some times it gives the empty file(excel) without the heading information if the record count is zero.
    Could anyone suggest me to solve this error.
    Any solution or link will be great help for me. Waiting for your valueable reply
    Thanks in Advance,
    Ravi.

    Hi,
    Please see if this thread helps.
    XML publisher output report in excel format
    Re: XML publisher output report in excel format
    Regards,
    Hussein

  • Create a new line in the xml-header structure.

    Hi,
    Can any one tell me how to create a new line in the xml-header structure.
    I am doing a IDOC-XI-HTTP scenario.
    Actually my mapping create this file:
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    The result must look like this.
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    Thanks and Regards,
    Eren

    Hi,
    thanks for you quick answer.
    I found a xsl script.
    It works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
       <xsl:template match="*">
          <xsl:param name="depth">0</xsl:param>
          <!-- New line with indenting. -->
          <xsl:if test="$depth > 0">
             <xsl:text>    </xsl:text>
          </xsl:if>
          <xsl:text>&#xA;</xsl:text>
          <xsl:element name="{name(.)}">
             <xsl:for-each select="@*">
                <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
             </xsl:for-each>
             <xsl:apply-templates>
                <xsl:with-param name="depth" select="$depth + 1"/>
             </xsl:apply-templates>
          </xsl:element>
       </xsl:template>
    </xsl:stylesheet>
    Best regards
    Eren

  • Remove XML Header

    I am developing a Java Servlet and would like to query the database multiple times. I have used OracleXMLQuery and an array to be able to run three separate queries. My problem is occuring in my returned XML Document. Each query comes back with a XML Header such as:
    <?xml version = '1.0'?>
    <Query_1>
    <COL1>10</COL1>
    </Query_1>
    <?xml version = '1.0'?>
    <Query_2>
    <COL1>20</COL1>
    </Query_2>
    <?xml version = '1.0'?>
    <Query_3>
    <COL1>30</COL1>
    </Query_3>
    I have assigned the header separately and would just like to be able to turn off the generated header. My problem is coming when I am trying to use an applet and it does not like when it sees the XML header more than once. Any ideas or hints on how this can be done I would appreciate it.

    Hello this did solve my issue. I have same issue infact. I used this xsl mapping  as
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
    </xsl:stylesheet>
    But my output xml struıcture has broken. Should I  do some changing in my xsl mapping and how ?
    Regards,
    Ceren.

  • Encoding missing from XML header

    I have to manipulate an XML document. Using Java 1.4.1, I build a Document object based on the XML file, manipulate the Document and output it as attached below.
    The problem is that the xml header in the output does not contain the "encoding" information. I could of course manipulate the output afterwards, but it would not be a neat solution. Any ideas?
    DOMSource domSource = new DOMSource(document);
      StreamResult streamResult = new StreamResult(
           new OutputStreamWriter(System.out , java.nio.charset.Charset.forName("UTF-8"))
      TransformerFactory tf = TransformerFactory.newInstance();
      Transformer serializer = tf.newTransformer();
      serializer.transform(domSource, streamResult);

    When you serialize your output to a Writer, the parser has no way to tell what encoding the Writer uses, so it's up to you to ensure that the parser knows what encoding the Writer is using. Otherwise it will not specify any encoding, essentially assuming the Writer is using either UTF-8 or UTF-16 encodings.
    In your case you don't have a problem, because "no encoding" means that the document is encoded in UTF-8 or UTF-16; it's easy for a parser to examine the first few bytes of the file and tell which it is. Yours is encoded in UTF-8, so it's correct.

  • Problem to display a negative number in XML Publisher output in excel

    Hi All,
    I am facing problem in displaying a negative number in XML Publisher output in excel.
    My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to display it as (123).
    I have put these brackets using a formula column in the RDF, but it is the default functionality of excel that whenever there is a number in brackets then it automatically displays that as a negative value.
    Can anyone please help me how I can display this negative number within brackets and not as a negative digit. Is there any special tag or is there any formula which can be used to convert this into text and written in the Help text of RTF template.
    This is very urgent. If someone knows please reply asap.
    Regards,
    Shruti

    This is very urgent. If someone knows please reply asap.We are all volunteers here, so no ones questions are more urgent then other ones.
    If its that urgent it would have helped if you had chosen the correct forum to ask your question BI Publisher

  • How to include input user parameter values in XML report output?

    How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
    Rgds,
    manish

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • XML Publisher: where's XML Publisher output?

    Hi,
    The XML file created by report is in FND_Concurrent_Requests.outfile_name.
    Where's the XML Publisher output?
    I want copy the file generated (PDF or EXCEL) using utl_file.fcopy because bursting fail whe template is Type=>XSL-XML.
    Do your guys have any suggestion with this case? any input is very appreciated.
    thanks in advance
    Robert

    Welcome to the forums !
    Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
    HTH
    Srini

  • XML data output in a custom grid table

    Hi!
    I was wondering if it is possible to display xml data output in a custom-made grid table? Important is the ability to
    arrange the fields on the grid layout (not a fixed layout with columns and rows).
    I am using the latest JDeveloper release.
    Thanks!

    See [url http://docs.oracle.com/cd/E14072_01/server.112/e10592/functions251.htm#CIHGGHFB]XMLTABLE
    For example:
    -- INSERT INTO <your table name>
    WITH x AS
    (SELECT XMLTYPE('<?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>09-JUN-81</HIREDATE>
    <SAL>2450</SAL>
    <DEPTNO>10</DEPTNO>
    </ROW>
    <ROW>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <HIREDATE>17-NOV-81</HIREDATE>
    <SAL>5000</SAL>
    <DEPTNO>10</DEPTNO>
    </ROW>
    <ROW>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    <DEPTNO>10</DEPTNO>
    </ROW>
    </ROWSET>') myxml
    FROM DUAL)
    SELECT *
    FROM   x
    ,      XMLTABLE('/ROWSET/ROW'
             PASSING x.myxml
             COLUMNS empno, ename, job, mgr, hiredate, sal, deptno);

  • Barcode's in R12.1.1 xml report output's (English and Arabic)

    Dear Frednds,
    we are using R12.1.1 and we need to get the barcode output's (in place of numbers) in out xml report output's.
    We need it in English report and also in Arabic reports (it has seperate arabic template file)
    Please let us know the method?
    Regards,
    DB

    Desar Hussein,
    1) we have downloaded and installed the Font Code128bWinLarge.ttf on windows PC.
    2)Set the barcode font for the required field in the rtf Template.
    3) Copied the font file, Code128bWinLarge.ttf to $OA_JRE_TOP/lib/fonts
    4) Copied xdo.cfg file from our local desktop where we have BI publisher installed to
    $OA_JRE_TOP/lib Directory.
    5)added these lines locating barcode font location ($OA_JRE_TOP/lib/fonts
    /Code128bWinLarge.ttf)accordingly.
    Now For English reports we are getting the barcode
    But for Arabic reports we are getting junk characters
    so is there any other font available for Arabic barcode.Plerase suggest
    Regards,
    DB

  • Unwanted / Special Characters in XML File Output

    Hello Seniors,
    I am downloading an XML File which has some code from include's. The XML file is well formatted and the output is fine when I downloaded programs. But this include is from user exits and the code has some commented lines in it also with a blank line in between. Now the problem is that I am getting a "VT" in the XML file which is an unwanted character where there is a blank line in the include "ZXRSAU01". Other than this include, all other includes are downloaded fine.
    Here is the code from the include "ZXRSAU01":
         select single * from knvv where kunnr = l_s_icctrcst-kunnr
                                    and  vkorg = l_s_icctrcst-vkorg
                                    and  vtweg = l_s_icctrcst-vtweg
                                    and  spart = l_s_icctrcst-spart.
    Here is the output in the XML File:
         select single * from knvv where kunnr = l_s_icctrcst-kunnr
                                    and  vkorg = l_s_icctrcst-vkorg VT
                                    and  vtweg = l_s_icctrcst-vtweg
                                    and  spart = l_s_icctrcst-spart.
    Please give me a solutions for this. Each of your answers are very important and will addressed with the best deserved.
    Thanks and regards,
    Chaitanya.

    Hello Madhan,
    Firstly, Thank You for the reply. We cannot remove the space in that include because the system is not the original system. Please let me inform you that this is a 4.6C system. We have used CDATA to get the code as it is onto the XML file. I observed that, firstly, the character "#" has come into the internal table with the read report itself. In the debug I saw it to be "0B" in the binary format, but in the downloaded XML file output, it is displayed as "VT". Please let me know how to get rid of this special/unwanted character.
    Thanks and regards,
    Chaitanya.

  • Using XML based output of rq*Eval() for generating graphical views

    I've been trying the standard example used in training manuals of generating RandomRedDots.
    (Scripts that donot involve images are working fine)
    While using rqTableEval() the output format
    1. using select clause (select cast(value as longvarchar(32000)) from dual)
    2. 'png'
    is throwing ORA-29400: data cartridge error
    ORA-24333: zero iteration count
    ORA-06512: at "RQSYS.RQTABLEEVALIMPL", line 7
    ORA-06512: at line 4
    3. 'xml' type is generating output as desired with two columns name, value.
    When this xml query is used in physical table with columns - name as int, value as longvarchar(32000) as output is clob ,
    the execution(view data) results as 'no data'.
    Can i get help in how to utilize this xml output so that graphs can be made available in obiee dashboard ultimately.
    Thanks

    Hi,
    R script to be executed is as follows:
    begin
    sys.rqScriptDrop('Example6');
    sys.rqScriptCreate('Example6',
    'function(n){
         res<-1:10
    plot( 1:n, rnorm(n), pch = 21,
    bg = "red", cex = 2 )
         res
    end;
    set long 20000
    set pages 1000
    select id,image
    from table(rqTableEval(
    cursor(select 100 n from dual),
    NULL,
    'PNG',
    'Example6'));
    ERROR message:
    select id,image
    ERROR at line 1:
    ORA-29400: data cartridge error
    ORA-24333: zero iteration count
    ORA-06512: at "RQSYS.RQTABLEEVALIMPL", line 7
    ORA-06512: at line 4
    when tried with xml as output format since 'png' was not working
    select name,value
    from table(rqTableEval(
    cursor(select 100 n from dual),
    NULL,
    'XML',
    'Example6'))
    there is xml output in sqlplus
    NAME
    VALUE
    <root><R-data><vector_obj> <ROW-vector_obj><value>1</value></ROW-vector_obj><ROW
    -vector_obj><value>2</value></ROW-vector_obj><ROW-vector_obj><value>3</value></R.......so on
    How to utilize this output in physical layer of rpd, in table with select clause
    I tried select dbms_lob.substr(value,100000,1) to convert the clob of xml to varbinary but then there is no output in sqlplus.
    If the above is used as select clause for physical table it throws ORA:00904 "value" invalid identifier.
    Can I please get help in getting this output in physical layer tables and eventually to presentation layer.
    Have i missed something or some configuration needs to be done for acquiring the images
    (ps: this is occurring for images and scripts involving number type are working fine.
    I've included png and other packages in RProfile.site file)

  • Query on sorting  XML using XSLT and getting the same XML as output !

    Hi,
    Looking for one information regarding sorting XML using XSLT , with the sorted XML as output. For eg. my XML is :
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
    <levelone>
         <child ID="1" sort="5">
              <name>Paul</name>
         </child>
         <child ID="2" sort="1">
              <name>Adam</name>
         </child>
         <child ID="3" sort="2">
              <name>Will</name>
         </child>
    </levelone>
    and XSL :
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/levelone">
         <xsl:copy>
         <xsl:apply-templates>
              <xsl:sort select="@sort"/>
         </xsl:apply-templates>
              </xsl:copy>
         </xsl:template>
         <xsl:template match="child">
              <xsl:copy-of select="."/>
         </xsl:template>
    </xsl:stylesheet>
    This does the sort based on Name. But I want to get the same xml as output with the name sorted. Eg.
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
    <levelone>
         <child ID="2" sort="1">
              <name>Adam</name>
         </child>
         <child ID="1" sort="5">
              <name>Paul</name>
         </child>
         <child ID="3" sort="2">
              <name>Will</name>
         </child>
    </levelone>
    Any pointers will be highly appreciated.
    - Thanks

    Don't you want <xsl:sort select="name"/> rather than <xsl:sort select="@sort"/>?

  • Character is converting as Number in XML EXCEL Output

    Hi Every One
    I created the RDF Report and i registered as concurrent program Output Type is "XML" when i ran XML Report in PDF output Part number is coming as it is in Data base for Example "0998893745"
    But When i ran Same Report with Output of EXCEL Part number is Automatically changing to Number it's Truncating the First "ZERO" Means that it giving "998893745" Instead of "0998893745"
    Kindly Help Me to Get the Part number as it is there in Data Base "09988937450" In XML EXCEL output
    Regards
    Sandeep.Y

    concatenate with double space to report columns
    Example
    ' '||msi.segment1 like that

  • How to get XML format output from Hyperion Financial Reporting

    Dears,
    We are using Hyperion Financial Reporting to replace FSG in fusion. I found that Hyperion FR report can be exported to html/excel/pdf format. However, I would like the report to export to xml format.It means I only need the xml data source.
    Anyone who knows how to get the xml format output from Hyperion FR, is there any avaiable API?

    I think if you export the report, you will be able to open the .des file in Notepad/Wordpad and see xml content.

Maybe you are looking for