Jump to content

The XML page cannot be displayed


dedyandy

Recommended Posts

My computer runs XP Pro, Apache, MySQL, and PERL. I am having problem running the html file. I received the error message when I accessed it via http://localhost:80/page408.html. However, it only happened with this file. Strangely, when I replaced the content of the file with the contents of other files which run ok, I received the same error message.The error message is:The XML page cannot be displayed.Cannot view XML input using style sheet. Please correct the error andthen click the Refresh button, or try again later.Parameter entity must be defined before it is used. Error processing resource'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'.Line 85, Position 2%xhtml-prefw-redec1.mod;_^Could anybody help me with this problem? Thanks,Andy.

Link to comment
Share on other sites

Strange. Such error shouldn't appear with HTML files. It should however occur if your file is served with the MIME type text/xml or application/xml. Or simply if it's extension is *.xml rather then *.html. Can you give a link to both the working file and the non-working one?

Link to comment
Share on other sites

Sorry, I am not really sure from your suggestion by giving a link to both a working file and a non-working file. I have given a link in a working file to a non working file. When I clicked the link, then there was still the same error message.To be more precise, I run an html file and two CGI files. The top part of the html file is:<?xml version = "1.0" encoding = "utf-8"?><!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><!-- conelec.html A document to present the user with a consumer electronics purchasing survey form --><html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title> Consumer Electronics Purchasing Survey </title> </head> <body> <form action = "./cgi-bin/conelec1.cgi" method = "post">...A number of variations I have tried to solve the problem, such as:1. I removed the value of action tag to be an empty string.2. It sounds silly but worth to try that I changed the top part above with the top part of the working file, that actually is exactly the same thing.However, with the above effort, there was still the same error message.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...