How to validate an EAD document

There are three ways to validate an EAD document: against the DTD, against the Relax NG Schema or against the XML Schema. XMLBlueprint XML Editor supports all three.

How to validate an EAD document against the DTD

To validate an EAD document against the DTD, you must include the EAD DTD in your document:

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE ead SYSTEM "ftp://ftp.loc.gov/pub/ead/ead.dtd">

<ead>

</ead>

XMLBlueprint XML Editor will automatically support XML Completion for your EAD document based on the DTD. To validate your EAD document, 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

ftp://ftp.loc.gov/pub/ead/ead.dtd

in the edit box. Press the Next > button, choose "ead" as root element and then press the Finish button. XMLBlueprint will automatically create an empty document with a reference to the DTD.

How to validate an EAD document against the Relax NG Schema

To validate an EAD document against the Relax NG Schema, you must include the EAD Relax NG Schema in the your document:

<?xml version="1.0" encoding="utf-8"?>

<?blueprint

      namespace="urn:isbn:1-931666-22-9"

      schema="http://www.loc.gov/ead/ead.rng"?>

<ead

      xmlns="urn:isbn:1-931666-22-9">

</ead>

XMLBlueprint XML Editor will automaticallty support XML Completion for your EAD document based on the Relax NG Schema. To validate your EAD document, 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://www.loc.gov/ead/ead.rng

in the edit box. Press the Next > button, choose "ead" as root element and then press the Finish button. XMLBlueprint will automatically create an empty document with a reference to the Relax NG Schema.

How to validate an EAD document against the XML Schema

To validate an EAD document against the XML Schema, you must include the EAD XML Schema in your document:

<?xml version="1.0" encoding="utf-8"?>

<ead

      xmlns="urn:isbn:1-931666-22-9"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="

            urn:isbn:1-931666-22-9

            http://www.loc.gov/ead/ead.xsd">

</ead>

XMLBlueprint XML Editor will automatically support XML Completion for your EAD document based on the XML Schema. To validate your EAD document, 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://www.loc.gov/ead/ead.xsd

in the edit box. Press the Next > button, choose "ead" as root element and then press the Finish button. XMLBlueprint will automatically create an empty document with a reference to the XML Schema.