How to validate a DITA 1.0.1 topic
There are two ways to validate a DITA 1.0.1 topic: against the DTD or against the XML Schema. XMLBlueprint XML Editor supports both.
How to validate a DITA 1.0.1 topic against the DTD
To validate a DITA 1.0.1 topic against the DTD, you must include the DITA 1.0.1 DTD in your topic:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE topic SYSTEM "http://docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd">
<topic>
</topic>
XMLBlueprint XML Editor will automatically support XML Completion for your DITA 1.0.1 topic based on the DTD. To validate your DITA 1.0.1 topic, open it in XMLBlueprint XML Editor and click XML > Validate.
TIP --In XMLBlueprint, choose File > New > XML Document with DTD, Relax NG Schema, or XML Schema and paste
http://docs.oasis-open.org/dita/v1.0.1/dtd/topic.dtd
in the edit box. Press the Next > button, choose "topic" as root element and then press the Finish button. XMLBlueprint will automatically create an empty topic with a reference to the DITA 1.0.1 DTD.
How to validate a DITA 1.0.1 topic against the XML Schema
To validate a DITA 1.0.1 topic against the XML Schema, you must include the DITA 1.0.1 XML Schema in your topic:
<?xml version="1.0" encoding="utf-8"?>
<topic
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://docs.oasis-open.org/dita/v1.0.1/schema/topic.xsd">
</topic>
XMLBlueprint XML Editor will automatically support XML Completion for your DITA 1.0.1 topic based on the XML Schema. To validate your DITA 1.0.1 topic, open it in XMLBlueprint XML Editor and click XML > Validate.
TIP --In XMLBlueprint, choose File > New > XML Document with DTD, Relax NG Schema, or XML Schema and paste
http://docs.oasis-open.org/dita/v1.0.1/schema/topic.xsd
in the edit box. Press the Next > button, choose "topic" as root element and then press the Finish button. XMLBlueprint will automatically create an empty topic with a reference to the XML Schema.







