From 7a59d2f97bf0ac42a710a3ca5c1067da2437027e Mon Sep 17 00:00:00 2001 From: jemian Date: Sat, 16 Jul 2011 23:30:39 +0000 Subject: [PATCH] make an XML Schema to validate NeXus template files - works fine for the examples as-written but not yet sufficient for general use git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@13176 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b --- iocBoot/NeXus_templates.xsd | 274 ++++++++++++++++++++++++++++++++++++ iocBoot/validateXML.sh | 2 + 2 files changed, 276 insertions(+) create mode 100755 iocBoot/NeXus_templates.xsd diff --git a/iocBoot/NeXus_templates.xsd b/iocBoot/NeXus_templates.xsd new file mode 100755 index 0000000..5c3e5b3 --- /dev/null +++ b/iocBoot/NeXus_templates.xsd @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iocBoot/validateXML.sh b/iocBoot/validateXML.sh index affe735..5edf6dd 100755 --- a/iocBoot/validateXML.sh +++ b/iocBoot/validateXML.sh @@ -25,3 +25,5 @@ xmllint --noout --schema ./attributes.xsd iocSimDetector/simDetectorAttributes.x # #iocPerkinElmer/nexus_templates/example.xml fails to validate #iocSimDetector/NexusTemplate.xml fails to validate +xmllint --noout --schema ./NeXus_templates.xsd iocPerkinElmer/nexus_templates/example.xml +xmllint --noout --schema ./NeXus_templates.xsd iocSimDetector/NexusTemplate.xml