Validate XML against DTD
To validate an XML Document against a DTD, you need to associate your XML Document with the DTD: Click Schema > Associate XML Document with DTD, Relax NG Schema, or XSD..., 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>
To validate:
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.