XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS