diff --git a/Code/Mantid/docs/source/concepts/InstrumentDefinitionFile.rst b/Code/Mantid/docs/source/concepts/InstrumentDefinitionFile.rst index 01aa6d96f88e985d419881cb02529a658889275c..acdf04823d6ba5cd380fd0ce085bdb484879dbbe 100644 --- a/Code/Mantid/docs/source/concepts/InstrumentDefinitionFile.rst +++ b/Code/Mantid/docs/source/concepts/InstrumentDefinitionFile.rst @@ -162,18 +162,23 @@ For information on how to define geometric shapes see Top level <instrument> ~~~~~~~~~~~~~~~~~~~~~~ -<instrument> is the top level XML element of an IDF. It takes attributes, two of +<instrument> is the top level XML element of an IDF. It takes attributes, three of which must be included. An example is .. code-block:: xml - <instrument name="ARCS" + <instrument xmlns="http://www.mantidproject.org/IDF/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 http://schema.mantidproject.org/IDF/1.0/IDFSchema.xsd" + name="ARCS" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2010-10-12 08:54:07.279621"> Of the four attributes in the example above +- xmlns, xmlns:xsi, xsi:schemaLocation are required attributes that can + be copied verbatim as above - name is (at present) optional, although it is recommended to specify something sensible - valid-from is compulsory and is the date from which the IDF is valid diff --git a/Code/Mantid/instrument/DNS_Definition_PAonly.xml b/Code/Mantid/instrument/DNS_Definition_PAonly.xml index b9949f4781afadaf90bf51091f12d43616b2b0cd..c34560606067404f7d69f1ccacc41a1f492441ea 100644 --- a/Code/Mantid/instrument/DNS_Definition_PAonly.xml +++ b/Code/Mantid/instrument/DNS_Definition_PAonly.xml @@ -1,6 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <!-- For help on the notation used to specify an Instrument Definition File see http://www.mantidproject.org/IDF --> -<instrument name="DNS" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2015-03-25 10:17:17"> +<instrument xmlns="http://www.mantidproject.org/IDF/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.mantidproject.org/IDF/1.0 http://schema.mantidproject.org/IDF/1.0/IDFSchema.xsd" + name="DNS" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2015-03-25 10:17:17"> <!-- Author: m.ganeva@fz-juelich.de --> <defaults> <length unit="meter" />