[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to read XML file offline
Hi All, I am having difficulty opening up XML files offline (not connected or Internet/behind a proxy server) using Internet Explorer as it returns the following message: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. The server did not understand the request, or the request was invalid. Error processing resource 'http://www.w3.org/TR/xhtm... Below is the first few lines of C:\Tmp\car.xml document: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml"><head><script type="text/javascript"> ....... Firefox can open the same document but as flat file which looses some of the hierachical tree structure and cannot track the source of the nodes properly. I would like to read its content the same way as an XML editor would, without having to purchase one since I only need it for viewing purposes. I have made the following change to the same document in an attempt to reference the DTD locally without success: <!DOCTYPE html SYSTEM "-//W3C//DTD XHTML 1.0 Transitional//EN" "e:\\TMP\\xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml"><head><script type="text/javascript"> ..... Now the error output is slightly different: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- The character '>' was expected. Error processing resource 'file:///C:/Tmp/CAR.xml'. Line 2, Position 64 <!DOCTYPE html SYSTEM "-//W3C//DTD XHTML 1.0 Transitional//EN" "e:\\TMP\\xhtml1-transitional.dtd"> ------------------... Any assistance would be much appreciated. Thanks a lot, Jack
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|