XML Loaded Text Inconsistently Displays Apostrophe

i have a number of dynamic text fields, all of which have
text loaded from their respective xml files.
one of the menu items includes an apostrophe. that apostrophe
shows up in one area of the site but not in another where it is
replaced by ' .
these two sections are identical. both dynamic text boxes
with xml loaded text. one works one doesn't.
i've double checked everything. everything is embedded, i
have no idea what the problem is.
any ideas?
if you want to see what i'm talking about go
here and select WORK. JAMIES
ORGANIC TREATS has no apostrophe because i took it out - it gets
converted to ' in this location. but if you select JAMIES
ORGANIC TREATS the name pops up in the new section correctly WITH
the apostrophe.
they are separate text fields with separate xml files but all
of them are treated the same.
Flash CS3 Flash Player 8 AS2
Mac 10.5

*SOLVED*
i went back in and enabled html on the text box and changed
all of the .text to .htmlTxt and it worked. also added the cdata
tags.
but any idea why the apostrophe works correctly in the other
instance?

Similar Messages

  • XML loading failed

    DB: Oracle Database 10g Release 10.2.0.4.0 - Production
    ApEx: 3.1.2.00.02
    IAS: 10.1.2.3
    OS server: Windows 2003 SP1
    OS client: Windows XP
    IE: 6
    Here's the problem:
    When I run an ApEx application (e.g. the shipped sample application) items that use XML are not displayed correctly.
    This results in two issues:
    1)
    Flash charts are not displayed. Instead of displaying the chart the text XML loading failed is displayed.
    2)
    Interactive reports generate a javascript error when I click on a column heading. The ajax-loader image is displayed, but nothing happens. Javascripterror at line 2, character 15193, Unterminated string constant.
    The weird thing is that sometimes the issues are solved after a few browser refreshes (F5). Then everything works fine until the database is bounced again.
    I tried to follow the link that should provide the XML for the chart
    ([http://nldev003/pls/apex/apex_util.flash?p=100:1:4337825341367752:FLOW_FLASH_CHART_R300851420764386117_en-us]).
    This results in an empty page, source:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    <BODY></BODY></HTML>
    I'm not using single sign on or reverse proxy.
    All software is installed as described in the install guides.
    Any ideas?
    Thanks in advance.

    Iloon,
    ApEx generates the correct host: http://nldev003/pls/apex/...
    I use port 80, so no port is displayed.
    I also tried to append the domain to the servername, but this changed noting.
    Again the following HTML code is returned by the apex_util.flash procedure.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    <BODY></BODY></HTML>
    So I do get response from the server, but it's incorrect.
    There should be XML content, no HTML.
    Kind regards

  • Loading text by XML

    Hi:
    I am very new to XML so I would like to know if someone could
    help me, this should be very simple. I have a textbox in my flash
    movie that will display the main text (only a short paragraph); my
    client wants that text to be loaded by XML but I do not know how to
    do that because these are my very first steps with XML.
    Any help, sample file or recommendation will be appreciated.
    Greetings from Argentina.

    var my_xml:XML = new XML()
    my_xml.ignoreWhite = true
    my_xml.load("yourtext.xml")
    my_xml.onLoad = function(success) {
    if(success) {
    parseXML(this)
    function parseXML(xml) {
    my_xml = xml
    textvalue =
    my_xml.firstChild.childNodes[0].firstChild.nodeValue;
    my_txt.text = textvalue
    trace(textvalue);
    =============
    this is xml
    <Dataset>
    <text id="1">this is your text</text>
    </Dataset>

  • After aborted rebuild in Mail: I can see and select the message in the center pane and when I click on it to display, I get "Loading" text, but nothing comes up

    I have searched quite a bit to find a resolution to this problem, with no success. Any help would be appreciated.
    I decided to rebuild my inboxes by following this advice: http://support.apple.com/kb/PH11704. The rebuild took several hours and at 96% (4 minutes remaining apparently), the indexing froze (that is, after 8 hours, the message was still telling me "4 minutes left"). I forced quit mail, restored the previous Envelope files from the trash, and everything seemed fine.
    However, since this failed attempt, I can see and select the message in the center pane and when I click on it to display, I get "Loading" text, but nothing comes up. All messages in my various inboxes have the reloading problem, EXCEPT messages that I downloaded since the aborted rebuild (in other words, there are about 40 messages that I downloaded since I tried the rebuild and I have no problem with these). The other 70,000 messages however wont load, even though I can see them in the centre pane and spotlight has no problem finding them and showing me their contents (when I hover the mouse over the message). When I click on the message in spotlight, mail opens and the loading problem re-occurs.
    Since then, based on various suggestions I found for similar issues, I have used Disk Utility to verify and repair permissions and the drive. I used Onix to rebuild the Mail index (that only took about a minute - I am not sure how to interpret this when compared to the hours the rebuild took with Mail). No joy, I still have the same problem. I even restored one of my inboxes via Time Machine and the same issue with loading continues.
    I am using ML 10.8.2. I have a combination of IMAP accounts (work) and POP accounts (personal). The issue of loading occurs irrespective of the account.
    I am baffled and am now considering migrating to either Thunderbird or Postbox 3 to try and solve my problem. I prefer to stay with Mail. I should note also that I am using MailTags with Mail (http://www.indev.ca/MailTags.html), although I have not used any of the features. I upgraded to ML from SL about 2 weeks ago. It was very smooth and there appear to be no issues (not sure how helpful this is and probably not at all related to this issue).
    Any suggestions much appreciated!

    Maybe these will help:
    https://discussions.apple.com/message/17677533#17677533
    https://discussions.apple.com/message/18324129#18324129
    https://discussions.apple.com/message/18203126#18203126

  • Problem displaying dynamically loaded text in Flash CS3

    I created a Flash CS3 application that does not display
    dynamically loaded text (from internal AS3 scripts) on 3/6 of my
    client's computers. All computers run IE 6 and Flash Player 9. I
    cannot replicate the problem on any computer in my department. The
    problem seems to be related to Flash Player 9 or a browser
    setting/IT restriction. Has anyone encountered this? If so, have
    you found a solution?
    If I cannot find a solution, then I will need to almost
    completely redo the application.
    One slightly insane idea I have considered is to, if
    possible, convert dynamically loaded text to an image real-time. Is
    that possible?
    Btw, I have created a font in my library. Should I try
    manually embedding the font from the Properties menu and selecting
    all characters?
    Thanks in advance.

    yes, even though you may be using a font from the library,
    you still have to specify that each text field that uses that font
    embeds the font, and you'll need to select all characters(well not
    all, unless you require all the different scripts of the world -
    upper-case, lower-case, numerals and punctuation usual suffices).
    I bet if you checked, the computers where the font did not
    appear did not have the font on their system.
    Good luck
    Craig

  • Flash CC Air iOS: Problems with loading text from an external xml located on a server.

    So I have this code allowing me to load text from an xml located on a server. Everything works fine on the Air for Android. The app even works in the ios emulator, but once I export my app to my ios device with ios 7, I don't see any text. The app is developed with Air sdk 3.9. What could be the reason? Do I need any special permissions like on Android? Does ios even allow to load xml from an external server?
    Any clues?

    It was my bad. I linked to a php file to avoid any connection lags, which was absolutely fine on the android, but didn't seem to work on the ios 7. So all I did is change the php extension to xml and it worked without any problems.

  • Smartview: XML Load Error: An invalid character was found in text content.

    Hi,
    Im using hyperion 11.1.2.1 with SmartView installed with Office 2007. A lot of forms are working fine on it but we have entered data recently on a number of them and we are unable to open them in SmartView either through the icon and menu options in workspace or through the smartview panel in excel 2007. The error we are getting is "XML Load Error: An invalid character was found in text content."
    Cheers,
    Imran

    Have a look on Oracle Support - "SmartView XML Load Error: "An Invalid Character was Found in Text Content" [ID 968808.1]"
    It may be the same issue as you are experiencing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • "XML Load error: An invalid character was found in text content" Drill Thru

    Hi,
    I am using Smart View, 2007 ms office.
    We are using EIS to have Drill Through reports.
    When I select the particular intersection and click on Hyperion --> Adhoc Analysis--> Drill Through Reports,
    Drill Through selection window is opening but when click on Launch/Execute.
    It throwing below Error
    "XML Load error: An invalid character was found in text content"
    This error is showing only some intersections...some other intersections are working fine.
    The same intersection if retrieve from ESSBASE --> Addins--> linked objects, Drill thru reports are showing fine.
    From Excel Addins everythg working fine.
    I tried in 2003 MS office from my colleague system. the same error.
    "XML Load error: An invalid character was found in text content"
    Please someone help me....!
    Regards,
    Rajendra Prasad Gella.
    Edited by: Rajendra Prasad Gella on Jun 10, 2010 4:26 AM

    This type of Issue does not happen using Excel Add-in but Smart View. We encountered it as well. I have a feeling the root cause is the ESSLANG which used to be selected during installation. If the Essbase has for instance "English Latin1" or "English US Ascii Binary" and the client does not have it, then this would occur.
    We had old SR on it because we were testin the APS 7.1.6. SR 2-603906: Excel Essbase Add-in splitting special characters such as the " ü " in. Whe we reinstalled and selected same ESSLANG as Essbase server the isue stopped.
    We did not have to chnage our code to scrub out ant special characters. !
    Jullin

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

  • XML loader in custom Scrollpane

    I'm working on my first website, and have mostly been using tutorials on Lynda.com which has been hugely helpful.  I need several different scrollpanes in the site, one of which is a typical thumbnail gallery that uses XML to load the thumbnail images and displays full-size images & text when thumbnails are clicked.  With a Lynda tutorial I was able to write the appropriate code and use the canned scrollpane in Flash, but even after changing some of the properties I really don't like how it looks.  I found another tutorial (http://www.developphp.com/Flash_tutorials/show_tutorial.php?tid=265) that shows a scrollpane I like better (after some modifications), and I've got it working perfectly elsewhere on the site.. but I'm wondering if/how I can integrate the XML code I've already written into this new scrollpane so I can replace the canned one?  If anyone has any tips or can give me any advice I'd really appreciate it.. 
    Thank you!
    I'm using Flash CS4/AS3
    Macbook Pro
    This is the code for the canned one with all the XML:
    var titleArray:Array = new Array();
    var descriptionArray:Array = new Array();
    var largeimageArray:Array = new Array();
    var thumbimageArray:Array = new Array();
    var imageNum:Number=0;
    var totalImages:Number;
    //xml
    //load xml
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("insituportfolio/mainInSituGallery.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
    var theXMLData:XML=new XML(XMLURLLoader.data);
    totalImages=theXMLData.title.length();
    for (var i:Number = 0; i < totalImages; i++) {
    titleArray.push(theXMLData.title[i]);
    descriptionArray.push(theXMLData.description[i]);
    largeimageArray.push(theXMLData.largeimage[i]);
    thumbimageArray.push(theXMLData.thumbimage[i]);
    loadThumbnail();
    mainScrollPane.source=thumbsMain;
    // load thumbs
    function loadThumbnail():void {
    trace(imageNum);
    var thumbLoader:Loader = new Loader();
    thumbLoader.load(new URLRequest(thumbimageArray[imageNum]));
    thumbLoader.y = 100*imageNum;
    var thislargeimage:String = largeimageArray[imageNum];
    var thistitle:String = titleArray[imageNum];
    var thisdescription:String = descriptionArray[imageNum];
    thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
    function thumbLoaded(event:Event):void {
    thumbsMain.addChild(thumbLoader);
    thumbsMain.buttonMode=true;
    mainScrollPane.update();
    thumbLoader.addEventListener(MouseEvent.CLICK,loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {
    largeUILoader.source=thislargeimage;
    selectedTitle.text=thistitle;
    selectedDescrip.text=thisdescription;
    //add to imageNum (1);
    imageNum++;
    if (imageNum<totalImages){
    loadThumbnail();
    And this is the code for the Scrollpane I'd like to use:
    // Scroll My Content function - AS3
    function scrollMyContent () {
    // Cache the TextField as a bitmap to improve performance.
        content_mc.cacheAsBitmap = true;
    // Event Listeners
    scrollDragger.addEventListener(MouseEvent.MOUSE_DOWN, scrollDraggerPress);
    stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpOnStage);
    // Set variables
    var scrollbarHeight:Number = scrollbarBG.height;
    var contentHeight:Number = content_mc.height;
    var scrollDraggerHeight:Number = scrollDragger.height;
    var maskHeight:Number = contentMask.height;
    var scrollAmout:Number = (contentHeight-maskHeight)/(scrollbarHeight-scrollDraggerHeight);
    var topBound:Number = scrollbarBG.y;
    var bottomBound:Number = scrollbarBG.height-scrollDraggerHeight+scrollbarBG.y;
    var startPos:Number = content_mc.y;
    var leftBound:Number = scrollbarBG.x;
    var absNumSet:Number = 0;
        // When scrollDragger gets pressed we do this
    function scrollDraggerPress(event:MouseEvent):void {
            // Set bounds using some of the scroller BG properties claimed above
    var bounds:Rectangle = new Rectangle(leftBound, topBound, 0, bottomBound);
    scrollDragger.startDrag(false, bounds);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, reportStageMouse);
    function reportStageMouse(event:MouseEvent):void {
    absNumSet = Math.abs(scrollbarBG.y - scrollDragger.y);
    content_mc.y = Math.round(absNumSet * - 1 * scrollAmout + startPos);
    // When mouse is released while dragging we do this
    function mouseUpOnStage(event:MouseEvent):void {
    stopDrag();
    scrollMyContent();

    Thank you, that's helpful... so if I just swap the source, do I just drop in the code for the xml after?  Or should it go elsewhere?
    I'm sorry, I realize this is probably a very basic question.

  • XML entities not properly displaying

    I have an XML doc with apostrophies and such and have changed
    them to the proper entity (&apos;) however, regardless of
    whether or not I change them they are always displayed as
    "&apos;" ...anyone know why? When I publish my flash file my
    XML text is displayed as such:
    "The cat&apos;s hat fell off."
    Thanks!
    Ewon

    Hi,
    this is probably because there's only one "end of line" character (probably after <?xml ... ?>). This is normal, but you must store the second line in a string data object, which will then receive the whole XML stream (except the xml header as it is stored in the first line). And that's done.
    BR
    Sandra

  • 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 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 can't display in the first time

    Hi everyone:
    I want to read data from MySQL to web page using JDOM.I read the data from database successful and insert them into a xml file.But I can't open the xml page property.It will display after I refresh the page more than ten times!
    I find that it become easy if I use JDOM to do this work.I write the logic in a servlet:
    /////////////////////////the servlet code is:////////////////////////////////////////////
         public void displayXml(){
              SAXBuilder build=new SAXBuilder();
              try{
              Document doc=build.build(new FileInputStream("C:\\tomcat\\webapps\\ROOT\\xmlbook\\mysql.xml"));
              Element root=doc.getRootElement();
              List books=root.getChildren();
              out.println("debug... ...");
              while(rs.next()){
              Element id=root.getChild("id");
              id.setText(rs.getString("id"));
              Element name=root.getChild("name");
              name.setText(rs.getString("name"));
              Element title=root.getChild("title");
              title.setText(rs.getString("title"));
              Element content=root.getChild("content");
              content.setText(rs.getString("content"));
              Element time=root.getChild("time");
              time.setText(rs.getString("time"));
              XMLOutputter xmlout=new XMLOutputter("",true,"GBK");
              xmlout.output(doc,new FileOutputStream("C:\\tomcat\\webapps\\ROOT\\xmlbook\\mysqlnew.xml"));
         }catch(Exception e){
              out.println(e.toString());
              System.out.println(e.toString());
    //////////////////////////////index.html/////////////////////////////////////////////////////
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
         <head>
              <title>Enter the title of your XHTML document here</title>
              <link style="html/css" href="style.css" rel="stylesheet"/>
         </head>
         <body>
              <h2>welcome to here</h2>
              <form action="mainpageurl" method="post">          
              <p><input type="submit" value="CliCk To EnTEr" /></p>
              </form>
         </body>
    </html>
    //////////////////////////mysql.xml////////////////////////////////////////////////////
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet href='mysqlxsl.xsl' type='text/xsl'?>
    <rootpro>
         <id/>
         <name/>
         <title/>
         <content/>
         <time/>
    </rootpro>
    /////////////////////////////End code///////////////////////////////////////////////////
    I add a hyperlink to the xml in a web page.It will go to the xml page when user click the button.
    But there is a problem puzzle me.The xml page will not display when the user first to come this page.The browser report error:"Can't display this page.The xml file must have a top element".It can display after I refresh this xml page more than ten times.Why?But the xml page already have a top element!~.I means the client must refresh the xml page more than ten times for display it.someone know why? :(

    sorry,My xsl file is:
    ////////////////////////////mysqlxsl.xsl//////////////////////////////////////
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <html>
         <head>
              <title>WelcomE To thE MainPagE</title>
         </head>
         <body>
         <table border="1" bgcolor="#eecc00">
                   <tr>
                   <td>User Information</td>
                        <td><xsl:apply-templates select="result/entry"/></td>
                   </tr>
         </table>     
         </body>
    </html>
    </xsl:template>
    <xsl:template match="entry">
    <li><xsl:value-of select="ID"/></li>
    <li><xsl:value-of select="Name"/></li>
    <li><xsl:value-of select="Title"/></li>
    <li><xsl:value-of select="Content"/></li>
    <li><xsl:value-of select="Time"/></li>
    </xsl:template>
    </xsl:stylesheet>
    I want to transform the xml file using the xsl.

  • 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

Maybe you are looking for

  • Firefox Mobile 4 beta 3 (and pre-beta 4) fails to install on Archos 101 Tablet using Android 2.1 Eclair with no specific error.

    Firefox Mobile 4 beta 3 (and pre-beta 4) fails to install on Archos 101 Tablet using Android 2.1 Eclair with no specific error. Is this a know issue or has someone been able to successfully install?

  • Paid For

    Paid for and always asking me to pay again.  What's Up?

  • Why does AE's 720 become QT's 654??

    Hi - I have a project where I need to work in 720x480 to satisfy specs http://vpcinc.net/ftp/RCA/Masons Spots/OMC Encoding Standards.doc. So  - I'm using NTSC DV settings in AE CS5.5 (Mac).  The new comp dialog says 720x480 and I thought I'd be golde

  • My email won't launch

    My mail program vers. 2.1 quit launching. I have tried everything but to no avail. Does anyone have an answer to this probllem?? It worked fine until several days ago, and just quit launching.

  • Calculating an Avg in SQL

    I'm calculating an average with the following query: Select Avg(Final_Value) into v_3Month_Avg From -- Prior Month (Select Pa_Entered_Value as Final_Value from wr_measure_value where wr_measure_oid= p_MeasureOID and project_associate_oid = p_ProjectA