Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DOCTYPE questions and problem(s)

From: Martin <a@-.->
To: NULL
Date: 4/8/2008 5:26:00 PM

Ah. I hadn't thought of a .NET solution. Thanks for that.

Actually I'd come up with another solution using the HOSTS file instead. 
My concern is that I'm likely to encounter this or a similar problem 
when I start to build schemas for my documents. I'm very uncertain of my 
ground here - schemas is next on my todo list - but I foresee problems 
with targetNamespace and xmlns:mstns, for example.

Martin

Martin Honnen wrote:
> 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.
> 
> 


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