XmlResolver Class' GetEntity function?

I have found the answer right here on Stack Overflow. First the public identifier ( -//Organization//DTD Document 1.0//EN ) is passed as parameter, than - if the first call resulted in an error - the uri of the DTD file ( http://localhost/document. Dtd ).

Up vote 0 down vote favorite share g+ share fb share tw.

I wrote a custom resolver class. It works OK for resolving SYSTEM DTDs, but not for resolving PUBLIC DTDs. When the class has to resolve PUBLIC DTDs instead of the URI of the resource, the function receives the public identifier through the absoluteUri parameter of the GetEntity function.

Is there a solution to this. In examples: if I have a DTD declaration like then the custom resolver correctly receives the string "document. Dtd" through the absoluteUri parameter of the GetEntity function.

If I have a DTD declaration like then the custom resolver incorrectly receives the string "-//Organization//DTD Document 1.0//EN" instead of "scheme://host/document. Dtd". C# .net xml dtd link|improve this question edited Jun 3 '10 at 13:31 asked Jun 2 '10 at 9:33Pok11.

I have found the answer right here on Stack Overflow. First the public identifier (-//Organization//DTD Document 1.0//EN) is passed as parameter, than - if the first call resulted in an error - the uri of the DTD file (http://localhost/document. Dtd).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions