In the current implementation the public identifier is not used when resolving an external identifier. Your option is to use the exception as a catch and then string validate the public id (however, this solution is not elegant and is cludgy). Though, it would work....
Up vote 4 down vote favorite 1 share g+ share fb share tw.
I've written a class extending XmlUrlResolver to resolve references to public identifiers in XML documents. For example, when an XML document starts with: The public identifier "-//Custom/EN" is passed to the relativeURI parameter of my overriden ResolveUri() method, and resolved to the actual DTD location on disk. That works correctly.
The problem occurs when there is an entity reference inside the DTD itself. For example: In this case, the system identifier "soextblx. Dtd" is passed to ResolveUri() instead of the public identifier "-//OASIS//DTD XML Exchange Table Model 19990315//EN".
Is there any way to accomplish this? Overriding GetEntity() does not seem to work, either, because it is also passed the system identifier. C# xml validation dtd link|improve this question asked Apr 8 '10 at 13:35James Sulak5,20322134 79% accept rate.
In the current implementation the public identifier is not used when resolving an external identifier. Your option is to use the exception as a catch and then string validate the public id (however, this solution is not elegant and is cludgy). Though, it would work.... Of course (this would also require that you know the public id or at least a portion of the string), so that you could use the getEntity().
I searched online for a reference that identifies this: bytes.com/topic/net/answers/172597-xmlre... Hopefully, this helps.
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.