Custom XmlResolver for embeded DTD3 July 2012·3 mins.net xmlWriting a component for parsing XML files with XMLSerializer I had to provide DTD validation (DTD file was already created long time ago so there was no sense for creating XSD schema).