Validate XML against a DTD
XMLBlueprint can validate XML against a DTD:
Open your XML Document in the XML Editor.
Click XML > Validate.
The Errors view is automatically displayed to show any errors in the XML Document. Click on the error message to jump to the position where the error occurred.
Note: To validate an XML Document you need to associate your XML Document with a DTD, Relax NG Schema, Schematron Schema, or XML Schema.
How to associate an XML Document with a DTD
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"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
</html>
This tells XMLBlueprint to validate the XML Document against DTD "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd". The 'PUBLIC' part is optional, this is also possible:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
</html>