Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - DOCTYPE questions and problem(s) >Thread Next - Re: DOCTYPE questions and problem(s) Re: DOCTYPE questions and problem(s)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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
