TAGS WHICH CANNOT BE DISPLAYED IN XML ARE TO BE INCLUDED IN TEMPLATE

Hi,
Can I have some inputs to solve an issue that is haunting me ?
I need to generate an XML with predefined tags and cant add any extra tags.
Apart from that I also need to generate a pdf file using a rtf template. The issue I am facing is , there are various fields in the rtf template which are not there in XML.
How do I display fields in the template where as I cant display or rather include them in the XML ?
Or can we generate two XMLs and pass one of them for the generation of the pdf and the other be kept as it is ?
Thanks
Rajiv Sengupta

Thank you very much for the suggestions.
But the issue I am facing is, there are 140 Codes and Descriptions that can be picked up dynamically and display in a Field. Also the field should be able to display more than one codes and the Description of those Codes(if selected) I cannot hard code 140 Codes and their description in a field in rtf. That will take too much time in the generation of pdf from rtf . Also it will be difficult to clear the GSCC Errors when the same rtf will be used for the R12. So hardcoding the 140 Codes is doesnt seem to be a great option.
The Code can be picked from the XML , which is in legislative format. But the XML will not contain the descriptions of the Code. I am archiving the Description of the Code, but cannot include it in XML.
But I need to display the description of the particular code in the PDF. Please suggest.
Thanks
Rajiv Sengupta
Message was edited by: Rajiv Sengupta
user633142

Similar Messages

  • How can I rid my iPhone of a  huge library of photos which cannot be erased? they are listed under PhotoLibrary.

    How can I rid my iPhone of a  huge library of photos which cannot be erased? they are listed under PhotoLibrary.

    If you turned on Photo Stream and don't want these pictures on your phone, just turn it off.  As mention by wjosten, if you want to remove photos from Photo Library, or any of the albums under Photo Library, you have to deselect them on the Photos tab of your sync settings and sync your phone to remove them.  Also, although the photos int Photo Library may appear to be duplicates of the photos in the albums, they aren't.  The actual photos are all in Photo Library; the albums only contain links to the photos.  Finally, you can only delete albums created on your phone, not ones synced from your computer.  And they can only be deleted after they are empty.

  • NEW GL: Customer/Vendor Line items cannot be displayed per business area

    Hello ECC 6.0 Masters!
    We have implemented Standard Document Splitting by Business area(BUSA). See below scenario..
    ENTRY VIEW
    PK     Account          Segment          Amount
    01     Customer               100
    50     Expense          BUSA1          60-
    50     Expense          BUSA2          40-
    GL VIEW
    PK     Account               Segment          Amount
    01     CustomerReconAcct     BUSA1          60
    01     CustomerReconAcct     BUSA1          40
    50     Expense               BUSA1          60-
    50     Expense               BUSA2          40-
    However after implementation we discovered that because the Customer/Vendor BUSA is blank in entry view, we now cannot derive reports that are normally based on the BUSA of Customer/Vendor line item, which we used to be able to do prior to implementing NEW GL.
    Some of them are below:
    1. Debtor Ageing Analysis (Standard)
    2. Customer/Vendor line items per BUSA (Standard)
    3. Several other Sublegder based custom reports we have that neeed to be categorized by BUSA
    My question now is..Is there a way to derive these Business Area information under Vendor and Customer account to produce our reports? Especially for the Ageing which is key to the business process of my client.
    I hope somebody there has experienced this before. thanks!
    Andrew

    Hi
    You will not get ageing reports based on BA after new gl migration. You need to bring the info from the new gl tables. one of the easiest ways is to get the info from the table FAGL_SPLINFO by passign BSEG-BELNR. For defining ageing reports in new gl use t code FKI3 and FDI3 for Vendors and Customers respectively.
    Regards
    Sanil Bhandari

  • How to display an XML file as it is in browser that XI sent to my J2EE appl

    Hi all!
    I have a scenario like File->XI->J2EE appl.
    The file is getting picked up from my machine by XI.
    Now XI should send that XML file to my J2EE appl.
    My servlet receives that XML and displays as it is in browser. But am getting some error like:
    XML page cannot be displayed.
    XML document must have a top level element. Error processing resource 'http://localhost:7001/Invoke/DisplayRes'.
    I deployed my .ear file on BEA Weblogic application server9.0
    I found no error when i tested in SXI_MONI and RWB->Message monitor as well.
    This is my servlet code:
    public class DisplayRes extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
    String inputLine;
    StringBuffer sBuf = new StringBuffer();
    PrintWriter out = response.getWriter();
    response.setContentType("text/xml");
    while ((inputLine = brin.readLine()) != null)
    sBuf.append(inputLine);
    //out.setContentType("text/xml");
    //out.println(sBuf.toString());
    out.write(sBuf.toString());
    brin.close();
    out.flush();
    what went  wrong? Help me
    Thanks

    Hi
    Can anyone tell me how XI sends messages to applications like J2EE. In REceiver comm channel, I think we specify about the target system like J2EE appl.
    Aadapter Type: HTTP
                   Receiver
    Transport Protocol:  HTTP1.0
    Message Protocol:    XI payload in HTTP body
    Adapter Engine:      Integration Server
    Addressing Type:     URL address
    Target host:         localhost
    Service Number:      7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
    Path     :  /Invoke/DisplayRes/
    Authentication Type:Use Logon Data for SAP System
    Content Type: text/xml
    Username:   xiappluser
    password:   xx
    XML code:   UTF-8
    I suppose XI sends msgs to http://localhost:7001/Invoke/DisplayRes/........
    in this example if am correct?
    Then I have given all tyhe necessary setting but my servlet is not able to display XML msg in browser?
    This is my servlet code:
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         PrintWriter out = response.getWriter();
         BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
         String inputLine;
         StringBuffer sBuf = new StringBuffer();
            response.setContentType("text/xml");
         while ((inputLine = brin.readLine()) != null)
             sBuf.append(inputLine);
             out.println("hi");            
                out.println(sBuf.toString());
             brin.close();
             out.flush();
    What went wrong?
    Help me, all helpful answers are highly rewarded.
    Thanks

  • There is a view named &gantt chart in this project which cannot be overwritten

    Hello,
    I'm using Project Server 2007 SP2. While opening a plan, we are getting the following error
    "There is a view named &gantt chart in this project which cannot be overwritten"
    However, we are not getting the same error for other plan. Is there any changes to be done in the enterprise Global? How to rectify the error? Kindly help.
    Thanks!

    Sandhya987 --
    In addition to Guillaume's excellent answer, you should know that this problem was not caused by the project manager.  The problem was caused solely by the actions of the Project Server administrator.  The Enterprise Global file is reserved for
    ONLY enterprise views, tables, filters, and groups.  For example, there is a default enterprise view named Enterprise Gantt Chart and there is a default enterprise table named Enterprise Entry.  The Project Server administrator should NEVER add local
    views to the Enterprise Global, such as the Gantt Chart, Resource Sheet, etc.
    So, how did the Gantt Chart view end up in the Enterprise Global?  I doubt the Project Server administrator did this intentionally.  Instead, my guess is that he/she applied the regular Gantt Chart view while he/she had the Enterprise Global file
    open for editing.  If the Project Server administrator applies any local view (such as the Gantt Chart view) while he/she has the Enterprise Global file open for editing, Microsoft Project COPIES that view and its default table into the Enterprise Global
    file.  So, if he/she applies the Gantt Chart view while he/she has the Enterprise Global file open, Microsoft Project copies BOTH the Gantt Chart view AND the Entry table into the Enterprise Global file, thus polluting the Enterprise Global file with
    a local view and table.
    To clean up the pollution, keep in mind that your Project Server administrator will need to delete all local view AND all local tables as well.  As the article indicates, as cited by Guillaume, the problem you are facing is a common one, so welcome
    to the club!  :)
    Hope this extra helps.
    Dale A. Howard [MVP]

  • Replace the XML Tags which are in binary format in 4.6C Version

    Hi Experts,
    I have an issue. I am working on 4.6 c version of sap. I have a requirement to send  ftp of an xml file. I created an internal table which has components of table type too ( For Line items ). After appending a record of sales order into the table I am using   SDIXML_DATA_TO_DOM ( To attach the to the document ) and SDIXML_DOM_TO_XML ( To convert the document contents into XML ( Binary Format ).
           CLASS cl_ixml DEFINITION LOAD.
          g_ixml = cl_ixml=>create( ).
          CHECK NOT g_ixml IS INITIAL.
          m_document = g_ixml->create_document( ).
          CHECK NOT m_document IS INITIAL.
          CALL FUNCTION 'SDIXML_DATA_TO_DOM'
            EXPORTING
              NAME               = 'xmldata'   " data in character format
              DATAOBJECT         = xmldata[]
           IMPORTING
             DATA_AS_DOM        = l_dom
           CHANGING
             DOCUMENT           = m_document
           EXCEPTIONS
             ILLEGAL_NAME       = 1
             OTHERS             = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CHECK NOT l_dom IS INITIAL.
          w_rc = m_document->append_child( new_child = l_dom ).
          IF w_rc IS INITIAL.
          WRITE 'OK'.
          ELSE.
          WRITE: 'ERR ='.
          ENDIF.
          CALL FUNCTION 'SDIXML_DOM_TO_XML'
            EXPORTING
              DOCUMENT            = m_document
            PRETTY_PRINT        = ' '
            IMPORTING
              XML_AS_STRING       = w_string
              SIZE                = w_size
            TABLES
              XML_AS_TABLE        = it_xml   " Final XML data ( with xml tags ( xml tags are the field names of internal table ) ) in bin
            EXCEPTIONS
              NO_DOCUMENT         = 1
              OTHERS              = 2
          IF SY-SUBRC = 0.
          WRITE 'OK'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
          WRITE: 'ERR =',
          sy-subrc.
          ENDIF.
    So, it_xml has the binary format of XML data.
    Now the requirement is that I need to get rid of some XML tags in the final internal table XML data. Because by default, at the start of the the table row the <item> and </item> tags are inserted. This is automatically done in the Function module
    SDIXML_DOM_TO_XML.
    I want to find out the binary string of <item> and </item> and replace them by null binary string. I know how to replace the character strings but not for binary strings in 4.6 C.
    It is little bit urget. I would appreciate the quicker answer.

    Hi,
    check this program , I think this will help you
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF xml_line,
    data(256) TYPE x,
    END OF xml_line.
    data : itab like catsdb occurs 100 with header line.
    data : file_location type STRING.
    data : file_name like sy-datum.
    data : file_create type STRING.
    file_name = sy-datum .
    file_location = 'C:\xml\'.
    concatenate file_location file_name into file_create.
    concatenate file_create '.XML' into file_create.
    DATA: l_xml_table TYPE TABLE OF xml_line,
    l_xml_size TYPE i,
    l_rc TYPE i.
    select * from catsdb into table itab.
    append itab .
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    PE_BIN_FILESIZE = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    I_TAB_CONVERTED_DATA = l_xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
    bin_filesize = l_xml_size
    filename = file_create
    filetype = 'BIN'
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 24.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
    Thanks.

  • "XML page cannot be displayed" error

    Using XML output on a table with more than a few rows falls over with a "XML page cannot be displayed" error. Sometimes only the error is displayed, sometimes some rows are displayed with this error at the end of the page (eg the DEMO_STATES table)
    Can anyone advise if there is some sort of limiter at work here?
    Thanks,
    Barry

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • XML Page cannot be displayed error on interactive reports

    Hi, I am having trouble with a user downloading an interactive report as a CSV output. When a user tries to download the interactive report (as it is displayed when the web page loads, no alterations), they are getting this error:
    The XML Page cannot be displayed.
    Cannot view XML input using XSL style sheet. Please correct the error and then click the refresh button, or try again later.
    A name was started with an invalid character. Error processing resource 'http.............'.
    This is only happening with a small group of users which doesn't include me, so it has been very hard to troubleshoot. I can download the report and open in Excel without any problems.
    I am using Apex version 3.2 and IE 8. The user did not have multiple windows or tabs open logged into ApEx at the same time.
    Has anyone ever had this problem before? I could not find a thread with the same issue.
    Thanks!

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • XML Page cannot be displayed -- whitespace is not allowed at this location

    To create an online training program I am using Captivate 3
    to create the videos then move the published flash file into
    Contribute 3 to create the XML and HTM files. Using the same
    publishing steps most videos play; however, some videos do not. I
    noticed in the FTP that videos which work will display text when I
    open the XML file and those that do not I receive the error message
    below:
    "XML page cannot be displayed"
    "Cannot view XML imput using XSL style sheet."
    "Whitespace is not allowed at this location. Error processing
    resource"
    When I click on the flash files in the FTP the videos that
    play and ones that do not play both will allow me to play the
    video. I need for HealthStream (the web site my videos are stored)
    to connect to the FTP but receive the message "error parsing the
    XML document and content cannot be launched" due to the error
    reading the XML document (located above).
    Please help resolve the XML issue.

    Downloaded Captivate 3 demo to check it out. Nice program,
    bit expensive though...
    From what I saw so far the xml-export and inport feature is
    used to create swf-files in different languages. Correct?
    I don't see Contribute creating any xml or html when
    importing the swf created by Captivate, so what do you mean exactly
    by that?
    Is it a feature (that I don't know yet) that you can load xml
    files dynamically into the swf's for different languages? From the
    help in Captivate I understand that you open your project, then
    import the translated xml, publish and then you have a translated
    swf. So I don't see why there is xml on your server. I only see the
    swf's that function like they should. Inlighten me please and we
    will search for more answers...

  • Facing problem while removing XML tags which has been generated from SAP

    Hi All,
    I am facing problem in MII, while i trying to remove 1st 2 XML tags of XML as generated from SAP.
    Here is XML which has been generated from SAP
    u201C<?xml version="1.0"; encoding="UTF-8"?>
    <ZCIFSCHEDULE>
    <SCHEDULE>
    <MESSAGE_TYPE/>
    <SITE>A300</SITE>
    <SHOP_ORDER>2012020856</SHOP_ORDER>
    <QTY_TO_BUILD>6.000<;/QTY_TO_BUILD>
    <DATE_TIME>08-FEB-2012 20:57:21 +05:30</DATE_TIME>
    <OPERATION>PRS</OPERATION>
    <ITEM>IN-CT00228</ITEM>
    <DPICS_CODE>1229</DPICS_CODE>
    <REVISION/>
    <CYC_TIME_CURING/>
    <FLAG_AGING/>
    <AGING_MIN/>
    <PRODUCTION_VERSION/>
    <CYC_TIME_OC/>
    <CYC_TIME/>
    </SCHEDULE>
    </ZCIFSCHEDULE>u201D
    From above i want to remove 1st 2 tags and last one tag i.e.  u201C<?xml version="1.0"; encoding="UTF-8"?> , <ZCIFSCHEDULE> and last tag ZCIFSCHEDULE>u201D
    Its urgent!
    Did anyone done regarding this issues. Thanks in advance.
    Kind Regards,
    Praveen Reddy

    Hi Praveen,
    Are you trying to make the xml into a string?  I think if you remove the first tag, it will either automagically reappear or it will throw and error as being poorly formed xml. 
    In general, you can remove the nodes by the use of indexes.  Since you are operating at the root level, I am not sure how well it will work, but if your xml is in a property, you can reference the specific nodes by something like this:  myXML.Output{/*[1]} which if you put it in a tracer will display the contents of the first node (or blank if there are child nodes).  The node index can be dynamically set, but start with the simple hard coded one.  I would also start at the lowest child level to verify that it is working properly (a tracer will display the contents specified by the index).  You can also google xml indices (or indexes) and it will point to some other useful xml operators.
    I suggest that you play around with it and also work with the Link Types (hint: removeXML).
    Regards,
    Mike

  • Error message in .docx : 'Open XML file cannot be opened because there are problems with the contents. Details Unspecific error Location: 2'

    I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
    error, Location: 2'
    When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
    were illegible, but no other weirdness was observed.
    I have microsoft 2008 installed on my Mac OS X version 10.6.8.
    I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
    I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docx

    Hi,
    This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
    Please use the "Fix it" tool in the following KB article to resolve the problem. See:
    http://support.microsoft.com/kb/2528942
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

  • XML Page cannot be displayed An invlaid character

    While testing a report, I have noticed two issues and I believe this is the correct forum for the subject.
    A report is completing successfully with a completion status of Normal in the concurrent manager. The report has data. However upon inspection of the XML of the request (Diagnostics -- View XML) the following error message appears
    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://sinudy07.devtst.go2uti.com:4110/OA_CGI/FN...
    <ITEM_DESCRIPTION>Office supplies
    Upon inspection of the data, it appears that the offending character is an ACSII 150.
    Can you provide a solution by which alphanumeric data is properly handled in XML? Is this an encoding issue?
    Why does XML Publisher exit successfully when it has an error? When this error is detected, I am assuming that the report is incomplete, but to the end user it looks complete.
    Many thanks for your suggestions and advice.
    Tom

    Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
    ''If it displays in Firefox:''
    It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
    ''If it displays in IE or embedded in another Microsoft application:''
    In a web search I found these suggestions:
    (1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
    (2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
    Any luck?

  • XML page cannot be displayed - Servlet error

    Hi,
    I am trying to extract XML data from a source using a servlet.But i am getting this error when i run my servlet in IE :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The download of the specified resource has failed. Error processing resource 'http://serverA.h.c.com:9300/p2pd/cog...
    </dataset>
    Can someone please guide me why i am getting this error? Here is the servlet code that i am using :
    package com.cognos.demo;
    import javax.servlet.http.*;
    import java.io.*;
    import com.cognos.developer.schemas.bibus._3.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class XMLGenerator extends  HttpServlet
         //Logging information goes here
          public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              response.setContentType ("text/html;charset=utf-8");
              response.setCharacterEncoding("utf-8");
              String xml = null;
              RunReport reportRunner= new RunReport();
              CRNConnect connect=new CRNConnect();
              String url="http://serverA.h.c.com:9300/p2pd/servlet/dispatch";
              String nameSpace="ADS_NS";
              String uid="cognos";
              String pwd="abcd45";
              Logon sessionLogon = null;
              int REP_XML=1;
              try {
              connect.connectToCognosServer(url);
              catch (Exception e)
                   e.printStackTrace();
                   //System.out.println("Not able to connect to Cognos Server");
                   response.getWriter().print("Cannot connect to Cognos server");
              sessionLogon=new Logon();
              String logonOutputSource = "";
              String reportOutput=null;
              //Till the user gets logged in or he exits
              while (!Logon.loggedIn(connect)) {
                   try
                        logonOutputSource = sessionLogon.quickLogon(connect,uid,pwd);
                        //System.out.println("Connected to the Cognos server..");
                        System.out.println(logonOutputSource);
                   catch(Exception ex)
                        System.out.println("Error : Unknown host ");
                   if (!Logon.loggedIn(connect)) {
                        response.getWriter().print("Unable to logon");
                        System.exit(0);
              //Report Processing here
              //String reportName=args[0].trim();
              //locate the selected report
              BaseClassWrapper selectedReport=null;
              selectedReport=reportRunner.findReport(connect);
              reportOutput=reportRunner.runReport(connect,selectedReport,REP_XML,false);
              xml=reportOutput;
              //System.out.println("Main:" + reportOutput);
              System.exit(0);
              try
                   response.getWriter().print(xml);
                   response.getWriter().flush();
              catch (IOException e)
                   response.getWriter().print("Unable to publish xml");
                   System.out.println(e);
    }I am using some classes to extract xml data from a data source and retrieve that as a string and then i am displaying it using response object.
    Any help in this regard would be highly appreciated.
    Thanks,
    Shishir.
    Edited by: Invinc4u on Dec 15, 2008 6:56 AM

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • NewsBrowser Layout - Resource cannot be displayed with the XML Resource

    I've assigned the standard SAP NewsBrowser layout to the folder I created. All the subsequent folders display correctly except for the files. The following error appears, "Resource cannot be displayed with the XML Resource Render." However, if I re-assign another standard SAP layout to the folder or to the iView the files appear. The benefit of this layout is we wouldn't have to modify any commands.
    Any thoughts or suggestions are appreciated.
    --Keith

    Hi
    The NewsExplorer and NewsBrowser layout sets are for all documents created with XML forms.
    did u create documents with xml forms ?
    Keith wrote :
    The benefit of this layout is we wouldn't have to modify any commands
    what functionality u r trying to achieve?
    Regards,
    vijay.

  • XML page cannot be displayed?

    Hi,
    I'm getting this error message when trying to view the XML for a data template:
    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.
    A name was started with an invalid character. Error processing resource
    <system name>
    This is my Data Template:
    <dataTemplate >
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT r.short_desc arec_type,
                 NVL (t.short_desc, 'No Group') aprospect_group,
                 p.prospect_id,
                 t.hierarchy_order asort_order,
                 DECODE (r.record_type_priority_value,
                         0, 99,
                         r.record_type_priority_value
                        ) asort_rec
            FROM prospect p,
                 prospect_entity pe,
                 entity e,
                 tms_prospect_group t,
                 tms_record_type r
           WHERE p.prospect_id = pe.prospect_id
             AND pe.id_number = e.id_number
             AND e.record_type_code = r.record_type_code
             AND p.prospect_group_code = t.prospect_group_code(+)
             AND p.active_ind = 'Y']]>
              </sqlStatement>
    </dataQuery>
    </dataTemplate>
    Sorry if this is answered somewhere else. Couldn't find anything on it.
    Thanks!

    Hi..
    Your data template should look something like below...
    <dataTemplate name="dataTemplateName" description="Template description">
         <dataQuery>
              <sqlStatement name="Q_1">
                   <![CDATA[SELECT r.short_desc arec_type,
    NVL (t.short_desc, 'No Group') aprospect_group,
    p.prospect_id,
    t.hierarchy_order asort_order,
    DECODE (r.record_type_priority_value,
    0, 99,
    r.record_type_priority_value
    ) asort_rec
    FROM prospect p,
    prospect_entity pe,
    entity e,
    tms_prospect_group t,
    tms_record_type r
    WHERE p.prospect_id = pe.prospect_id
    AND pe.id_number = e.id_number
    AND e.record_type_code = r.record_type_code
    AND p.prospect_group_code = t.prospect_group_code(+)
    AND p.active_ind = 'Y'
    ]]>
              </sqlStatement>
    </dataQuery>
         <dataStructure>
              <group name="G_1" source="Q_1">
                   <element name="short_desc arec_type" value="short_desc arec_type"/>
                   <element name="aprospect_group" value="aprospect_group"/>
                   <element name="prospect_id" value="prospect_id"/>
                   <element name="asort_order" value="asort_order"/>
                   <element name="asort_rec" value="asort_rec"/>
              </group>
         </dataStructure>
    </dataTemplate>

Maybe you are looking for

  • Can't add songs to iTunes after upgrade to OSX Lion

    Hi, I have a problem since I updated my system to OSX Lion. While updating I migrated my iTunes library to my new system. I have a custom location of my music library on HD/DATA/MUZIEK. My library in iTunes is playable but I cannot add any songs to i

  • Error in 2LIS_02_SCL(pur.Data(DocumentScheduleLine Level)

    hi I am loading data for MM for 2LIS_02_SCL(pur.Data(DocumentScheduleLine Level) in status the error message is "Entry MMC1 does not exist in T001W (check entry)". When in Long text i found the Matter: "Input value must be defined in table T001W  the

  • AWE32: installing a CD-ROM drive

    I have Packard Bell PB-60 (486). I have SB AWE 32 CT3990 copyright 995. I removed the 5.25 floppy dri've. In its place, I installed CD-ROM dri've.-- Matsu**bleep**a-Kotobuki CR-563-B OCT 993-- receive power from old 5.25 floppy dri've plug-- I/O via

  • Microsoft Exchange Server 2013 - Unable to recieve emails from outside

    I'm having problems setting up brand new installation of EXCH 2013 on the VM server. Infrastructure - main server Windows Server 2012 Standard, a VM server. Domain vwc.local, VM server introduced to domain. EXCH 2013 installed on VM server. I'm able

  • Deleting order type dependent parameters

    While deleting ordr type dependent parameters, the system is giving the foll error: Deletion not permitted. An order still exist for plant XYZ and order type XYZ