To validate an XML Document against a DTD (Document Type Declaration), you need to associate your XML Document with the DTD: Click Schema > Associate XML Document with DTD, Relax NG Schema, or XML Schema..., and select a DTD. You can also do this yourself, for example: <? xml version="1.0" encoding="utf-8"?>
How validate XML DTD?
Create a DTD and link to the XML document
- In Visual Studio 2005 or in Visual Studio . ...
- Select the Text File type, and then click Open.
- Add the following DTD declarations to the file to describe the grammar of the XML document: ...
- Save the file as Product. ...
- Reopen Product. ...
- Save the modified XML document as ProductWithDTD.
Which browser can validate your XML against a DTD?
Can a browser such as Internet Explorer use DTDs to validate XML documents? Yes, but not by default. By default, Internet Explorer can use XML schemas and displays the results when loading a document.