Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DOCTYPE questions and problem(s)

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 4/8/2008 6:00:00 PM

Martin wrote:

> The problems start when I try to work on my laptop which is frequently 
> disconnected from the internet. At this point my transform .NET code 
> fails again as it cannot reach www.martin.com. To solve this I've 
> changed the url to http://localhost/DTD/xhtml-lat1.ent and all is well 
> again. Except that the documents need to be edited - locahost replaced 
> with www.martin.com - as I move back and forth from laptop to desktop.

You might want to write a custom XmlResolver (for instance by 
subclassing XmlUrlResolver) that checks for the URLs your application 
accesses and makes sure that resources are fetched from a local cache if 
no internet connection is available.
Then you can set the XmlResolver property of your XmlReaderSettings or 
of your XmlDocument to that custom resolver.


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent