Data Formats Working Group

From canSAS

Mailing List Archive


  • 2007-12-31 agree on v1.0 format
  • 2008-01-01 start implementing v1 at facilities
  • 2008-06 representative sampling of data available for inter-facility comparison
  • 2008-10 presentation of results at NOBUGS2008 meeting (date TBA)

Current Definition

XML template: cansas1d.xml

<?xml version="1.0"?>
<SASroot xmlns=""
	xsi:schemaLocation=" cansas1d.xsd"
				<Q units="1/A">0.02</Q>
				<I units="1/cm">1000</I>
				<Qdev units="1/A" />
				<Idev units="1/cm">3</Idev>
				<Qfwhm units="1/A"><!-- Qfwhm is optional --></Qfwhm>
				<Qmean units="1/A"><!-- Qmean is optional --></Qmean>
				<ShadowFactor units="1/A"><!-- ShadowFactor is optional --></ShadowFactor>

XML Schema: cansas1d.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns=""

	<complexType name="SASrootType">
			<element name="SASentry" minOccurs="1" maxOccurs="unbounded"
		<attribute name="version" type="string" fixed="0.1a" />

	<complexType name="SASprocessType">
			<element name="SASprocessnote" type="string" />
		<attribute name="name" type="string" />

	<complexType name="SASinstrumentType">
			<element name="SASsource" type="string" />
			<element name="SAScollimation" type="string" />
			<element name="SASdetector" type="string" />
		<attribute name="name" type="string" />

	<complexType name="SASdataType">
			<element name="Idata" minOccurs="1" maxOccurs="unbounded"
				type="tns:IdataType" />
		<attribute name="name" type="string" />

	<complexType name="SASentryType">
			<element name="Title" minOccurs="0" maxOccurs="1"
				type="string" />
			<element name="Run" minOccurs="0" maxOccurs="1"
				type="string" />
			<element name="SASdata" type="tns:SASdataType" />
			<element name="SASsample" />
			<element name="SASinstrument" type="tns:SASinstrumentType" />
			<element name="SASprocess" type="tns:SASprocessType" />
			<element name="SASnote" />
		<attribute name="name" type="string" />

	<complexType name="QType">
			<extension base="float">
				<attribute name="units" type="string" default="1/A"
					use="optional" />

	<complexType name="IType">
			<extension base="float">
				<attribute name="units" type="string" default="1/cm"
					use="optional" />

	<complexType name="IdataType">
			<element name="Q" minOccurs="1" maxOccurs="1"
				type="tns:QType" />
			<element name="I" minOccurs="1" maxOccurs="1"
				type="tns:IType" />
			<element name="Qdev" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />
			<element name="Idev" minOccurs="0" maxOccurs="1"
				type="tns:IType" default="0" />
			<element name="Qfwhm" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />
			<element name="Qmean" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />
			<element name="ShadowFactor" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />

	<element name="SASroot" type="tns:SASrootType" />


XML example

to be defined


  • Andrew Jackson (NIST)
  • Pete Jemian (APS)
  • Steve King (ISIS)
  • Ken Littrell (ORNL)
  • Andy Nelson (ANSTO)
  • Ron Ghosh (ILL)
  • Jan Ilavsky (APS)


--Jemian 12:00, 14 December 2007 (EST)draft status updated