diff --git a/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java b/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java index 407433dbe..79dba7c61 100644 --- a/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java +++ b/src/main/java/com/adobe/epubcheck/util/XmlReportImpl.java @@ -27,10 +27,12 @@ public int generateReport() try { setNamespace("http://hul.harvard.edu/ois/xml/ns/jhove"); + addPrefixNamespace("xsi","http://www.w3.org/2001/XMLSchema-instance"); List> attrs = new ArrayList>(); attrs.add(KeyValue.with("name", epubCheckName)); attrs.add(KeyValue.with("release", epubCheckVersion)); attrs.add(KeyValue.with("date", epubCheckDate)); + attrs.add(KeyValue.with("xsi:schemaLocation", "http://hul.harvard.edu/ois/xml/ns/jhove http://hul.harvard.edu/ois/xml/xsd/jhove/jhove.xsd")); startElement("jhove", attrs); generateElement("date", generationDate);