<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
<!--
# NeXus - Neutron and X-ray Common Data Format
# 
# Copyright (C) 2008-2020 NeXus International Advisory Committee (NIAC)
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# For further information, see http://www.nexusformat.org
-->
<definition xmlns="http://definition.nexusformat.org/nxdl/3.1" category="base"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
	name="NXnote" 
    type="group" extends="NXobject">
	<doc>
		Any additional freeform information not covered by the other base classes.
		
		This class can be used to store additional information in a 
		NeXus file e.g. pictures, movies, audio, additional text logs
	</doc>
	<field name="author">
		<doc>Author or creator of note</doc>
	</field>
	<field name="date" type="NX_DATE_TIME">
		<doc>Date note created/added</doc>
	</field>
	<field name="type">
		<doc>Mime content type of note data field e.g. image/jpeg, text/plain, text/html</doc>
	</field>
	<field name="file_name">
		<doc>Name of original file name if note was read from an external source</doc>
	</field>
	<field name="description">
		<doc>Title of an image or other details of the note</doc>
	</field>
    <field name="sequence_index" type="NX_POSINT">
        <doc>
            Sequence index of note, for placing a sequence of 
            multiple **NXnote** groups in an order.  Starts with 1.
        </doc>
    </field>
	<field name="data" type="NX_BINARY">
		<doc>Binary note data - if text, line terminator is [CR][LF].</doc>
	</field>
</definition>
