2 Replies Latest reply: Apr 4, 2013 4:37 AM by SriniVelumuri RSS

    The XML page cannot be displayed

    user13100220
      Hi,

      I am trying to run my programs its complited successful nut it throughing output as below.please i am not figured out wat the problem .......it is great appriciation to resolve...


      <DESCRIPTION>Rohit Kadari 07/18-07/31/11 RK</DESCRIPTION>
      <PAYMENT_METHOD_CODE>CHECK</PAYMENT_METHOD_CODE>
      <INVOICE_NUM>07/18-07/31/11 RK</INVOICE_NUM>
      <INVOICE_AMOUNT>4320</INVOICE_AMOUNT>
      <AMOUNT>4320</AMOUNT>
      <OTHER_DED>0</OTHER_DED>
      <DISCOUNT>0</DISCOUNT>
      <TSD_AMOUNT>0</TSD_AMOUNT>
      <
      The XML page cannot be displayed

      Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


      --------------------------------------------------------------------------------

      An invalid character was found in text content. Error processing resource 'http://orauatte64.tsindia.in:8010/OA_CGI/FNDWRR....

      <C_ZIP>48034
      PAY_AMOUNT>4320</PAY_AMOUNT>
      <C_DOC_SEQUENCE_VALUE />
      <C_CHECK_NUMBER>43414</C_CHECK_NUMBER>
      <C_CHECK_DATE>23-SEP-11</C_CHECK_DATE>
      <C_AMOUNT>4320</C_AMOUNT>
      <C_VENDOR_NAME>Tecreos</C_VENDOR_NAME>
      <C_VENDOR_SITE_CODE>TX</C_VENDOR_SITE_CODE>
        • 1. Re: The XML page cannot be displayed
          vinod2303
          Hi,

          I guess the error is because of the output contains some character which is not supported by XML. Please go through below link, Hope it helps.

          http://social.msdn.microsoft.com/forums/en-US/xmlandnetfx/thread/c0dca973-ebb9-4259-a8ef-310195c4c376

          Thanks,
          Vinod
          • 2. Re: The XML page cannot be displayed
            SriniVelumuri
            If it is a seeded report, create a SR with Oracle.

            If it is a custom report, then it is encoding issue.
            Meaning, at the top the xml file you should see something like this.
            <?xml version="1.0" encoding="UTF-8"?>

            to get this, you need to add following code in your custom code.

            Sample Code:
            l_encoding VARCHAR2(30);
            l_xml_header VARCHAR2(100);

            l_encoding := fnd_profile.value('ICX_CLIENT_IANA_ENCODING');
            l_xml_header := '<?xml version="1.0" encoding="'|| l_encoding ||'"?>';
            DBMS_LOB.writeappend (x_xml_doc, length(l_xml_header), l_xml_header);


            Note:
            Somehow you need to remove the code which generates following
            <?xml version="1.0"?>
            Regards,
            Srini

            Edited by: Srini Velumuri on Apr 4, 2013 2:35 AM