diff --git a/.gitattributes b/.gitattributes
index 8d5473b59aef8cc9c77f11fcd4a52126d8765f23..38416795e47451e18dc31b98279af4f1f38ee38b 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2315,6 +2315,7 @@ CMake/testscripts/assay -text
 CMake/testscripts/checkfloat -text
 CMake/testscripts/default.debug -text
 CMake/testscripts/timeout -text
+CMake/variants/variants.MacRenting -text
 CMake/variants/variants.b7015 -text
 CMake/variants/variants.cbt001 -text
 CMake/variants/variants.cbt002 -text
@@ -3358,6 +3359,9 @@ MAC/Deployment/data/Coordinates/vectors-and-matrices/SE607/se607-lba-solution.li
 MAC/Deployment/data/Coordinates/vectors-and-matrices/UK608/uk608-hba-solution.lisp -text
 MAC/Deployment/data/Coordinates/vectors-and-matrices/UK608/uk608-lba-solution.lisp -text
 MAC/Deployment/data/OTDB/Calibration.comp -text
+MAC/Deployment/data/OTDB/Cluster.base -text
+MAC/Deployment/data/OTDB/ClusterNode.base -text
+MAC/Deployment/data/OTDB/ClusterNode.list -text
 MAC/Deployment/data/OTDB/Component_diff.sh -text svneol=unset#application/x-shellscript
 MAC/Deployment/data/OTDB/LongBaseline.comp -text
 MAC/Deployment/data/OTDB/Pulsar.comp -text
@@ -5121,6 +5125,53 @@ SAS/Scheduler/test/unittest/testGui/testGui.sh eol=lf
 SAS/Scheduler/test/unittest/testqstring/testqstring.run eol=lf
 SAS/Scheduler/test/unittest/testqstring/testqstring.sh eol=lf
 SAS/Scheduler/test/unittest/tojunit.xslt -text
+SAS/XML_generator/CMakeLists.txt -text
+SAS/XML_generator/src/CMakeLists.txt -text
+SAS/XML_generator/src/xmlgen -text
+SAS/XML_generator/src/xmlgen.py -text
+SAS/XML_generator/test/CMakeLists.txt -text
+SAS/XML_generator/test/test_error8134.py -text
+SAS/XML_generator/test/test_error8134.sh -text
+SAS/XML_generator/test/test_regression.in_data/txt/20150713_4C17.31.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/20150731_G46_run1_HBA.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/20150810_P247P244.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/2MASS_1.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/B1834620_HBA_LB_20150817.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/LC4_020_20150813.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/LC4_022_3C58_HBA_parameters.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/LT5_006_4C43_HBA_calSearch_parameters.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/MSSS_20151207_testmultipipe.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/Ticket_6923.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/hd156279b_reference.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/lc4_019_1.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/old_Long_Baseline_test.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/old_input.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/old_pulsar_pipe_test.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/test_LB.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/test_input.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/test_input_cep4.txt -text
+SAS/XML_generator/test/test_regression.in_data/txt/test_input_long_baseline_pipeline.txt -text
+SAS/XML_generator/test/test_regression.in_data/xml/20150713_4C17.31.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/20150731_G46_run1_HBA.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/20150810_P247P244.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/2MASS_1.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/B1834620_HBA_LB_20150817.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/LC4_020_20150813.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/LC4_022_3C58_HBA_parameters.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/LT5_006_4C43_HBA_calSearch_parameters.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/Long_Baseline_test.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/MSSS_20151207_testmultipipe.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/Ticket_6923.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/hd156279b_reference.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/input.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/lc4_019_1.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/pulsar_pipe_test.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/test_LB.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/test_input.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/test_input_cep4.xml -text
+SAS/XML_generator/test/test_regression.in_data/xml/test_input_long_baseline_pipeline.xml -text
+SAS/XML_generator/test/test_regression.py -text
+SAS/XML_generator/test/test_regression.sh -text
 SubSystems/LAPS_CEP/test/startPythonFromMsg.py eol=lf
 SubSystems/LAPS_CEP/test/startPythonFromMsg.run eol=lf
 SubSystems/LAPS_CEP/test/startPythonFromMsg.sh eol=lf
diff --git a/CMake/LofarPackageList.cmake b/CMake/LofarPackageList.cmake
index 83c1325ca6d52acc286bfcca50250893182cedf6..d73cd29ea2ec2a467357e18851a3792aef525bd3 100644
--- a/CMake/LofarPackageList.cmake
+++ b/CMake/LofarPackageList.cmake
@@ -144,6 +144,7 @@ if(NOT DEFINED LOFAR_PACKAGE_LIST_INCLUDED)
   set(OTDB_Services_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SAS/OTDB_Services)
   set(jOTDB3_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SAS/OTB/jOTDB3)
   set(OTB-Java_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SAS/OTB/OTB)
+  set(XML_generator_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SAS/XML_generator)
   set(ResourceAssignmentEditor_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SAS/ResourceAssignment/ResourceAssignmentEditor)
   set(CCU_MAC_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SubSystems/CCU_MAC)
   set(LCU_MAC_SOURCE_DIR ${CMAKE_SOURCE_DIR}/SubSystems/LCU_MAC)
diff --git a/CMake/variants/variants.MacRenting b/CMake/variants/variants.MacRenting
new file mode 100644
index 0000000000000000000000000000000000000000..890e39c9faf6ab64ed5f405bb9131e2d5e0fe95c
--- /dev/null
+++ b/CMake/variants/variants.MacRenting
@@ -0,0 +1,6 @@
+## $Id: variants 33283 2016-01-15 14:05:11Z schaap $
+
+option(USE_LOG4CPLUS            "Use Log4Cplus"               OFF)
+
+option(USE_OPENMP               "Use OpenMP"                  OFF)
+
diff --git a/MAC/Deployment/data/OTDB/Cluster.base b/MAC/Deployment/data/OTDB/Cluster.base
new file mode 100755
index 0000000000000000000000000000000000000000..905a5abc5e49b6c0c9b8aed8fbdd6897aac4cc42
--- /dev/null
+++ b/MAC/Deployment/data/OTDB/Cluster.base
@@ -0,0 +1,22 @@
+# -- Cluster
+#
+# $Id: DataProducts.base 25528 2013-07-02 09:23:01Z loose $
+#
+#      name        vers   qual        constr.            descr.
+#--------------------------------------------------------------------------------------------------------
+node  Cluster     4.0.2  development 'node constraint'  "Place holder for all processing clusters"
+
+#
+# name				name of the parameter
+# direction			I: input only; O: changes will be logged during runtime; IO: both
+# type				parametertype: should exist in param_type table of OTDB (= ParamTypeConv)
+# unit				name of unit of parameter (should exist in unit table (= UnitConv)
+# pruninglevel		when parameter values are thrown away from the database. (NOT YET USED)
+# validationMoment	moment the parameter values is validated (NOT YET USED)
+# value				value(range) of the parameter.
+# constraint		script to run to check its value
+# description		what the parameter manages.
+#--------------------------------------------------------------------------------------------------------
+#    name                         dir. type   unit   prun. vm   value                   constr.  descr.
+#--------------------------------------------------------------------------------------------------------
+uses  @cluster@            4.0.2  development 'node constraint'  "Cluster descriptions"
diff --git a/MAC/Deployment/data/OTDB/ClusterNode.base b/MAC/Deployment/data/OTDB/ClusterNode.base
new file mode 100644
index 0000000000000000000000000000000000000000..412be604b4bf427abc501f76edca6635fad2c4cf
--- /dev/null
+++ b/MAC/Deployment/data/OTDB/ClusterNode.base
@@ -0,0 +1,16 @@
+# $Id: ClustersNode.base 25528 2013-07-02 09:23:01Z loose $
+#
+#      name             vers   qual        constr.            descr.
+#--------------------------------------------------------------------------------------------------------
+node  @cluster@     4.0.2  development 'node constraint'  "Cluster description(s) for processing locations"
+
+#    name              dir.    type   unit     prun.   vm      value   constr. descr.
+#--------------------------------------------------------------------------------------------------------
+par clusterName        I       text    -       10     100       ''      -       "name of StorageCluster to store data"
+par clusterPartition   I       text    -       10     100       ''      -       "name of StorageCluster partition to store data"
+par numberOfTasks      I       uint    -       10     100       0      -       "Number of tasks this job requires"
+par minRAMPerTask      I       uint    -       10     100       0      -       "Minimum RAM needed by task"
+par minScratchPerTask  I       uint    -       10     100       0      -       "Minimal scratch space needed by task"
+par maxDurationPerTask I       text    -       10     100       ''      -       "Duration in which a task should be killed if not finished (xs:duration format)"
+par numberOfCoresPerTask I       uint    -       10     100       1      -       "Number of cores a task needs on a node"
+par runSimultaneous    I       bool    -       10     100       false   -       "Do the tasks need to run at the same time"
diff --git a/MAC/Deployment/data/OTDB/ClusterNode.list b/MAC/Deployment/data/OTDB/ClusterNode.list
new file mode 100644
index 0000000000000000000000000000000000000000..b079beff7d4521dbf7d6ea069b4c2f799e99489c
--- /dev/null
+++ b/MAC/Deployment/data/OTDB/ClusterNode.list
@@ -0,0 +1 @@
+ProcessingCluster
diff --git a/MAC/Deployment/data/OTDB/InputDataProductNode.base b/MAC/Deployment/data/OTDB/InputDataProductNode.base
index 5806ac9aec1d65c4e7f1131aed11931ee273a8ba..d68b3743d672f65be51938972cbc4b17d8983977 100644
--- a/MAC/Deployment/data/OTDB/InputDataProductNode.base
+++ b/MAC/Deployment/data/OTDB/InputDataProductNode.base
@@ -14,3 +14,5 @@ par locations          I       vtext   -       10     100       '[]'    -
 par mountpoints        I       vtext   -       10     100       '[]'    -       "mount points for @inputdataproduct@ data"
 par namemask           I       text    -       10     100       ''      -       "name mask for interpreting the filenames"
 par skip               I       vint    -       10     100       '[]'    -       "array of integers. 0 = don't skip, 1 = skip processing the corresponding file"
+par clustername        I       text    -       10     100       ''      -       "name of StorageCluster to read data"
+par clusterpartition   I       text    -       10     100       ''      -       "name of StorageCluster partition to read data"
diff --git a/MAC/Deployment/data/OTDB/Observation.comp b/MAC/Deployment/data/OTDB/Observation.comp
index 304fb1b8b345777a806c9085287c449026f0cc91..70f60b39bba928ebba4b836bb042080c7fa59e86 100644
--- a/MAC/Deployment/data/OTDB/Observation.comp
+++ b/MAC/Deployment/data/OTDB/Observation.comp
@@ -45,3 +45,4 @@ uses  Dataslots  	 4.0.0  development '1'		       "Dataslot (beamlet) allocation
 uses  ObservationControl 4.0.2  development '1'		       "Observation Control"
 uses  Scheduler          4.0.0  development '1'                "Scheduler"
 uses  DataProducts       4.0.2  development '1'                "Place holder for all data products"
+uses  Cluster            4.0.2  development '1'                "Placeholder for cluster description(s) for processing locations"
diff --git a/MAC/Deployment/data/OTDB/OutputDataProductNode.base b/MAC/Deployment/data/OTDB/OutputDataProductNode.base
index 2fe76751dadd1817c295c2246d1d24a3b102c5ca..fd67c46aa3016b95a207f571eb81088d7557c4d5 100644
--- a/MAC/Deployment/data/OTDB/OutputDataProductNode.base
+++ b/MAC/Deployment/data/OTDB/OutputDataProductNode.base
@@ -4,18 +4,19 @@
 #--------------------------------------------------------------------------------------------------------
 node  @outputdataproduct@     4.0.2  development 'node constraint'  "Storage settings for ouput data"
 
-#    name              dir.    type   unit     prun.   vm      value   constr. descr.
+#    name                     dir.    type   unit     prun.   vm      value   constr. descr.
 #--------------------------------------------------------------------------------------------------------
-par archived           I       bool    -       10     100	false   -	"true if the data has been archived"
-par deleted            I       bool    -       10     100       false   -       "true if the cleanup of the file is done"
-par dirmask            I       text    -       10     100       ''      -       "directory mask for interpreting the directory name (set by scheduler)"
-par enabled            I       bool    -       10     100       false   -       "Create the @outputdataproduct@ data product type"
-par filenames          I       vtext   -       10     100       '[]'    -       "filenames of the @outputdataproduct@ data files (set by scheduler)"
-par identifications    I       vtext   -       10     100	'[]'    -	"identifications and topology of the output data products"
-par locations          I       vtext   -       10     100       '[]'    -       "storage locations for @outputdataproduct@ data (set by scheduler)"
-par mountpoints        I       vtext   -       10     100       '[]'    -       "mount points for @outputdataproduct@ data (set by scheduler)"
-par namemask           I       text    -       10     100       ''      -       "name mask for interpreting the filenames (set by scheduler)"
-par percentageWritten  I       vint    -       10     100       '[]'    -       "the percentage written for all files 0=not written, 100=complete"
-par retentiontime      I       uint    -       10     100       14      -       "number of days the data stays on storage nodes before cleanup"
-par skip               I       vint    -       10     100	'[]'    -	"array of integers. 0 = don't skip, 1 = skip processing the corresponding file"
-
+par archived                  I       bool    -       10     100       false   -	"true if the data has been archived"
+par deleted                   I       bool    -       10     100       false   -       "true if the cleanup of the file is done"
+par dirmask                   I       text    -       10     100       ''      -       "directory mask for interpreting the directory name (set by scheduler)"
+par enabled                   I       bool    -       10     100       false   -       "Create the @outputdataproduct@ data product type"
+par filenames                 I       vtext   -       10     100       '[]'    -       "filenames of the @outputdataproduct@ data files (set by scheduler)"
+par identifications           I       vtext   -       10     100       '[]'    -	"identifications and topology of the output data products"
+par locations                 I       vtext   -       10     100       '[]'    -       "storage locations for @outputdataproduct@ data (set by scheduler)"
+par mountpoints               I       vtext   -       10     100       '[]'    -       "mount points for @outputdataproduct@ data (set by scheduler)"
+par namemask                  I       text    -       10     100       ''      -       "name mask for interpreting the filenames (set by scheduler)"
+par percentageWritten         I       vint    -       10     100       '[]'    -       "the percentage written for all files 0=not written, 100=complete"
+par retentiontime             I       uint    -       10     100       14      -       "number of days the data stays on storage nodes before cleanup"
+par skip                      I       vint    -       10     100       '[]'    -	"array of integers. 0 = don't skip, 1 = skip processing the corresponding file"
+par storageClusterName        I       text    -       10     100       ''      -       "name of StorageCluster to store data"
+par storageClusterPartition   I       text    -       10     100       ''      -       "name of StorageCluster partition to store data"
diff --git a/MAC/Deployment/data/OTDB/create_OTDB_comps b/MAC/Deployment/data/OTDB/create_OTDB_comps
index d7b1c4a258b20ef88f92decb9a60e9300235f7cc..c2386aa5ad7a8af4749ce02699728d966f5e1597 100755
--- a/MAC/Deployment/data/OTDB/create_OTDB_comps
+++ b/MAC/Deployment/data/OTDB/create_OTDB_comps
@@ -207,5 +207,11 @@ do
                 expand_dataproduct "InputDataProductNode" "@inputdataproduct@" |\
 		expand_dataproduct "OutputDataProductNode" "@outputdataproduct@" >${outputname}
         fi
+        grep @cluster@ $file >/dev/null 2>&1
+        if [ $? -eq 0 ]; then
+                cat $file | \
+                expand_dataproduct "ClusterNode" "@cluster@" >${outputname}
+        fi
+
 
 done
diff --git a/SAS/CMakeLists.txt b/SAS/CMakeLists.txt
index 7ce21000870bdd2b68ce7919b8bc66040c1c1fe0..f2493e5907248fbd7bae55b3be0e381bc8be43ca 100644
--- a/SAS/CMakeLists.txt
+++ b/SAS/CMakeLists.txt
@@ -7,5 +7,6 @@ lofar_add_package(Scheduler)
 lofar_add_package(SAS_Feedback Feedback_Service)
 lofar_add_package(CleanupTool)
 lofar_add_package(OTDB_Services)
+lofar_add_package(XML_generator)
 
 add_subdirectory(ResourceAssignment)
diff --git a/SAS/XML_generator/CMakeLists.txt b/SAS/XML_generator/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5da62dd267da5f79042ef4442f1a24005f58bbe8
--- /dev/null
+++ b/SAS/XML_generator/CMakeLists.txt
@@ -0,0 +1,5 @@
+# $Id: CMakeLists.txt 33087 2015-12-03 08:24:17Z schaap $
+
+add_subdirectory(src)
+add_subdirectory(test)
+
diff --git a/SAS/XML_generator/src/CMakeLists.txt b/SAS/XML_generator/src/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b4c74e7c361a990bdb3022a33b99710cd7f81ae3
--- /dev/null
+++ b/SAS/XML_generator/src/CMakeLists.txt
@@ -0,0 +1,15 @@
+# $Id: CMakeLists.txt 33087 2015-12-03 08:24:17Z schaap $
+
+lofar_package(XML_generator 1.0)
+
+lofar_find_package(Python 2.6 REQUIRED)
+include(PythonInstall)
+
+python_install(
+    xmlgen.py
+    DESTINATION lofar/sas/xmlgenerator)
+
+lofar_add_bin_scripts(
+  xmlgen
+)
+
diff --git a/SAS/XML_generator/src/xmlgen b/SAS/XML_generator/src/xmlgen
new file mode 100755
index 0000000000000000000000000000000000000000..afb7c3391e82fc05d5dbe7d5e04f2c35766271a8
--- /dev/null
+++ b/SAS/XML_generator/src/xmlgen
@@ -0,0 +1,8 @@
+#! /usr/bin/env python
+
+import sys
+from lofar.sas.xmlgenerator.xmlgen import main
+
+if __name__ == "__main__":
+  main(sys.argv[1:])
+    
diff --git a/SAS/XML_generator/src/xmlgen.py b/SAS/XML_generator/src/xmlgen.py
new file mode 100755
index 0000000000000000000000000000000000000000..33ce1777e5af7d231c35d37a076f5b4c352714be
--- /dev/null
+++ b/SAS/XML_generator/src/xmlgen.py
@@ -0,0 +1,2254 @@
+#! /usr/bin/env python
+
+# XML generator prototype
+
+VERSION = "2.15.0"
+    
+import sys, getopt, time
+from xml.sax.saxutils import escape as XMLescape
+from os import _exit as os_exit
+from os.path import splitext
+from datetime import datetime,timedelta
+from math import pi
+import re
+
+CLOCK_MODES = ['160 MHz','200 MHz']
+INSTRUMENT_FILTERS = ["10-70 MHz", "30-70 MHz", "10-90 MHz", "30-90 MHz", "110-190 MHz", "170-230 MHz", "210-250 MHz"]
+ANTENNA_MODES = ["LBA Inner", "LBA Outer", "LBA Sparse Even", "LBA Sparse Odd", "LBA X", "LBA Y", "HBA Zero", "HBA Zero Inner", "HBA One", "HBA One Inner", "HBA Dual", "HBA Dual Inner", "HBA Joined", "HBA Joined Inner"]
+NUMBER_OF_BITS_PER_SAMPLE = [4,8,16]
+MAX_NR_SUBBANDS = [976,488,244]
+WHICH_IS = ['IQUV','I']
+WHICH_CS = ['IQUV','I','XXYY']
+WEIGHTING_SCHEMES = ['uniform', 'superuniform', 'natural', 'briggs', 'briggsabs', 'radial']
+IMAGING_PIPELINE_TYPES = ['MSSS','standard','none']
+#MODES = ['Calobs','Calbeam','MultiObs']
+PROCESSING = ['Preprocessing','Calibration','Pulsar','Imaging','LongBaseline','none']
+CALIBRATION_MODE = ['internal','external','none']
+ALL_STATIONS = 'CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,DE601,DE602,DE603,DE604,DE605,FR606,SE607,UK608,DE609,PL610,PL611,PL612'
+CORE_STATIONS = 'CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501'
+SUPERTERP_STATIONS = 'CS002,CS003,CS004,CS005,CS006,CS007'
+REMOTE_STATIONS = 'RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509'
+INTERNATIONAL_STATIONS = 'DE601,DE602,DE603,DE604,DE605,FR606,SE607,UK608,DE609,PL610,PL611,PL612'
+NL_STATIONS = 'CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509'
+
+RED_COLOR    = '\033[91m'
+NO_COLOR     = '\033[0m'
+YELLOW_COLOR = '\033[93m'
+CYAN_COLOR   = '\033[96m'
+GREEN_COLOR  = '\033[92m'
+#BLUE_COLOR   = '\033[94m'
+TRUE         = ['y','Y','YES','yes','t','T','True','true']
+FALSE        = ['n','N','NO','no','f','F','False','false']
+
+class GenException(Exception):
+  def __init__(self, message):
+    # Call the base class constructor with the parameters it needs
+    super(Exception, self).__init__(RED_COLOR + message + NO_COLOR)
+
+def merge_dicts(*dict_args):
+  '''
+  Given any number of dicts, shallow copy and merge into a new dict,
+  precedence goes to key value pairs in latter dicts.
+  '''
+  result = {}
+  for dictionary in dict_args:
+      result.update(dictionary)
+  return result
+
+def printMessage(message):
+  print(GREEN_COLOR + message + NO_COLOR)
+
+def printInfo(message):
+  print(CYAN_COLOR + 'INFO: ' + message + NO_COLOR)
+
+def printWarning(message):
+  print(YELLOW_COLOR + 'WARNING: ' + message + NO_COLOR)
+
+def dms2deg(dms_str):
+  arr = re.findall(r'\d+', dms_str)
+  while len(arr) < 4: # pad DMS string if not all of H,M,S are specified e.g. 20:10 will be 20:10:0.0
+    arr.append(0)
+
+  if dms_str[0].strip() == '-': #negative sign can only happen at the start of the string
+    sign = -1
+  else:
+    sign = 1
+  
+  arr[3] = float(arr[3]) / (10**len(str(arr[3])))
+
+  return sign * (abs(int(arr[0])) + float(arr[1]) / 60 + (float(arr[2]) + arr[3]) / 3600)
+
+def hms2deg(hms_str):
+  arr = re.findall(r'\d+', hms_str)
+  while len(arr) < 4: # pad HMS string if not all of H,M,S are specified e.g. 20:10 will be 20:10:0.0
+    arr.append(0)
+
+  #FIXME Probably we shouldn't even allow negatives, hour angles should be between 0 and 24
+  if hms_str[0].strip() == '-': #negative sign can only happen at the start of the string
+    sign = -1
+  else:
+    sign = 1
+  
+  arr[3] = float(arr[3]) / (10**len(str(arr[3])))
+    
+  return sign * (abs(int(arr[0])) + float(arr[1]) / 60 + (float(arr[2]) + arr[3]) / 3600) * 15
+
+def deg2rad(degrees):
+  return float(degrees) * pi / 180
+  
+def rad2deg(radian):
+  return float(radian) * 180 / pi
+
+# def convertAngle(number, angle, beamName): #TODO get one convertAngle function
+#   # try converting to degrees else radians else HMS
+#   if angle.endswith('deg') or angle.endswith('d'): # ra specified with 'deg' ?
+#     angle = angle.rstrip(' deg')
+#   else:
+#     try: # try radian units
+#       ra_deg = rad2deg(angle);
+#       angle = ra_deg
+#     except: # assuming hms
+#       if not (angle.endswith('s') or angle[-1].isdigit()):
+#         raise GenException("unkown coordinate: %s for angle%i of %s" % angle, number, beamName)
+#       angle = str(hms2deg(angle))
+#   return angle
+
+def convertAngle1(angle, beamName):
+  # try converting to degrees else radians else HMS
+  if angle.endswith('deg') or angle.endswith('d'): # ra specified with 'deg' ?
+    angle = angle.rstrip(' deg')
+  else:
+    try: # try radian units
+      ra_deg = rad2deg(angle);
+      angle = ra_deg
+    except: # assuming hms
+      if not (angle.endswith('s') or angle[-1].isdigit()):
+        raise GenException("unkown coordinate: %s for angle1 of %s" % angle, beamName)
+      angle = str(hms2deg(angle))
+  return angle
+
+def convertAngle2(angle, beamName):
+  # try converting to degrees else radians else HMS
+  if angle.endswith('deg') or angle.endswith('d'): # ra specified with 'deg' ?
+    angle = angle.rstrip(' deg')
+  else:
+    try: # try radian units
+      dec_deg = rad2deg(angle);
+      angle = dec_deg
+    except: # assuming dms
+      if not (angle.endswith('s') or angle[-1].isdigit()):
+        raise GenException("unkown coordinate: %s for angle2 of %s" % angle, beamName)
+      angle = str(dms2deg(angle))
+  return angle
+
+def parse_subband_list(parset_subband_list, nr_subbands):
+    r'''
+    Parse a subband list from a parset.
+
+    **Parameters**
+
+    parset_subband_list : string
+        Value of Observation.Beam[0].subbandList
+
+    **Returns**
+
+    A list of integers containing the subband numbers.
+
+    **Examples**
+
+
+    >>> parse_subband_list('[154..163,185..194,215..224,245..254,275..284,305..314,335..344,10*374]')
+    >>> parse_subband_list('[77..87,116..127,155..166,194..205,233..243,272..282,311..321]')
+    >>> parse_subband_list('[]')
+    '''
+    stripped_subband_list = parset_subband_list.strip('[] \n\t').replace(' ', '')
+    if stripped_subband_list == '':
+        return []
+    sub_lists = [word.strip().split('..') for word in stripped_subband_list.split(',')]
+    subbands = []
+    for sub_list in sub_lists:
+        if len(sub_list) == 1:
+            multiplication = sub_list[0].split('*')
+            if len(multiplication) == 2:
+                subbands += [int(multiplication[1])]*int(multiplication[0])
+            else:
+                subbands.append(int(sub_list[0]))
+        elif len(sub_list) == 2:
+            subbands += range(int(sub_list[0]), int(sub_list[1])+1)
+        else:
+            raise GenException(str(word) + ' is not a valid sub_range in a subband list')
+            return []
+    doubles = set([x for x in subbands if subbands.count(x) > 1])
+    if len(doubles) > 0:
+      printWarning(parset_subband_list + ' contains the following double specified subbands: %s' % sorted(doubles))
+    return subbands
+
+def verifySubbandList(keyname, parset_subband_list, nr_subbands):
+  subbandListCalculated = parse_subband_list(parset_subband_list, nr_subbands)
+  calcNrSubbands = len(subbandListCalculated)
+  if calcNrSubbands != int(nr_subbands):
+    raise GenException("%s error: calculated number of subbands (%i) is not equal to the specified number of subbands (%s)\nIs the subband list correct?") % (keyname, calcNrSubbands, nr_subbands)
+
+def readExtraParms(keyset, lines):
+  valListEsc = []
+  for line in lines:
+    if line.startswith(keyset + ":") or line.startswith(keyset + "="):
+      line = re.sub(r"\s+;", ';', line.lstrip(keyset).lstrip(":").lstrip("=").rstrip()) # clear white-space just before ';'
+      line = re.sub(r";\s+", ';', line) # clear white-space directly after ';' (this method intentionally does not clear white-space in the (string) parameters self!)
+      valList = line.split(';')
+      for strVal in valList:
+        valListEsc.append(XMLescape(strVal))
+  return valListEsc
+    
+def readTiedArrayBeams(lines):
+  tabs = []
+  stopTABsearch = False
+  try:
+    for line in lines:
+      if line.startswith("TAB") or line.startswith("Global_TAB"):
+        continue
+      else:
+        valList = line.lstrip().rstrip().replace(' ', '').split(';')
+        if valList[0].startswith('c'):
+          # angle1
+          if valList[1].endswith('deg') or valList[1].endswith('d'): # degree units?
+            valList[1] = deg2rad(valList[1].rstrip(' deg'))
+          else: #try radian else HMS
+            try: # if float conversion works assume radian
+              angle1 = float(valList[1]);
+              valList[1] = angle1
+            except: # float conversion did not work try hms
+              valList[1] = deg2rad(hms2deg(valList[1]))
+          # angle2
+          if valList[2].endswith('deg') or valList[2].endswith('d'): # degree units?
+            valList[2] = deg2rad(valList[2].rstrip(' deg'))
+          else: #try radian else HMS
+            try: # if float conversion works assume radian
+              angle2 = float(valList[2]);
+              valList[2] = angle2
+            except: # float conversion did not work try hms
+              valList[2] = deg2rad(dms2deg(valList[2]))
+          #if valList[2].endswith('deg') or valList[2].endswith('d'):
+            #valList[2] = deg2rad(valList[2].rstrip(' deg'))
+          tabs.append(valList)
+        elif valList[0].startswith('i'):
+          valList[1] = float(valList[1])
+          tabs.append(valList)
+  except:
+    raise GenException("An error occurred reading the TAB specification on line '%s'" % line)
+  return tabs
+
+def hasCoherentTab(TAB):
+  for i in range(0,len(TAB)):
+    if TAB[i][0] == 'c':
+      return True
+  return False
+
+##FIXME we will need to fill in actual values. Might need to depend on variables
+def processingCluster(cluster, number_of_tasks=244):
+  CEP2 = r"""  <processingCluster>
+                    <name>CEP2</name>
+                    <partition>/data</partition>
+                    <numberOfTasks>%i</numberOfTasks>
+                    <minRAMPerTask unit="byte">1000000000</minRAMPerTask>
+                    <minScratchPerTask unit="byte">100000000</minScratchPerTask>    
+                    <maxDurationPerTask>PT600S</maxDurationPerTask>
+                    <numberOfCoresPerTask>20</numberOfCoresPerTask>
+                    <runSimultaneous>true</runSimultaneous>
+                  </processingCluster>"""
+
+  CEP4 = r"""  <processingCluster>
+                    <name>CEP4</name>
+                    <partition>/data</partition>
+                    <numberOfTasks>%i</numberOfTasks>
+                    <minRAMPerTask unit="byte">1000000000</minRAMPerTask>
+                    <minScratchPerTask unit="byte">100000000</minScratchPerTask>    
+                    <maxDurationPerTask>PT600S</maxDurationPerTask>
+                    <numberOfCoresPerTask>20</numberOfCoresPerTask>
+                    <runSimultaneous>true</runSimultaneous>
+                  </processingCluster>"""
+
+  if cluster == "CEP4":
+    result = CEP4 % (number_of_tasks,)
+  else:
+    result = r"" #CEP2 % (number_of_tasks,)
+  return result
+
+def dataProductCluster(cluster):
+  CEP2 = r"""  <storageCluster>
+                      <name>CEP2</name>
+                      <partition>/data</partition>
+                    </storageCluster>"""
+  CEP4 = r"""<storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>"""
+
+  if cluster == "CEP4":
+    result = CEP4
+  else:
+    result = r"" #CEP2
+  return result
+
+def writeXMLObs(ofile, name, descr, topo, predecessor_topo, attrname, projname, TBBpiggyBack, aartfaacPiggyBack, cordata, cohdata, incohdata, antenna, clock, instrfilt, interval, channels,
+  cohdedisp, flysEye, subsperfileCS, colapseCS, downstepsCS, whichCS, subsperfileIS, colapseIS, downstepsIS, whichIS, stations, start, stop, duration, bitspersample):
+  print >>ofile, r"""          <item index="0">
+                <lofar:observation>
+                  <name>%s</name>
+                  <description>%s</description>
+                  <topology>%s</topology>
+                  <predecessor_topology>%s</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>%s</name>
+                    <projectName>%s</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>%s</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>%s</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>%s</correlatedData>
+                      <coherentStokesData>%s</coherentStokesData>
+                      <incoherentStokesData>%s</incoherentStokesData>
+                      <antenna>%s</antenna>
+                      <clock mode="%s"/>
+                      <instrumentFilter>%s</instrumentFilter>
+                      <integrationInterval>%s</integrationInterval>
+                      <channelsPerSubband>%s</channelsPerSubband>
+                      <coherentDedisperseChannels>%s</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>%s</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>%s</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>%s</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>%s</stokesDownsamplingStepsCS>
+                        <whichCS>%s</whichCS>
+                        <subbandsPerFileIS>%s</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>%s</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>%s</stokesDownsamplingStepsIS>
+                        <whichIS>%s</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>%s</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>%s</startTime>
+                      <endTime>%s</endTime>
+                      <duration>%s</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>%s</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>""" % (
+                  name, descr, topo, predecessor_topo, attrname, projname, writeBoolean(TBBpiggyBack), writeBoolean(aartfaacPiggyBack),
+                  writeBoolean(cordata), writeBoolean(cohdata), writeBoolean(incohdata), antenna, clock, instrfilt, interval, channels,
+                  writeBoolean(cohdedisp), writeBoolean(flysEye), subsperfileCS, colapseCS, downstepsCS, whichCS, 
+                  subsperfileIS, colapseIS, downstepsIS, whichIS, stations, start, stop, duration, bitspersample)
+
+def writeXMLBeam(ofile, name, description, topo, beamtype, target, ra, dec, subbands, flyseye, tabrings, tabringsize, tablist, dataproducts):
+  print >>ofile, r"""<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>%s</name>
+                        <description>%s</description>
+                        <topology>%s</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>%s</measurementType>
+                          <specification>
+                            <targetName>%s</targetName>
+                            <ra>%s</ra>
+                            <dec>%s</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>%s</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>%s</flyseye>
+                          <nrTabRings>%s</nrTabRings>
+                          <tabRingSize>%s</tabRingSize>
+                            <tiedArrayBeamList>
+                              %s
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                          %s
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>""" % ( name, description, topo, beamtype, target, ra, dec, subbands, writeBoolean(flyseye),
+                                   tabrings, tabringsize, tablist, dataproducts )
+                  
+def writeXMLObsEnd(ofile):
+  print >> ofile, r"""</children>
+                </lofar:observation>
+                </item>"""
+
+def writeTABXML(TAB):
+  strVal = r""
+  for i in range(0,len(TAB)):
+    if TAB[i][0] == 'c':
+      strVal += r"""                <tiedArrayBeam>
+                  <coherent>true</coherent>
+                  <angle1>%s</angle1>
+                  <angle2>%s</angle2>
+                </tiedArrayBeam>
+                """ % (TAB[i][1],TAB[i][2])
+    else:
+      strVal += r"""                <tiedArrayBeam>
+                  <coherent>false</coherent>
+                  <dispersionMeasure>%s</dispersionMeasure>
+                </tiedArrayBeam>
+                """ % (TAB[i][1])
+  strVal = strVal.rstrip() # strip off the last newline
+  return strVal
+
+def writeBBSParameters(ofile, bbsParameters):
+  print >> ofile, r"""            <bbsParameters>
+              <baselines>%s</baselines>
+              <correlations>%s</correlations>
+              <beamModelEnable>%s</beamModelEnable>
+              <solveParms>%s</solveParms>
+              <solveUVRange>%s</solveUVRange>
+              <strategyBaselines>%s</strategyBaselines>
+              <strategyTimeRange>%s</strategyTimeRange>
+            </bbsParameters>""" % (bbsParameters[0], bbsParameters[1], writeBoolean(bbsParameters[2]), bbsParameters[3], bbsParameters[4], bbsParameters[5], bbsParameters[6])
+  ##TODO % {"baselines":, "correlations":, writeBoolean("beamenable":), "solveparms":, "solveuvrange":, "strategybaselines":, "strategytimerange":}
+
+def writeDemixParameters(ofile, demixParameters):
+  print >> ofile, r"""                  <demixingParameters>
+                    <averagingFreqStep>%s</averagingFreqStep>
+                    <averagingTimeStep>%s</averagingTimeStep>
+                    <demixFreqStep>%s</demixFreqStep>
+                    <demixTimeStep>%s</demixTimeStep>
+                    <demixAlways>%s</demixAlways>
+                    <demixIfNeeded>%s</demixIfNeeded>
+                    <ignoreTarget>%s</ignoreTarget>
+                  </demixingParameters>""" % (demixParameters[0], demixParameters[1], demixParameters[2], demixParameters[3], demixParameters[4], demixParameters[5], writeBoolean(demixParameters[6])) ##TODO writeBoolean() Might be reduntant? Should do the conversion earlier
+  ##TODO % {"averagingFreqStep":, "averagingTimeStep":, "demixFreqStep":, "demixTimeStep":, writeBoolean("demixAlways":), writeBoolean("demixIfNeeded":), writeBoolean("ignoreTarget":)}
+
+def writeXMLTargetPipeline(ofile, topo, pred_topo, name, descr, defaulttemplate, flagging,
+                           duration, demixParameters, bbsParameters, uvintopo, uvinname,
+                           instrintopo, instrinname, uvoutname, uvouttopo, storageCluster) :
+  stor_cluster = dataProductCluster(storageCluster)
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>%s</topology>
+                    <predecessor_topology>%s</predecessor_topology>
+                    <name>%s</name>
+                    <description>%s (%s)</description>""" % (topo, pred_topo, name, name, descr)
+  if proc_cluster:
+    print >> ofile, proc_cluster
+  print >> ofile, r"""                    <pipelineAttributes>
+                      <defaultTemplate>%s</defaultTemplate>
+                      <flaggingStrategy>%s</flaggingStrategy>
+                      <duration>%s</duration>""" % (defaulttemplate, flagging, duration)
+  writeDemixParameters(ofile, demixParameters)
+  ##TODO if bbsParameters: ??
+  writeBBSParameters(ofile, bbsParameters)
+  print >> ofile, r"""</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="%s">
+                          <name>%s</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="%s">
+                          <name>%s</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>%s</name>
+                            <topology>%s</topology>
+                            <status>no_data</status>
+                            %s
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>""" % (uvintopo, uvinname, instrintopo, instrinname, uvoutname, uvouttopo, stor_cluster)                
+
+def writeXMLCalPipe(ofile, topo, pred_topo, name, descr, defaulttemplate, flagging, duration, skymodel, demixParameters, 
+                    bbsParameters, uvintopo, instroutname, instrouttopo, uvouttopo, storageCluster) :
+  stor_cluster = dataProductCluster(storageCluster)
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>%s</topology>
+                <predecessor_topology>%s</predecessor_topology>
+                <name>%s</name>
+                <description>%s (%s)</description>""" %(topo, pred_topo, name, name, descr)
+  if proc_cluster:
+    print >> ofile, proc_cluster
+  print >> ofile, r"""                <pipelineAttributes>
+                  <defaultTemplate>%s</defaultTemplate>
+                  <flaggingStrategy>%s</flaggingStrategy>
+                  <duration>%s</duration>
+                  <skyModelDatabase>%s</skyModelDatabase>""" % (defaulttemplate, flagging, duration, skymodel)
+  writeDemixParameters(ofile, demixParameters)
+  ##TODO if bbsParameters: ??
+  writeBBSParameters(ofile, bbsParameters)
+  print >> ofile, r"""</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="%s">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>""" % (uvintopo, instroutname, instrouttopo, stor_cluster, uvouttopo, uvouttopo, stor_cluster)
+
+def writeXMLAvgPipeline(ofile, topo, pred_topo, name, descr, defaulttemplate, flagging, duration, 
+                        demixParameters, uvintopo, uvouttopo, storageCluster) :
+  stor_cluster = dataProductCluster(storageCluster)
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>%s</topology>
+                <predecessor_topology>%s</predecessor_topology>
+                <name>%s</name>
+                <description>%s (%s)</description>""" % (topo, pred_topo, name, name, descr)
+  if proc_cluster:
+    print >> ofile, proc_cluster
+  print >> ofile, r"""                <pipelineAttributes>
+                  <defaultTemplate>%s</defaultTemplate>
+                  <flaggingStrategy>%s</flaggingStrategy>
+                  <duration>%s</duration>""" % (defaulttemplate, flagging, duration)
+  writeDemixParameters(ofile, demixParameters)
+  print >> ofile, r"""</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="%s">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>""" % (uvintopo, uvouttopo, uvouttopo, stor_cluster)
+                   
+def writeXMLPulsarPipe(ofile, topo, pred_topo, name, descr, defaulttemplate, duration, bfintopo, pouttopo, storageCluster, _2bf2fitsExtraOpts, _8bitConversionSigma, 
+            decodeNblocks, decodeSigma, digifilExtraOpts, dspsrExtraOpts, dynamicSpectrumTimeAverage, nofold, nopdmp, norfi, 
+            prepdataExtraOpts, prepfoldExtraOpts, prepsubbandExtraOpts, pulsar, rawTo8bit, rfifindExtraOpts, rrats, singlePulse, 
+            skipDsps, skipDynamicSpectrum, skipPrepfold, tsubint) :
+  stor_cluster = dataProductCluster(storageCluster)
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>%s</topology>
+                <predecessor_topology>%s</predecessor_topology>
+                <name>%s</name>
+                <description>%s (%s)</description>""" % (topo, pred_topo, name, name, descr)
+  if proc_cluster:
+    print >> ofile, proc_cluster
+  print >> ofile, r"""                <pipelineAttributes>
+                  <defaultTemplate>%s</defaultTemplate>
+                  <duration>%s</duration>
+                  <_2bf2fitsExtraOpts>%s</_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma>%s</_8bitConversionSigma>
+                  <decodeNblocks>%s</decodeNblocks>
+                  <decodeSigma>%s</decodeSigma>
+                  <digifilExtraOpts>%s</digifilExtraOpts>
+                  <dspsrExtraOpts>%s</dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage>%s</dynamicSpectrumTimeAverage>
+                  <nofold>%s</nofold>
+                  <nopdmp>%s</nopdmp>
+                  <norfi>%s</norfi>
+                  <prepdataExtraOpts>%s</prepdataExtraOpts>
+                  <prepfoldExtraOpts>%s</prepfoldExtraOpts>
+                  <prepsubbandExtraOpts>%s</prepsubbandExtraOpts>
+                  <pulsar>%s</pulsar>
+                  <rawTo8bit>%s</rawTo8bit>
+                  <rfifindExtraOpts>%s</rfifindExtraOpts>
+                  <rrats>%s</rrats>
+                  <singlePulse>%s</singlePulse>
+                  <skipDsps>%s</skipDsps>
+                  <skipDynamicSpectrum>%s</skipDynamicSpectrum>
+                  <skipPrepfold>%s</skipPrepfold>
+                  <tsubint>%s</tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="%s">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>""" % (defaulttemplate, duration, _2bf2fitsExtraOpts, _8bitConversionSigma, 
+            decodeNblocks, decodeSigma, digifilExtraOpts, dspsrExtraOpts, dynamicSpectrumTimeAverage,
+            writeBoolean(nofold), writeBoolean(nopdmp), writeBoolean(norfi), 
+            prepdataExtraOpts, prepfoldExtraOpts, prepsubbandExtraOpts, pulsar, writeBoolean(rawTo8bit),
+            rfifindExtraOpts, writeBoolean(rrats), writeBoolean(singlePulse), 
+            writeBoolean(skipDsps), writeBoolean(skipDynamicSpectrum), writeBoolean(skipPrepfold), tsubint, 
+            bfintopo, pouttopo, pouttopo, stor_cluster)
+
+#nv 13okt2014: #6716 - Implement Long Baseline Pipeline     
+def writeXMLLongBaselinePipe(ofile, topo, pred_topo, name, descr, defaulttemplate, duration,
+  subbands_per_subbandgroup, subbandgroups_per_ms, uvintopo, uvouttopo, storageCluster):
+  stor_cluster = dataProductCluster(storageCluster)
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>%s</topology>
+                <predecessor_topology>%s</predecessor_topology>
+                <name>%s</name>
+                <description>%s (%s)</description>""" % (topo, pred_topo, name, name, descr)
+  if proc_cluster:
+    print >> ofile, proc_cluster
+  print >> ofile, r"""                <pipelineAttributes>
+                  <defaultTemplate>%s</defaultTemplate>
+                  <duration>%s</duration>
+                  <subbandsPerSubbandGroup>%s</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>%s</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="%s">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>""" % (defaulttemplate, duration, subbands_per_subbandgroup, subbandgroups_per_ms, 
+            uvintopo, uvouttopo, uvouttopo, stor_cluster)  
+
+def writeDataProducts(dataTopo, correlatedData, coherentStokesData, incoherentStokesData, storageCluster):
+  strVal = r""
+  if correlatedData:
+    dataTopoStr = dataTopo + '.uv.dps'
+    strVal += r"""                <item>
+                    <lofar:uvDataProduct>
+                    <name>%s</name>
+                    <topology>%s</topology>
+                    <status>no_data</status>
+                    %s
+                    </lofar:uvDataProduct>
+                  </item>
+                  """ % (dataTopoStr, dataTopoStr, dataProductCluster(storageCluster))
+  if coherentStokesData | incoherentStokesData:
+    if coherentStokesData & ~incoherentStokesData:
+      dataTopoStr = dataTopo + '.cs'
+    elif incoherentStokesData & ~coherentStokesData:
+      dataTopoStr = dataTopo + '.is'
+    else:
+      dataTopoStr = dataTopo + '.csis'
+    strVal += r"""                <item>
+                    <lofar:bfDataProduct>
+                    <name>%s</name>
+                    <topology>%s</topology>
+                    <status>no_data</status>
+                    %s
+                    </lofar:bfDataProduct>
+                  </item>
+                  """ % (dataTopoStr, dataTopoStr, dataProductCluster(storageCluster))               
+  strVal = strVal.rstrip() # strip off the last newline
+  return strVal
+
+def writeImagingPipelineInputDataproducts(ofile, topologyList):
+  print >> ofile, r"""                <usedDataProducts>"""
+  for topology in topologyList:
+    print >> ofile, r"""                <item>
+              <lofar:uvDataProduct topology="%s">
+                <name>%s</name>
+              </lofar:uvDataProduct>
+            </item>""" % (topology, topology)
+  print >> ofile, r"""               </usedDataProducts>"""
+
+def writeSkyImageOutputDataproduct(ofile, topology, storageCluster):
+  stor_cluster = dataProductCluster(storageCluster)
+  print >> ofile, r"""                <resultDataProducts>
+                  <item>
+                    <lofar:skyImageDataProduct>
+                      <name>%s</name>
+                      <topology>%s</topology>
+                      <status>no_data</status>
+                      %s
+                    </lofar:skyImageDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>""" % (topology, topology, stor_cluster)
+
+def writeFolderStart(ofile, packageName, packageDescription, processing):
+  print >>ofile, r"""   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>%s</name>
+          <description>%s (%s)</description>
+          <children>""" % (packageName, packageDescription, processing)
+
+def writeFolderEnd(ofile):
+  print >> ofile, r"""</children>
+  </lofar:folder>
+  </item>"""
+
+def writeBoolean(booleanValue):
+  if booleanValue == '':
+    return ''
+  elif booleanValue:
+    return 'true'
+  else:
+    return 'false'
+  
+def toBool(strVal):
+  strVal = strVal.rstrip().lstrip()
+  if strVal.rstrip() in TRUE:
+    return True
+  elif strVal in FALSE:
+    return False
+  #TODO I think we want something else here?
+  elif strVal == '':
+    return ''
+  else:
+    raise GenException(strVal + " could not be represented as a boolean value")
+
+def writeProjectStart(ofile, version, projectName):
+  print >>ofile, r"""<?xml version="1.0" encoding="UTF-8"?>
+  <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+  <version>%s</version>
+  <template version="%s" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+  <description>XML Template generator version %s</description>
+  </template>
+  <name>%s</name>
+  <children>""" % (version, version, version, projectName)
+
+def writeProjectEnd(ofile):
+  print >> ofile, r"""          </children>
+  </lofar:project>"""
+
+def writeMainFolderStart(ofile, mainFolderName, mainFolderDescription):
+  print >>ofile, r"""   <item index="0">
+    <lofar:folder topology_parent="false">
+    <name>%s</name>
+    <description>%s</description>
+    <children>""" % (mainFolderName, mainFolderDescription)
+
+def writeMainFolderEnd(ofile):
+  print >> ofile, r"""</children>
+  </lofar:folder>
+  </item>"""
+
+def writeImagingPipelineXML(ofile, input_list, bbsParameters, storageCluster):
+  proc_cluster = processingCluster(storageCluster)
+  print >> ofile, r"""<item index="0">
+        <lofar:pipeline xsi:type="lofar:%(imaging_pipe_type)s">
+          <topology>%(imaging_pipe_topology)s</topology>
+          <predecessor_topology>%(imaging_pipe_predecessors_string)s</predecessor_topology>
+          <name>%(imaging_pipe_name)s</name>
+          <description>%(imaging_pipe_name)s (Imaging pipeline beam %(beamNr)s)</description>
+          <imagingPipelineAttributes>
+            <defaultTemplate>%(imaging_pipe_default_template)s</defaultTemplate>
+            <duration>%(imaging_pipe_duration)s</duration>
+            <nrOfOutputSkyImage>%(nrImages)s</nrOfOutputSkyImage>
+            <imagingParameters>
+              <nrSlicesPerImage>%(nrRepeats)s</nrSlicesPerImage>
+              <nrSubbandsPerImage>%(nrSubbandsPerImage)s</nrSubbandsPerImage>
+              <maxBaseline>%(maxBaseline)s</maxBaseline>
+              <fieldOfView>%(fieldOfView)s</fieldOfView>
+              <weight>%(weightingScheme)s</weight>
+              <robust>%(robustParameter)s</robust>
+              <iterations>%(nrOfIterations)s</iterations>
+              <threshold>%(cleaningThreshold)s</threshold>
+              <uvMin>%(uvMin)s</uvMin>
+              <uvMax>%(uvMax)s</uvMax>
+              <stokes>%(stokesToImage)s</stokes>
+            </imagingParameters>""" % (input_list)
+  if bbsParameters:
+    writeBBSParameters(ofile, bbsParameters)
+  print >> ofile, r"""
+          </imagingPipelineAttributes>"""
+
+def parseOptions(argv):
+  inputfile = ''
+  outputfile = ''
+  
+  try:
+    opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
+  except getopt.GetoptError:
+    print 'xmlgen.py -i <inputfile> [-o <outputfile>]'
+    sys.exit(2)
+    
+  if len(opts) == 0:
+    print 'usage: xmlgen.py -i <inputfile> [-o <outputfile>]'
+    sys.exit(2)    
+
+  for opt, arg in opts:
+    if opt == '-h':
+      print 'usage: xmlgen.py -i <inputfile> [-o <outputfile.xml>]'
+      sys.exit()
+    elif opt in ("-i", "--ifile"):
+      inputfile = arg
+    elif opt in ("-o", "--ofile"):
+      outputfile = arg
+
+  if (outputfile == inputfile):
+    raise GenException("Output file'" + outputfile + "' has the same name as inputfile")
+  if len(outputfile):
+    print "Writing output xml file: " + outputfile
+  else:
+    outputfile = splitext(inputfile)[0] + '.xml'
+    print "Output file not specified, writing output xml file:'" + outputfile + "'"
+  return (inputfile, outputfile)
+
+def processInput(inputfile):
+  ifile = open(inputfile, 'r')
+  lines = ifile.readlines()
+  header = []
+  blocks = []
+  block  = []
+  block_count = 0
+  for l in lines:
+    line = l.strip()
+    if line: ##skipping empty lines
+      if not line[0] == "#": #skipping comments
+        if "BLOCK" in line:
+          if block_count == 0:
+            header = block
+          else:
+            if len(block) > 1: #We have at least BLOCK
+              blocks.append(block)
+            else:
+              printWarning("BLOCK %i was found to be empty" % block_count)
+          block = []
+          block_count += 1
+        stripped_line = line.split('#')[0]
+        if stripped_line: #Not sure if this can happen?
+          block.append(stripped_line)
+  if len(block) > 1: #We have at least BLOCK
+    blocks.append(block)
+  else:
+    printWarning("BLOCK %i was found to be empty" % block_count)
+  ifile.close()
+  return (header, blocks)
+  
+def wrongCombiError():
+  #TODO check if this list matches the actual code, replace it with a print of the define?
+  raise GenException("the combination of antennaMode, clock and instrumentFilter is not a valid combination, should be one of:\n \
+  LBA - 160 MHz > '10-70 MHz', '30-70 MHz'\n \
+  LBA - 200 MHz > '10-90 MHz', '30-90 MHz'\n \
+  HBA - 160 MHz > '170-230 MHz'\n \
+  HBA - 200 MHz > '110-190 MHz', '210-250 MHz'")
+
+def readProcessing(value):
+  if value:
+    processing = value
+    try:
+      p = PROCESSING.index(processing)+1
+    except ValueError:
+      raise GenException("the specified processing '" + processing + "' is not recognized. It should be one of %s" % ", ".join(PROCESSING))
+    print "processing = %s" % processing
+  else:
+    processing = ''
+  return processing
+
+def readKeyValuePair(line):
+  if not '=' in line: #TODO print line/linenumber
+    raise GenException("'=' not found in line that should have one!")
+  split = line.split('=')
+  key = split[0].strip()
+  if not key: #TODO print line/linenumber
+    raise GenException("Found a line starting with '='!")
+  if len(split) < 2:
+    value = ''
+  else:
+    value = split[1].strip()
+  if len(split) > 2:
+    raise GenException("Found a line with multiple '='s")
+  return key, value  
+
+def readBoolKey(keyname, value):
+  if value:
+    key = toBool(value)
+    print "%s = %s" % (keyname, value)
+  else:
+    raise GenException("the %s has not been specified" % keyname)
+  return key
+
+def readStringKey(keyname, value):
+  if value:
+    key = value
+    print "%s = %s" % (keyname, value)
+  else:
+    raise GenException("the %s has not been specified" % keyname)
+  return key
+
+def readIntKey(keyname, value):
+  if value:
+    key = int(value) #TODO try: ?
+    print "%s = %s" % (keyname, key)
+  else:
+    raise GenException("the calibratorDuration_s has not been specified")
+  return key
+
+def readFloatKey(keyname, value):
+  if value:
+    key = float(value) #TODO try: ?
+    print "%s = %s" % (keyname, key)
+  else:
+    raise GenException("the calibratorDuration_s has not been specified")
+  return key
+
+def readListKey(keyname, value):
+  if keyname == "whichIS": keylist = WHICH_IS
+  if keyname == "whichCS": keylist = WHICH_CS
+  if keyname == "imagingPipeline": keylist = IMAGING_PIPELINE_TYPES
+  if keyname == "clock": keylist = CLOCK_MODES
+  if keyname == "instrumentFilter": keylist = INSTRUMENT_FILTERS
+  if keyname == "antennaMode": keylist = ANTENNA_MODES
+  if keyname == "weightingScheme": keylist = WEIGHTING_SCHEMES
+  if keyname == "calibration": keylist = CALIBRATION_MODE
+  if value:
+    key = value
+    if key not in keylist:
+      raise GenException("the %s parameter '%s' not correct. Should be one of %s" % (keyname, value, ", ".join(keylist)))
+    print "%s = %s" % (keyname, key)
+  else: #TODO added this as it seemed to make sense?
+    raise GenException("the %s has not been specified" % keyname)
+  return key
+
+def readIntListKey(keyname, value):
+  if keyname == "numberOfBitsPerSample": keylist = NUMBER_OF_BITS_PER_SAMPLE
+  if value:
+    key = int(value) #TODO try?
+    if key not in keylist:
+      raise GenException("the %s parameter '%s' not correct. Should be one of %s" % (keyname, value, str(keylist)))
+    print "%s = %s" % (keyname, key)
+  else: #TODO added this as it seemed to make sense?
+    raise GenException("the %s has not been specified" % keyname)
+  return key
+
+def processHeader(header):
+  for line in header:
+    key, value = readKeyValuePair(line)
+    if key == "projectName":
+      projectName = readStringKey("projectName", value)
+    elif key == "mainFolderName":
+      mainFolderName = readOptionalStringKey("mainFolderName", value)
+    elif key == "mainFolderDescription":
+      mainFolderDescription = readOptionalStringKey("mainFolderDescription", value)
+  return projectName, mainFolderName, mainFolderDescription
+
+def readOptionalStringKey(keyname, value):
+  if value:
+    key = value
+    print "%s = %s" % (keyname, value)
+  else:
+    printWarning("The %s has not been specified" % keyname)
+    key = "" #TODO put in some dummy description?
+  return key
+
+def readPackageTag(value):
+  if value:
+    packageTag = value
+    if len(packageTag) > 8:
+      raise GenException("the package tag:'" + packageTag + "' is too long. Max 8 characters.") 
+    print "package tag = %s" % packageTag
+  else:
+    packageTag = ''
+    print "no package tag will be used."
+  return packageTag
+
+def readStartTimeUTC(value):
+  if value:
+    startTimeUTC = value
+    startTime = datetime.strptime(startTimeUTC, '%Y-%m-%d %H:%M:%S')
+    print "start time (UTC) = %s" % startTime.strftime('%b %d %Y %H:%M:%S')
+    set_starttime = True
+  return startTime, set_starttime
+
+def readTimeStep(number, value):
+  if value:
+    timeStep = int(value)
+    print "time step%i = %s seconds" % (number, timeStep)
+  else:
+    timeStep = ''
+  return timeStep
+
+def readStationList(value):
+  if value:
+    stationList = ','.join(sorted(set(value.replace('core',CORE_STATIONS).replace('superterp',SUPERTERP_STATIONS).replace('remote',REMOTE_STATIONS).replace('international',INTERNATIONAL_STATIONS).replace('all',ALL_STATIONS).replace('NL',NL_STATIONS).replace('nl',NL_STATIONS).replace('dutch',NL_STATIONS).split(','))))
+    print "stations = %s" % stationList
+  else:
+    raise GenException("the stationList has not been specified")
+  return stationList
+
+def readCreate_extra_ncp_beam(value):
+  if value:
+    create_extra_ncp_beam = toBool(value) #TODO toBool can return True, False or ''
+    if create_extra_ncp_beam:
+      print "extra ncp beam will be created"
+    else:
+      print "extra ncp beam will not be created"
+  else:
+    raise GenException("create_extra_ncp_beam has not been specified")
+  return create_extra_ncp_beam
+
+def readGlobalBBS(value):
+  globalBBS = ['','','','true','','','','']
+  if value:
+    valList = value.split(';')
+    for i in range(0,len(valList)):
+      globalBBS[i] = XMLescape(valList[i])
+    globalBBS[3] = toBool(globalBBS[3])
+  return globalBBS
+
+def readImagingBBS(value):
+  imagingBBS = ['','','true','','','','']
+  if value:
+    valList = value.split(';')
+    for i in range(0,len(valList)):
+      imagingBBS[i] = XMLescape(valList[i])
+    imagingBBS[2] = toBool(imagingBBS[2])
+  return imagingBBS
+
+def readGlobalDemix(value):
+  globalDemix = ['','','','','','','']
+  if value:
+    valList = value.split(';')
+    for i in range(0,len(valList)):
+      globalDemix[i] = valList[i]
+    if (globalDemix[0] != '') and (globalDemix[2] != ''):
+      if int(globalDemix[2]) % int(globalDemix[0]) <> 0: #TODO try ?
+        raise GenException("demixFreqStep (" + globalDemix[2] + ") should be integer multiple of averagingFreqStep (" + globalDemix[0] + ") for globalDemix")
+      globalDemix[6] = toBool(globalDemix[6]) # convert ignoreTarget to bool
+  return globalDemix
+
+def readGlobalPulsar(value):
+  globalPulsar = ['','','','','','','','','','','','','','','','','','','','','','']
+  if value:
+    valList = re.sub(r"\s+;", ';', value) # clear white-space just before ';'
+    valList = re.sub(r";\s+", ';', valList).split(';') # clear white-space directly after ';' (this method intentionally does not clear white-space in the (string) parameters self!)
+    for i in range(0,len(valList)):
+      globalPulsar[i] = XMLescape(valList[i])
+    globalPulsar[1] = toBool(globalPulsar[1]) # singlePulse
+    globalPulsar[2] = toBool(globalPulsar[2]) # rawTo8bit
+    globalPulsar[7] = toBool(globalPulsar[7]) # norfi
+    globalPulsar[8] = toBool(globalPulsar[8]) # nofold
+    globalPulsar[9] = toBool(globalPulsar[9]) # nopdmp
+    globalPulsar[10] = toBool(globalPulsar[10]) # skipDsps
+    globalPulsar[11] = toBool(globalPulsar[11]) # rrats
+    globalPulsar[19] = toBool(globalPulsar[19]) # skipDynamicSpectrum
+    globalPulsar[20] = toBool(globalPulsar[20]) # skipPrepfold
+  return globalPulsar
+
+def readGlobalSubbands(value):
+  if value:
+    globalSubbands = value.replace(' ','').split(';')
+    if (len(globalSubbands) == 2) and (globalSubbands[1].rstrip() != ''):
+      verifySubbandList("Global_Subbands", globalSubbands[0], globalSubbands[1])
+    else:
+      raise GenException("Global_Subbands error: not enough parameters specified. Should be: subband list;nr_subbands")
+  else:
+    raise GenException("Global_Subbands specified incorrectly")
+  return globalSubbands
+
+def readGlobalTABrings(value):
+  if value:
+    globalTABrings = value.split(';')
+    if (len(globalTABrings) == 2) and (globalTABrings[1].rstrip() != ''):
+      globalTABrings[0] = int(globalTABrings[0]) # nrTABrings
+      if globalTABrings[1].endswith('deg') or globalTABrings[1].endswith('d'):
+        globalTABrings[1] = deg2rad(globalTABrings[1].rstrip(' deg'))
+      else:
+        globalTABrings[1] = float(globalTABrings[1]) # TAB ring size
+  else:
+    globalTABrings = []
+  return globalTABrings
+
+def findBeamSpecs(startLine, lines):
+  beams = []
+  beamSpec = ''
+  for lineNr in range(startLine, len(lines)):
+    line = lines[lineNr]
+    if line[:1].isdigit(): #startswith a digit, new beam
+      if beamSpec: #save previous found one
+        beam = {'beam': beamSpec, 'pipelines': pipelines, "TABs":TABs}
+        beams.append(beam)
+      beamSpec = line
+      pipelines = []
+      TABs = []
+    if line.startswith(('BBS','Demix','Pulsar')): #Can contain '='
+      pipelines.append(line)
+    elif '=' in line: #key=value pair, so end of beam spec
+      break;
+    if line.startswith(('TAB','c;','i;')):
+      TABs.append(line)
+  if beamSpec: # save last found one
+    beam = {'beam': beamSpec, 'pipelines': pipelines, "TABs":TABs}
+    beams.append(beam)
+  return beams
+
+def readCalibratorBeam(startLine, lines, globalSubbands, globalTABrings, globalBBS, globalDemix, globalTAB, coherentStokesData, flysEye):
+  printInfo("found a calibrator beam")
+  beamspecs = findBeamSpecs(startLine, lines)
+  if len(beamspecs) < 1:
+    raise GenException("the calibration beam is not specified")
+  #TODO currently only one Calibrator Beam?
+  beam      = beamspecs[0]["beam"]
+  pipelines = beamspecs[0]["pipelines"]
+  TABs      = beamspecs[0]["TABs"]
+
+  nr_parms = beam.count(';') + 1
+  if nr_parms > 9:
+    raise GenException("too many parameters for calibrator beam: " + beam)
+  elif nr_parms < 8:
+    raise GenException("too few parameters for calibrator beam: " + beam)
+  else:
+    calibratorBeam = beam.replace(' ;',';').replace('; ',';').split(';')
+    if nr_parms == 9:
+      try:
+        calibratorBeam[8] = int(calibratorBeam[8]) # the (optionally specified) duration of the pipeline
+      except:
+        raise GenException("the specified pipeline duration: " + calibratorBeam[8] + " needs to be an integer value in seconds")
+    else:
+      calibratorBeam.append(0)
+    
+    # convert coordinated HMS to degrees
+    # Right Ascension
+    calibratorBeam[0] = convertAngle1(calibratorBeam[0], "calibratorBeam")
+    # declination
+    calibratorBeam[1] = convertAngle2(calibratorBeam[1], "calibratorBeam")
+    
+    if not calibratorBeam[3]:
+      if globalSubbands:
+        calibratorBeam[3] = globalSubbands[0]
+        calibratorBeam[4] = globalSubbands[1]
+      else:
+        raise GenException("No subbands specified for the calibrator beam")
+    else:
+      verifySubbandList("calibratorBeam", calibratorBeam[3], calibratorBeam[4])
+    
+    if not calibratorBeam[5]: # TABrings specified?
+      if globalTABrings:
+        calibratorBeam[5] = globalTABrings[0]
+        calibratorBeam[6] = globalTABrings[1]
+    else:
+      calibratorBeam[5] = int(calibratorBeam[5]) # nrTABrings
+      if calibratorBeam[6].endswith('deg') or calibratorBeam[6].endswith('d'):
+        calibratorBeam[6] = deg2rad(calibratorBeam[6].rstrip(' deg'))
+      else:
+        calibratorBeam[6] = float(calibratorBeam[6]) # TAB ring size
+        
+    calibratorBeam[7] = toBool(calibratorBeam[7]) # create pipeline?
+    create_calibrator_pipeline = calibratorBeam[7]
+    print ("right ascenscion:" + str(calibratorBeam[0]) + " declination:" + str(calibratorBeam[1]) + " target:" + calibratorBeam[2] + " subbands:" + calibratorBeam[3] + " nrSubbands:" + calibratorBeam[4] + " create pipeline:" + str(calibratorBeam[7]))
+    
+    if create_calibrator_pipeline:
+      BBSDefault      = ['','','','true','','','','']
+      DemixDefault    = ['','','','','','','']
+      calibratorBBS   = [] #Can now be a list of pipelines per beam
+      calibratorDemix = []
+      for pipeline in pipelines:
+        if pipeline.startswith("BBS"):
+          calibratorBBS.append(BBSDefault)
+          calBBS = readExtraParms("BBS", [pipeline])
+          if len(calBBS) > 0:
+            for i in range(0,len(calBBS)):
+              calibratorBBS[-1][i] = calBBS[i]
+            calibratorBBS[-1][3] = toBool(calibratorBBS[-1][3])
+          elif globalBBS != []:
+            printInfo('Using global BBS settings for Calibrator beam pipeline')
+            for i in range(0,len(globalBBS)):
+              calibratorBBS[-1][i] = globalBBS[i]
+      
+        if pipeline.startswith("Demix"):
+          calibratorDemix.append(DemixDefault)
+          calDemix = readExtraParms("Demix", [pipeline])
+          if len(calDemix) > 0:
+            for i in range(0,len(calDemix)):
+              calibratorDemix[-1][i] = calDemix[i]
+            if (calibratorDemix[-1][0] != '') and (calibratorDemix[-1][2] != ''):
+              if int(calibratorDemix[-1][2]) % int(calibratorDemix[-1][0]) <> 0:
+                raise GenException("demixFreqStep (" + calibratorDemix[-1][2] + ") should be integer multiple of averagingFreqStep (" + calibratorDemix[-1][0] + ") for calibrator beam pipeline")
+            calibratorDemix[-1][6] = toBool(calibratorDemix[-1][6])
+          elif globalDemix != []:
+              printInfo('Using global demix settings for Calibrator beam pipeline')
+              for i in range(0,len(globalDemix)):
+                calibratorDemix[-1][i] = globalDemix[i]
+    
+    calibratorTAB = readTiedArrayBeams(TABs)
+    if not calibratorTAB:
+      if globalTAB:
+        printInfo('Using global TABs for calibrator beam')
+        calibratorTAB = globalTAB #TODO check no possibility for globalTABrings?
+    if coherentStokesData and not (hasCoherentTab(calibratorTAB) or flysEye):
+      raise GenException("CalibratorBeam: no coherent TAB specified while coherent Stokes data requested")
+
+    if not calibratorBBS:
+      calibratorBBS.append(BBSDefault)
+      if globalBBS:
+        printInfo('Using global BBS settings for pipeline(s) coupled to Calibrator beam')
+        for i in range(0,len(globalBBS)):
+          calibratorBBS[-1][i] = globalBBS[i]
+
+    if not calibratorDemix:
+      calibratorDemix.append(DemixDefault)
+      if globalDemix:
+        printInfo('Using global demix settings for pipeline(s) coupled to Calibrator beam')
+        for i in range(0,len(globalDemix)):
+          calibratorDemix[-1][i] = globalDemix[i]
+
+  return calibratorBeam, calibratorBBS, calibratorDemix, calibratorTAB, create_calibrator_pipeline
+
+def readTargetBeams(startLine, lines, globalSubbands, globalBBS, globalDemix, globalPulsar, globalTAB, globalTABrings, coherentStokesData, flysEye, numberOfBitsPerSample):
+  printInfo('found the target beams')
+  beamspecs = findBeamSpecs(startLine, lines)
+  if len(beamspecs) < 1:
+    raise GenException("the target beams are not specified")
+  targetBeams  = []
+  targetTAB    = []
+  targetBBS    = []
+  targetDemix  = []
+  targetPulsar = []
+  nr_beams     = 0
+
+  for beamspec in beamspecs:
+    beam      = beamspec["beam"]
+    pipelines = beamspec["pipelines"]
+    TABs      = beamspec["TABs"]
+    nr_parms = beam.count(';') + 1
+    if nr_parms > 9:
+      raise GenException("too many parameters for target beam: " + beam)
+    elif nr_parms < 8:
+      raise GenException("too few parameters for target beam: " + beam)
+    else:
+      targetBeams.append(beam.replace(' ;',';').replace('; ',';').split(';'))
+      
+      if nr_parms == 9:
+        try:
+          targetBeams[nr_beams][8] = int(targetBeams[nr_beams][8]) # the (optionally specified) duration of the pipeline
+        except:
+          raise GenException("the specified pipeline duration: " + targetBeams[nr_beams][8] + " needs to be an integer value in seconds")
+      else:
+        targetBeams[nr_beams].append(0)
+
+      # convert coordinated HMS to degrees
+      # right ascension
+      targetBeams[nr_beams][0] = convertAngle1(targetBeams[nr_beams][0], "targetBeam:" + str(nr_beams))
+      # declination
+      targetBeams[nr_beams][1] = convertAngle2(targetBeams[nr_beams][1], "targetBeam:" + str(nr_beams))
+          
+      if not targetBeams[nr_beams][3]:
+        if globalSubbands:
+          targetBeams[nr_beams][3] = globalSubbands[0]
+          targetBeams[nr_beams][4] = globalSubbands[1]
+          printInfo('Using Global_Subband settings for target beam: %i' % nr_beams)
+        else:
+          raise GenException("No subbands specified for the calibrator beam")
+      else:
+        verifySubbandList("targetBeam %i" % (nr_beams+1), targetBeams[nr_beams][3], targetBeams[nr_beams][4])
+
+      if not targetBeams[nr_beams][5]: # TABrings specified?
+        if globalTABrings:
+          targetBeams[nr_beams][5] = globalTABrings[0]
+          targetBeams[nr_beams][6] = globalTABrings[1]
+          printInfo('Using Global_TABrings settings for target beam: %i' % nr_beams)
+        else:
+          targetBeams[nr_beams][5] = 0
+      else:
+        targetBeams[nr_beams][5] = int(targetBeams[nr_beams][5])
+        if targetBeams[nr_beams][5] > 0:
+          if targetBeams[nr_beams][6].endswith('deg') or targetBeams[nr_beams][6].endswith('d'):
+            targetBeams[nr_beams][6] = deg2rad(targetBeams[nr_beams][6].rstrip(' deg'))
+          else: #TODO try?
+            targetBeams[nr_beams][6] = float(targetBeams[nr_beams][6]) # TAB ring size
+            
+      targetBeams[nr_beams][7] = toBool(targetBeams[nr_beams][7]) # create pipeline coupled to target beam?
+      print ("right ascenscion:" + str(targetBeams[nr_beams][0]) + " declination:" + str(targetBeams[nr_beams][1]) + " target:" + targetBeams[nr_beams][2] + " subbands:" + targetBeams[nr_beams][3] + " nrSubbands:" + targetBeams[nr_beams][4] 
+      + " create pipeline:" + str(targetBeams[nr_beams][7]))
+      
+      BBSDefault    = ['','','','true','','','','']
+      DemixDefault  = ['','','','','','','']
+      PulsarDefault = ['','','','','','','','','','','','','','','','','','','','','','']
+      targetBBS.append([]) #Can now be a list of pipelines per beam
+      targetDemix.append([])
+      targetPulsar.append([])
+      if targetBeams[nr_beams][7]: # pipeline created?
+        for pipeline in pipelines:
+          if pipeline.startswith("BBS"):
+            targetBBS[nr_beams].append(BBSDefault)
+            tarBBS = readExtraParms("BBS", [pipeline])
+            for i in range(0, len(tarBBS)):
+              targetBBS[nr_beams][-1][i] = tarBBS[i]
+            targetBBS[nr_beams][-1][3] = toBool(targetBBS[nr_beams][-1][3])
+          
+          if pipeline.startswith("Demix"):
+            targetDemix[nr_beams].append(DemixDefault)
+            tarDemix = readExtraParms("Demix", [pipeline])
+            if len(tarDemix) >= 4:
+              for i in range(0,len(tarDemix)):
+                targetDemix[nr_beams][-1][i] = tarDemix[i]
+              if int(targetDemix[nr_beams][-1][2]) % int(targetDemix[nr_beams][-1][0]) <> 0:
+                raise GenException("demixFreqStep (" + targetDemix[nr_beams][-1][2] + ") should be integer multiple of averagingFreqStep (" + targetDemix[nr_beams][-1][0] + "), target beam pipeline:" + str(nr_beams))
+              targetDemix[nr_beams][-1][6] = toBool(targetDemix[nr_beams][-1][6]) # convert ignoreTarget to bool
+            elif len(tarDemix) > 0:
+              raise GenException("Demixing parameters should at least have the first four averaging/demixing steps (block %s, targetBeam %s)" % (blockNr, nr_beams))
+      
+          if pipeline.startswith("Pulsar"):
+            targetPulsar[nr_beams].append(PulsarDefault)
+            tarPulsar = readExtraParms("Pulsar", [pipeline])
+            if len(tarPulsar) > 0:
+              for i in range(0,len(tarPulsar)):
+                targetPulsar[nr_beams][-1][i] = tarPulsar[i]
+              targetPulsar[nr_beams][-1][1] = toBool(targetPulsar[nr_beams][-1][1]) # singlePulse
+              targetPulsar[nr_beams][-1][2] = toBool(targetPulsar[nr_beams][-1][2]) # rawTo8bit
+              targetPulsar[nr_beams][-1][7] = toBool(targetPulsar[nr_beams][-1][7]) # norfi
+              targetPulsar[nr_beams][-1][8] = toBool(targetPulsar[nr_beams][-1][8]) # nofold
+              targetPulsar[nr_beams][-1][9] = toBool(targetPulsar[nr_beams][-1][9]) # nopdmp
+              targetPulsar[nr_beams][-1][10] = toBool(targetPulsar[nr_beams][-1][10]) # skipDsps
+              targetPulsar[nr_beams][-1][11] = toBool(targetPulsar[nr_beams][-1][11]) # rrats
+              targetPulsar[nr_beams][-1][19] = toBool(targetPulsar[nr_beams][-1][19]) # skipDynamicSpectrum
+              targetPulsar[nr_beams][-1][20] = toBool(targetPulsar[nr_beams][-1][20]) # skipPrepfold
+
+        if not targetBBS[nr_beams]:
+          targetBBS[nr_beams].append(BBSDefault)
+          if globalBBS:
+            printInfo('Using global BBS settings for pipeline(s) coupled to target beam:' + str(nr_beams))
+            for i in range(0,len(globalBBS)):
+              targetBBS[nr_beams][-1][i] = globalBBS[i]
+
+        if not targetDemix[nr_beams]:
+          targetDemix[nr_beams].append(DemixDefault)
+          if globalDemix:
+            printInfo('Using global demix settings for pipeline(s) coupled to target beam:' + str(nr_beams))
+            for i in range(0,len(globalDemix)):
+              targetDemix[nr_beams][-1][i] = globalDemix[i]
+
+        if not targetPulsar[nr_beams]:
+          targetPulsar[nr_beams].append(PulsarDefault)
+          if globalPulsar:
+            printInfo('Using global Pulsar settings for pulsar pipeline(s) coupled to target beam:' + str(nr_beams))
+            for i in range(0,len(globalPulsar)):
+              targetPulsar[nr_beams][-1][i] = globalPulsar[i]
+      
+      tarTAB = readTiedArrayBeams(TABs)
+      if tarTAB:
+        targetTAB.append(tarTAB)
+      elif globalTAB:
+        targetTAB.append(globalTAB)
+      else:
+        targetTAB.append([])
+      if coherentStokesData and not (hasCoherentTab(targetTAB[-1]) or (targetBeams[nr_beams][5] > 0) or flysEye):
+        raise GenException("Target Beam %i: no coherent TAB specified while coherent Stokes data requested" % nr_beams)
+      nr_beams += 1
+  totSubbands = sum([int(targetBeams[i][4]) for i in range(len(targetBeams))])
+  maxSubbands = MAX_NR_SUBBANDS[NUMBER_OF_BITS_PER_SAMPLE.index(numberOfBitsPerSample)]
+  print "total subbands for all target beams = %s" % totSubbands
+  if totSubbands > maxSubbands: #TODO this doesn't count the calibrator beam!
+    raise GenException("the total number of subbands (%s) for all target beams exceeds the maximum number of subbands (%s) for %s bit mode" % (totSubbands, maxSubbands, numberOfBitsPerSample))
+  return targetBeams, targetBBS, targetDemix, targetPulsar, targetTAB, nr_beams
+
+def checkAntennaModeInstrumentFilterAndClockCombination(antennaMode, instrumentFilter, clock):
+#TODO hardcoded values, should check against INSTRUMENT_FILTERS
+  if clock == '160 MHz':
+    if antennaMode.startswith('HBA'): # 160 MHz, HBA
+      if instrumentFilter != '170-230 MHz':
+        wrongCombiError()
+    else: # 160 MHz, LBA
+      if instrumentFilter not in ['10-70 MHz', '30-70 MHz']:
+        wrongCombiError()
+  else:
+    if antennaMode.startswith('HBA'): # 200 MHz, HBA
+      if instrumentFilter not in ['110-190 MHz', '210-250 MHz']:
+        wrongCombiError()
+    else: # 200 MHz, LBA
+      if instrumentFilter not in ['10-90 MHz', '30-90 MHz']:
+        wrongCombiError()
+
+def determineNrImages(targetBeams, nrSubbandsPerImage, variableName):
+  nrImages = []
+  for beam in targetBeams:
+    if beam[7]: ##Make pipelines
+      if int(beam[4]) % nrSubbandsPerImage <> 0:
+        raise GenException("nrSubbands (%s) should be integer dividable by the %s (%s) for target beam %i" % (beam[4], variableName, nrSubbandsPerImage, targetBeams.index(beam)+1))
+      nrImages.append(int(beam[4]) / nrSubbandsPerImage)
+    else:
+      nrImages.append(0)
+  return nrImages
+
+def readBlock(lines, projectName, blockNr):
+  s = { ##settings
+  "set_starttime": False,
+  "nrRepeats": 1,
+  "globalSubbands": [],
+  "globalBBS": [],
+  "globalDemix": [],
+  "globalPulsar": [],
+  "globalTAB": [],
+  "globalTABrings": [],
+  "coherentStokesData": False,
+  "flysEye": False,
+  "numberOfBitsPerSample": 0}
+  
+  for lineNr, cline in enumerate(lines):
+    if "=" in cline and not cline.startswith(('BBS','Demix','Pulsar')): #we skip beam and pipelines lines
+      key, value = readKeyValuePair(cline)
+      if key == "processing":
+        s["processing"] = readProcessing(value)
+      elif key == "split_targets":
+        s["split_targets"] = readBoolKey("split_targets", value)
+      elif key == "packageName":
+        s["packageName"] = readStringKey("packageName", value)
+      elif key == "packageDescription":
+        s["packageDescription"] = readOptionalStringKey("packageDescription", value)
+      elif key == "packageTag":
+        s["packageTag"] = readPackageTag(value)
+      elif key == "startTimeUTC":
+        s["startTime"], s["set_starttime"] = readStartTimeUTC(value)
+      elif key == "timeStep1":
+        s["timeStep1"] = readTimeStep(1, value)
+      elif key == "timeStep2":
+        s["timeStep2"] = readTimeStep(2, value)
+      elif key == "stationList":
+        s["stationList"] = readStationList(value)
+      elif key == "create_calibrator_observations":
+        s["create_calibrator_observations"] = readBoolKey("create_calibrator_observations", value)
+      elif key == "create_target_cal_beam":
+        s["create_target_cal_beam"] = readBoolKey("create_target_cal_beam", value)
+      elif key == "calibration":
+        s["calibration_mode"] = readListKey("calibration", value)
+      elif key == "create_extra_ncp_beam":
+        s["create_extra_ncp_beam"] = readCreate_extra_ncp_beam(value)
+      elif key == "antennaMode":
+        s["antennaMode"] = readListKey("antennaMode", value)
+      elif key == "clock":
+        s["clock"] = readListKey("clock", value)
+      elif key == "instrumentFilter":
+        s["instrumentFilter"] = readListKey("instrumentFilter", value)
+      elif key == "integrationTime":
+        #TODO should check if it's a valid float?
+        s["integrationTime"] = readStringKey("integrationTime", value)
+      elif key == "correlatedData":
+        s["correlatedData"] = readBoolKey("correlatedData", value)
+      elif key == "coherentStokesData":
+        s["coherentStokesData"] = readBoolKey("coherentStokesData", value)
+      elif key == "incoherentStokesData":
+        s["incoherentStokesData"] = readBoolKey("incoherentStokesData", value)
+      elif key == "coherentDedisperseChannels":
+        s["coherentDedisperseChannels"] = readBoolKey("coherentDedisperseChannels", value)
+      elif key == "flysEye":
+        s["flysEye"] = readBoolKey("flysEye", value)
+      elif key == "calibratorDuration_s":
+        s["calibratorDuration_s"] = readIntKey("calibratorDuration_s", value)
+      elif key == "targetDuration_s":
+        s["targetDuration_s"] = readIntKey("targetDuration_s", value)
+      elif key == "numberOfBitsPerSample":
+        s["numberOfBitsPerSample"] = readIntListKey("numberOfBitsPerSample", value)
+      elif key == "channelsPerSubband":
+        #TODO should this be Int?
+        s["channelsPerSubband"] = readStringKey("channelsPerSubband", value)
+      elif key == "subbandsPerFileCS":
+        s["subbandsPerFileCS"] = readIntKey("subbandsPerFileCS", value)
+      elif key == "numberCollapsedChannelsCS":
+        s["numberCollapsedChannelsCS"] = readIntKey("numberCollapsedChannelsCS", value)
+      elif key == "stokesDownsamplingStepsCS":
+        s["stokesDownsamplingStepsCS"] = readIntKey("stokesDownsamplingStepsCS", value)
+      elif key == "whichCS":
+        s["whichCS"] = readListKey("whichCS", value)
+      elif key == "subbandsPerFileIS":
+        s["subbandsPerFileIS"] = readIntKey("subbandsPerFileIS", value)
+      elif key == "numberCollapsedChannelsIS":
+        s["numberCollapsedChannelsIS"] = readIntKey("numberCollapsedChannelsIS", value)
+      elif key == "stokesDownsamplingStepsIS":
+        s["stokesDownsamplingStepsIS"] = readIntKey("stokesDownsamplingStepsIS", value)
+      elif key == "whichIS":
+        s["whichIS"] = readListKey("whichIS", value)
+      elif key == "nrSubbandsPerImage":
+        s["nrSubbandsPerImage"] = readIntKey("nrSubbandsPerImage", value)
+      elif key == "imagingPipeline":
+        s["imagingPipeline"] = readListKey("imagingPipeline", value)
+      elif key == "imagingDuration_s":
+        s["imaging_pipe_duration"] = readIntKey("imaging_pipe_duration", value)
+      elif key == "maxBaseline_m":
+        s["maxBaseline"] = readIntKey("maxBaseline", value)
+      elif key == "fieldOfView_deg":
+        s["fieldOfView"] = readFloatKey("fieldOfView", value)
+      elif key == "weightingScheme":
+        s["weightingScheme"] = readListKey("weightingScheme", value)
+      elif key == "robustParameter":
+        s["robustParameter"] = readFloatKey("robustParameter", value)
+      elif key == "nrOfIterations":
+        s["nrOfIterations"] = readIntKey("nrOfIterations", value)
+      elif key == "cleaningThreshold":
+        s["cleaningThreshold"] = readFloatKey("cleaningThreshold", value)
+      elif key == "uvMin_klambda":
+        s["uvMin"] = readFloatKey("uvMin", value)
+      elif key == "uvMax_klambda":
+        s["uvMax"] = readFloatKey("uvMax", value)
+      elif key == "stokesToImage":
+        s["stokesToImage"] = readStringKey("stokesToImage", value)
+      elif key == "skyModel":
+        s["skyModel"] = readStringKey("skyModel", value)
+      elif key == "tbbPiggybackAllowed":
+        s["tbbPiggybackAllowed"] = readBoolKey("tbbPiggybackAllowed", value)
+      elif key == "aartfaacPiggybackAllowed":
+        s["aartfaacPiggybackAllowed"] = readBoolKey("aartfaacPiggybackAllowed", value)
+      elif key == "flaggingStrategy":
+        s["flaggingStrategy"] = readStringKey("flaggingStrategy", value)
+      elif key == "subbandsPerSubbandGroup":
+        s["subbandsPerSubbandGroup"] = readIntKey("subbandsPerSubbandGroup", value)
+      elif key == "subbandGroupsPerMS":
+        s["subbandGroupsPerMS"] = readIntKey("subbandGroupsPerMS", value)
+      elif key == "Global_BBS":
+        s["globalBBS"] = readGlobalBBS(value)
+      elif key == "Imaging_BBS":
+        s["imagingBBS"] = readImagingBBS(value)
+      elif key == "Global_Demix":
+        s["globalDemix"] = readGlobalDemix(value)
+      elif key == "Global_Pulsar":
+        s["globalPulsar"] = readGlobalPulsar(value)
+      elif key == "Global_Subbands":
+        s["globalSubbands"] = readGlobalSubbands(value)
+      elif key == "Global_TAB":
+        s["globalTAB"] = readTiedArrayBeams(lines, lineNr, nr_lines)
+      elif key == "Global_TABrings":
+        s["globalTABrings"] = readGlobalTABrings(value)
+      elif key == "calibratorBeam":
+        s["calibratorBeam"], s["calibratorBBS"], s["calibratorDemix"], s["calibratorTAB"], s["create_calibrator_pipeline"] = \
+          readCalibratorBeam(lineNr+1, lines, s["globalSubbands"], s["globalTABrings"], s["globalBBS"], s["globalDemix"], s["globalTAB"],
+                             s["coherentStokesData"], s["flysEye"])
+      elif key == 'targetBeams':
+        s["targetBeams"], s["targetBBS"], s["targetDemix"], s["targetPulsar"], s["targetTAB"], s["nr_beams"] = \
+          readTargetBeams(lineNr+1, lines, s["globalSubbands"], s["globalBBS"], s["globalDemix"], s["globalPulsar"], s["globalTAB"],
+                          s["globalTABrings"], s["coherentStokesData"], s["flysEye"], s["numberOfBitsPerSample"])
+      elif key == "repeat":
+        try:
+          s["nrRepeats"] = int(value)
+          print "number of repeats = %s" % s["nrRepeats"]
+        except:
+          raise GenException("the repeat parameter is not valid for BLOCK: %i" % blockNr)
+      elif key == "cluster":
+        s["cluster"] = readStringKey("cluster", value)
+      else:
+        raise GenException("unknown key:'%s' in BLOCK: %i" % (key, blockNr))
+  return s ##settings
+
+def checkSettings(settings, blockNr):
+  if "calibration_mode" not in settings:
+    raise GenException("the calibration parameter is not specified for BLOCK: %i" % blockNr)
+  elif settings["calibration_mode"] == "internal":
+    settings["create_target_cal_beam"] = True
+    if not "create_calibrator_observations" in settings:
+      settings["create_calibrator_observations"] = False
+  elif settings["calibration_mode"] == "external":
+    settings["create_calibrator_observations"] = True
+  elif settings["calibration_mode"] == "none":
+    settings["create_calibrator_observations"] = False
+  if "split_targets" not in settings:
+    raise GenException("the split_targets parameter is not specified for BLOCK: %i" % blockNr)
+  if "processing" not in settings:
+    raise GenException("the processing parameter has not been specified. It should be one of %s" % ", ".join(PROCESSING));
+  elif settings["processing"] == 'Pulsar':
+    if not (("coherentStokesData" in settings and settings["coherentStokesData"]) 
+            or ("incoherentStokesData" in settings and settings["incoherentStokesData"])):
+      raise GenException("Pulsar processing requires one or both of coherentStokesData / incoherentStokesData to be set for BLOCK: %i" % blockNr)
+  elif settings["processing"] == 'Imaging' and settings["calibration_mode"] == "none":
+    raise GenException("processing=imaging requires calibration. While calibration is set to 'none' for BLOCK: %i" % blockNr)
+  if settings["nr_beams"] == 0:
+    raise GenException("no target beams have been specified for BLOCK: %i" % blockNr)
+  elif settings["calibration_mode"] == "none":
+    settings["create_target_cal_beam"] = False
+  if "packageName" not in settings:
+    raise GenException("the packageName is not specified for BLOCK: %i" % blockNr)
+  if "stationList" not in settings:
+    raise GenException("the stationList is not specified for BLOCK: %i" % blockNr)
+  if "antennaMode" not in settings:
+    raise GenException("the antennaMode is not specified for BLOCK: %i" % blockNr)
+  if "instrumentFilter" not in settings:
+    raise GenException("the instrumentFilter is not specified for BLOCK: %i" % blockNr)
+  if "integrationTime" not in settings and ("correlatedData" in settings and settings["correlatedData"]): #TODO can it be false?
+    raise GenException("the integrationTime is not specified for BLOCK: %i" % blockNr)
+  if settings["create_calibrator_observations"] or settings["calibration_mode"] == "external":
+    if settings["calibratorDuration_s"] == 0:
+      raise GenException("the calibratorDuration_s is not specified for BLOCK: %i" % blockNr)
+  if (settings["calibration_mode"] != "none") and not settings["calibratorBeam"]:
+      raise GenException("the calibratorBeam is not specified while calibration parameter is not set to 'none' for BLOCK: %i" % blockNr)
+  if (not "calibratorBeam" in settings and settings["calibration_mode"] != "none"): # calibration_mode is no calibrator beam
+      raise GenException("the calibratorBeam is not specified for BLOCK: %i" % blockNr)
+  if ("targetDuration_s" not in settings):
+    raise GenException("the targetDuration_s is not specified for BLOCK: %i" % blockNr)
+  if "numberOfBitsPerSample" not in settings:
+    raise GenException("the numberOfBitsPerSample is not specified for BLOCK: %i" % blockNr)
+  if "channelsPerSubband" not in settings:
+    raise GenException("the channelsPerSubband is not specified for BLOCK: %i" % blockNr)
+  if "flysEye" in settings and settings["flysEye"] and not "coherentStokesData" in settings:
+    raise GenException("FlysEye cannot be switched on when coherentStokesData is switched off, specified in BLOCK: %i" % blockNr)        
+    
+  if settings["processing"] == 'Imaging':
+    if "imagingPipeline" in settings:
+      if settings["imagingPipeline"] == 'none':
+        settings["do_imaging"] = False
+      else:
+        if not "nrSubbandsPerImage" in settings:
+          raise GenException("the nrSubbandsPerImage is not specified for BLOCK: %i" % blockNr)
+
+        settings["do_imaging"] = True
+        if settings["imagingPipeline"] == 'standard':
+          settings["imaging_pipe_type"] = 'ImagingPipelineType'
+          if settings["antennaMode"].startswith("HBA"):
+            settings["imaging_pipe_default_template"] = "Imaging Pipeline HBA"
+          else:
+            settings["imaging_pipe_default_template"] = "Imaging Pipeline LBA"
+        elif settings["imagingPipeline"] == 'MSSS':
+          settings["imaging_pipe_type"] = 'ImagingPipelineMSSSType'
+          settings["imaging_pipe_default_template"] = "MSSS Imaging Pipeline"
+        # determine nrImages
+        settings["nrImages"] = determineNrImages(settings["targetBeams"], settings["nrSubbandsPerImage"], "nrSubbandsPerImage")
+    else:
+      raise GenException("the 'imagingPipeline' type parameter has not been specified while processing is set to Imaging. imagingPipeline should be one of: MSSS, standard or none");
+  else:
+    settings["do_imaging"] = False
+
+  if settings["processing"] == "LongBaseline": #TODO issue 8357, needs better function name
+    determineNrImages(settings["targetBeams"], settings["subbandsPerSubbandGroup"], "subbandsPerSubbandGroup")
+    determineNrImages(settings["targetBeams"], settings["subbandGroupsPerMS"], "subbandGroupsPerMS")
+
+  if not "flaggingStrategy" in settings:
+    if settings["antennaMode"].startswith("LBA"):
+      settings["flaggingStrategy"] = "LBAdefault"
+    else:
+      settings["flaggingStrategy"] = "HBAdefault"
+    
+  checkAntennaModeInstrumentFilterAndClockCombination(settings["antennaMode"], settings["instrumentFilter"], settings["clock"])
+
+  settings["writePackageTag"] = "packageTag" in settings and settings["packageTag"]
+  return settings
+
+def  writeImagingPipeline(ofile, nr_beams, targetBeams, blockTopo, nrRepeats,
+       imaging_pipe_inputs, imaging_pipe_predecessors, writePackageTag, packageTag,
+       nrImages, imagingPipelineSettings, imagingBBS, cluster):
+  for key,val in imagingPipelineSettings.items(): #TODO somewhat dirty hack, to be solved better later.
+    exec(key + '=val')
+  for beamNr in range (0, nr_beams):
+    create_pipeline = targetBeams[beamNr][7]
+    if create_pipeline:
+      imaging_pipe_topology = blockTopo + 'PI' + str(beamNr)        # 1.PI
+      imaging_pipe_output_topology = imaging_pipe_topology + '.dps' # 1.PI.dps
+      imaging_pipe_predecessors_string = ','.join(imaging_pipe_predecessors[beamNr]) #creates nrRepeats long comma separated list
+
+      #for repeatNr in range (1, nrRepeats+1): 
+        # ****** ADD AN IMAGING PIPELINE FOR EVERY TARGET BEAM ******
+
+      if writePackageTag:
+        imaging_pipe_name = packageTag + "/" + targetBeams[beamNr][2] + "/IM"
+      else:
+        imaging_pipe_name = targetBeams[beamNr][2] + "/IM"
+
+      temp = {"imaging_pipe_topology":imaging_pipe_topology,
+        "imaging_pipe_predecessors_string":imaging_pipe_predecessors_string,
+        "imaging_pipe_name":imaging_pipe_name,
+        "beamNr":beamNr, "nrImages":nrImages[beamNr], "nrRepeats":nrRepeats}
+        
+      writeImagingPipelineXML(ofile, merge_dicts(temp, imagingPipelineSettings), imagingBBS, cluster)          
+      writeImagingPipelineInputDataproducts(ofile, imaging_pipe_inputs[beamNr])
+      writeSkyImageOutputDataproduct(ofile, imaging_pipe_output_topology, cluster)
+
+def determineBfDataExtension(coherentStokesData, incoherentStokesData):
+  bfDataExtension = ''
+  if coherentStokesData | incoherentStokesData:
+    if coherentStokesData & ~incoherentStokesData:
+      bfDataExtension = '.cs'
+    elif incoherentStokesData & ~coherentStokesData:
+      bfDataExtension = '.is'
+    else:
+      bfDataExtension = '.csis'
+  return bfDataExtension
+
+def writeRepeat(ofile, projectName, blockTopo, repeatNr, settings, imaging_pipe_inputs, imaging_pipe_predecessors):
+  for key,val in settings.items(): #TODO somewhat dirty hack, to be solved better later.
+    exec(key + '=val')
+  repeatTopo = blockTopo + str(repeatNr)
+  
+  tar_obs_beam_topologies = []
+  tar_obs_uv_data_topologies = []
+  tar_obs_bf_data_topologies = []
+  tar_pipe_topologies = []
+  LB_preproc_pipe_predecessor = []
+  LB_preproc_pipe_topologies = []
+  LB_preproc_pipe_output_MS_topologies = []
+
+  #nv 13okt2014: #6716 - Implement Long Baseline Pipeline
+  LB_pipeline_topologies =[]
+  LB_pipeline_predecessor =[] 
+  LB_pipeline_input_uv_topologies =[]
+  LB_pipeline_output_uv_topologies =[]
+
+  cal_obs_topology = repeatTopo + '.C'                   # 1.C
+  cal_obs_beam0_topology = cal_obs_topology + '.SAP000'     # 1.C.SAP000
+  tar_obs_topology = repeatTopo + '.T'                   # 1.T
+  cal_pipe_calibrator_topology = repeatTopo + '.CPC'       # 1.CPC
+  cal_pipe_target_topology = repeatTopo + '.CPT'       # 1.CPT
+  
+  if processing == 'Imaging':
+    if calibration_mode == "internal":
+      cal_obs_pipe_default_template = "Calibrator Pipeline (export)"
+      cal_tar_pipe_default_template = "Calibrator Pipeline (no export)"
+      cal_pipe_calibrator_description = "Cal Pipe Calibrator"
+      cal_pipe_target_description = "Cal Pipe Target"
+      tar_pipe_predecessor = tar_obs_topology + ',' + cal_pipe_target_topology # 1.T,1.CPT
+      tar_pipe_input_INST_topo = cal_pipe_target_topology + '.inst.dps'               # 1.P1.dps
+    elif calibration_mode == "external":
+      cal_obs_pipe_default_template = "Calibrator Pipeline (export)"
+      cal_tar_pipe_default_template = "Calibrator Pipeline (no export)"
+      cal_pipe_calibrator_description = "Cal Pipe Calibrator"
+      cal_pipe_target_description = "Cal Pipe Target"
+      tar_pipe_predecessor = tar_obs_topology + ',' + cal_pipe_calibrator_topology # 1.T,1.CPC
+      tar_pipe_input_INST_topo = cal_pipe_calibrator_topology + '.inst.dps'         # 1.CPC.inst.dps
+  elif processing == 'Preprocessing':
+    tar_pipe_predecessor = tar_obs_topology # 1.T
+    tar_pipe_input_INST_topo = ''   # no input instrument models for these modes
+    cal_obs_pipe_default_template = "Preprocessing Pipeline"
+    cal_tar_pipe_default_template = "Preprocessing Pipeline"
+    cal_pipe_calibrator_description = "Preprocessing"
+    cal_pipe_target_description = "Preprocessing"
+  elif processing == 'Calibration':
+    tar_pipe_predecessor = tar_obs_topology # 1.T
+    tar_pipe_input_INST_topo = ''   # no input instrument models for these modes
+    cal_obs_pipe_default_template = "Calibration Pipeline"
+    cal_tar_pipe_default_template = "Calibration Pipeline"
+    cal_pipe_calibrator_description = "Calibration"
+    cal_pipe_target_description = "Calibration"
+  elif processing == 'Pulsar':
+    #pulsar_pipe_predecessor = tar_obs_topology
+    pulsar_pipe_default_template = "Pulsar Pipeline"
+  elif processing == 'LongBaseline':
+    if calibration_mode == "internal": # internal calibration (previously Calbeam)
+      cal_obs_pipe_default_template = "Calibrator Pipeline (export)"
+      cal_tar_pipe_default_template = "Calibrator Pipeline (no export)"
+      cal_pipe_calibrator_description = "Cal Pipe Calibrator"
+      cal_pipe_target_description = "Cal Pipe Target"
+      tar_pipe_predecessor = tar_obs_topology + ',' + cal_pipe_target_topology # 1.T,1.CPT
+      tar_pipe_input_INST_topo = cal_pipe_target_topology + '.inst.dps'               # 1.P1.dps
+    elif calibration_mode == "external": # external calibration (previously calObs)
+      cal_obs_pipe_default_template = "Calibrator Pipeline (export)"
+      cal_tar_pipe_default_template = "Calibrator Pipeline (no export)"
+      cal_pipe_calibrator_description = "Cal Pipe Calibrator"
+      cal_pipe_target_description = "Cal Pipe Target"
+      tar_pipe_predecessor = tar_obs_topology + ',' + cal_pipe_calibrator_topology # 1.T,1.CPC
+      tar_pipe_input_INST_topo = cal_pipe_calibrator_topology + '.inst.dps'         # 1.CPC.inst.dps
+
+  bfDataExtension = determineBfDataExtension(coherentStokesData, incoherentStokesData)
+
+  for beamNr in range (0, nr_beams):
+    beam_nr_str = str(beamNr)
+    if create_calibrator_observations:
+      if writePackageTag:
+        cal_obs_name = packageTag + "/" + calibratorBeam[2] + "/" + str(repeatNr) + "/CO"
+      else:
+        cal_obs_name = calibratorBeam[2] + "/" + str(repeatNr) + "/CO"
+    
+    # TODO: for multiObs this is not ok. The SAP numbers should start from scratch again with every new target observation
+    # and there should be a .beamnr added before the .SAP in the topology
+    # this work has to be done when multiObs with multiple SAPs per target observation is implemented.
+    tar_obs_beam_topologies.append(tar_obs_topology + ".SAP" + beam_nr_str.rjust(3,'0'))
+
+    tar_obs_bf_data_topologies.append(tar_obs_beam_topologies[beamNr] + bfDataExtension)
+    tar_obs_uv_data_topologies.append(tar_obs_beam_topologies[beamNr] + ".uv.dps")
+        
+    tar_pipe_topologies.append(repeatTopo + ".PT" + beam_nr_str)
+
+    if processing == 'LongBaseline':
+      LB_preproc_pipe_topologies.append(repeatTopo + ".PTLB" + beam_nr_str)
+      LB_preproc_pipe_output_MS_topologies.append(LB_preproc_pipe_topologies[beamNr] + ".uv.dps")
+      LB_preproc_pipe_predecessor.append(tar_pipe_topologies[beamNr])
+
+      #nv 13okt2014: #6716 - Implement Long Baseline Pipeline
+      LB_pipeline_topologies.append(repeatTopo + ".LBP" + beam_nr_str)
+      LB_pipeline_predecessor.append(LB_preproc_pipe_topologies[beamNr])
+      LB_pipeline_input_uv_topologies.append(LB_preproc_pipe_output_MS_topologies[beamNr])
+      LB_pipeline_output_uv_topologies.append(LB_pipeline_topologies[beamNr] + ".uv.dps")
+
+    if do_imaging:
+      imaging_pipe_inputs[beamNr].append(tar_pipe_topologies[beamNr] + ".uv.dps")
+      imaging_pipe_predecessors[beamNr].append(tar_pipe_topologies[beamNr])
+
+  if "create_extra_ncp_beam" in settings and settings["create_extra_ncp_beam"]:
+    tarObsCalBeamDataTopoStr = tar_obs_topology + ".SAP%03i" % (nr_beams+1,)
+  else:
+    tarObsCalBeamDataTopoStr = tar_obs_topology + ".SAP%03i" % (nr_beams,)
+  tar_obs_beam_topologies.append(tarObsCalBeamDataTopoStr)
+  tar_obs_bf_data_topologies.append(tarObsCalBeamDataTopoStr + bfDataExtension)
+  tar_obs_uv_data_topologies.append(tarObsCalBeamDataTopoStr + ".uv.dps")  
+      
+  tar_obs_predecessor = ''
+  if create_calibrator_observations:
+    tar_obs_predecessor = cal_obs_topology      # 1.C
+    if set_starttime:
+      startTimeStr = startTimeObs.strftime('%Y-%m-%dT%H:%M:%S')
+      endTimeStr = (startTimeObs + timedelta(seconds=calibratorDuration_s)).strftime('%Y-%m-%dT%H:%M:%S')
+    else:
+      startTimeStr = ''
+      endTimeStr = ''
+      
+    writeXMLObs(ofile, cal_obs_name, cal_obs_name + ' (Calibration Observation)',
+      cal_obs_topology, '', cal_obs_name, projectName, tbbPiggybackAllowed,
+      aartfaacPiggybackAllowed, correlatedData, coherentStokesData, incoherentStokesData,
+      antennaMode, clock, instrumentFilter, integrationTime, channelsPerSubband,
+      coherentDedisperseChannels, flysEye, subbandsPerFileCS, numberCollapsedChannelsCS,
+      stokesDownsamplingStepsCS, whichCS, subbandsPerFileIS, numberCollapsedChannelsIS,
+      stokesDownsamplingStepsIS, whichIS, stationList, startTimeStr, endTimeStr,
+      calibratorDuration_s, numberOfBitsPerSample)
+    writeXMLBeam(ofile, calibratorBeam[2], calibratorBeam[2], cal_obs_beam0_topology,
+      'Calibration', calibratorBeam[2], calibratorBeam[0], calibratorBeam[1],
+      calibratorBeam[3], flysEye, str(calibratorBeam[5]), str(calibratorBeam[6]),
+      writeTABXML(calibratorTAB), writeDataProducts(cal_obs_beam0_topology, correlatedData,
+      coherentStokesData, incoherentStokesData, cluster) )
+    writeXMLObsEnd(ofile)
+      
+  # target start and end time:
+  if set_starttime:
+    if create_calibrator_observations:
+      startTimeObs = startTimeObs + timedelta(seconds=timeStep1+calibratorDuration_s)
+    startTimeStr = startTimeObs.strftime('%Y-%m-%dT%H:%M:%S')
+    endTimeStr = (startTimeObs + timedelta(seconds=targetDuration_s)).strftime('%Y-%m-%dT%H:%M:%S')
+  else:
+    startTimeStr = ''
+    endTimeStr = ''
+
+  if create_calibrator_observations and create_calibrator_pipeline:
+    
+    if writePackageTag:
+      cal_pipe_name = packageTag + "/" + calibratorBeam[2] + "/" + str(repeatNr) + "/CPC"
+    else:
+      cal_pipe_name = calibratorBeam[2] + "/" + str(repeatNr) + "/CPC"
+      
+    if processing == 'Imaging' or processing == 'LongBaseline':
+      if not calibratorBBS:
+        raise GenException("BBS SkyModel is not specified for pipeline coupled to calibrator beam")
+
+      writeXMLCalPipe(ofile, cal_pipe_calibrator_topology, cal_obs_topology, cal_pipe_name,
+        cal_pipe_calibrator_description, cal_obs_pipe_default_template,
+        flaggingStrategy, calibratorBeam[8], calibratorBBS[0][0], calibratorDemix[0], calibratorBBS[0][1:],
+        cal_obs_beam0_topology + '.uv.dps', cal_pipe_calibrator_topology + '.inst.dps',
+        cal_pipe_calibrator_topology + '.inst.dps', cal_pipe_calibrator_topology + '.uv.dps', cluster)
+
+    elif processing == 'Preprocessing':
+      for i in range(0,len(calibratorDemix)):
+        if len(calibratorDemix) > 1: #TODO a cludge right now, but want to refactor how to call the writeXML soon
+          cal_pipe_calibrator_topology_tmp = cal_pipe_calibrator_topology + ".%i" % i
+          cal_pipe_name_tmp = cal_pipe_name + ".%i" % i
+        else:
+          cal_pipe_calibrator_topology_tmp = cal_pipe_calibrator_topology
+          cal_pipe_name_tmp = cal_pipe_name
+        writeXMLAvgPipeline(ofile, cal_pipe_calibrator_topology_tmp, cal_obs_topology,
+          cal_pipe_name_tmp, cal_pipe_calibrator_description, cal_obs_pipe_default_template,
+          flaggingStrategy, calibratorBeam[8], calibratorDemix[i],
+          cal_obs_beam0_topology + '.uv.dps', cal_pipe_calibrator_topology_tmp + '.uv.dps',
+          cluster)
+
+    elif processing == 'Calibration':
+      
+      if not calibratorBBS:
+        raise GenException("BBS SkyModel is not specified for pipeline coupled to calibrator beam")
+      
+      #TODO ['', '', '', '', '', '', ''] is really ugly, this will break the regression test
+      writeXMLCalPipe(ofile, cal_pipe_calibrator_topology, cal_obs_topology, cal_pipe_name,
+        cal_pipe_calibrator_description, cal_obs_pipe_default_template, flaggingStrategy,
+        calibratorBeam[8], calibratorBBS[0][0], calibratorDemix[0], ['', '', '', '', '', '', ''],
+        cal_obs_beam0_topology + '.uv.dps', cal_pipe_calibrator_topology + '.inst.dps', 
+        cal_pipe_calibrator_topology + '.inst.dps', cal_pipe_calibrator_topology + '.uv.dps', cluster)
+   
+  if not split_targets:  
+    if writePackageTag:
+      tar_obs_name = packageTag + "/" + targetBeams[0][2] + "/" + str(repeatNr) + "/TO"
+    else:
+      tar_obs_name = targetBeams[0][2] + "/" + str(repeatNr) + "/TO"
+
+    writeXMLObs(ofile, tar_obs_name, tar_obs_name + ' (Target Observation)', tar_obs_topology,
+      tar_obs_predecessor, tar_obs_name, projectName, tbbPiggybackAllowed,
+      aartfaacPiggybackAllowed, correlatedData, coherentStokesData, incoherentStokesData,
+      antennaMode, clock, instrumentFilter, integrationTime, channelsPerSubband,
+      coherentDedisperseChannels, flysEye, subbandsPerFileCS, numberCollapsedChannelsCS,
+      stokesDownsamplingStepsCS, whichCS, subbandsPerFileIS, numberCollapsedChannelsIS,
+      stokesDownsamplingStepsIS, whichIS, stationList, startTimeStr, endTimeStr,
+      targetDuration_s, numberOfBitsPerSample)
+      
+    if set_starttime:
+      if create_calibrator_observations:
+        startTimeObs = startTimeObs + timedelta(seconds=timeStep2+targetDuration_s)
+      else:
+        startTimeObs = startTimeObs + timedelta(seconds=timeStep1+targetDuration_s)
+
+    for beamNr in range(0, nr_beams):
+      writeXMLBeam(ofile, targetBeams[beamNr][2], targetBeams[beamNr][2],
+        tar_obs_beam_topologies[beamNr], 'Target', targetBeams[beamNr][2],
+        targetBeams[beamNr][0], targetBeams[beamNr][1], targetBeams[beamNr][3], flysEye,
+        targetBeams[beamNr][5], targetBeams[beamNr][6], writeTABXML(targetTAB[beamNr]), 
+        writeDataProducts(tar_obs_beam_topologies[beamNr], correlatedData,
+        coherentStokesData, incoherentStokesData, cluster) )
+
+    # create the extra polarization beam?
+    if "create_extra_ncp_beam" in settings and settings["create_extra_ncp_beam"]:
+      polBeamTopo = tar_obs_topology + ".SAP" + str(beamNr+1).rjust(3,'0')
+      writeXMLBeam(ofile, targetBeams[0][2], targetBeams[0][2], targetBeams[0][2], 'Target',
+      targetBeams[0][0], flysEye, targetBeams[0][5], targetBeams[0][6],
+      writeTABXML(targetTAB[0]), writeDataProducts(polBeamTopo, correlatedData,
+      coherentStokesData, incoherentStokesData, cluster) )
+
+    # create a calibrator beam in the target observation?
+    if create_target_cal_beam:
+      if "create_extra_ncp_beam" in settings and settings["create_extra_ncp_beam"]:
+        calBeamTopo = tar_obs_topology + ".SAP" + str(beamNr+2).rjust(3,'0')
+      else:
+        calBeamTopo = tar_obs_topology + ".SAP" + str(beamNr+1).rjust(3,'0')
+      
+      writeXMLBeam(ofile, calibratorBeam[2], calibratorBeam[2], calBeamTopo, 'Calibration',
+        calibratorBeam[2], calibratorBeam[0], calibratorBeam[1], calibratorBeam[3], flysEye,
+        calibratorBeam[5], calibratorBeam[6], writeTABXML(calibratorTAB),
+        writeDataProducts(tar_obs_beam_topologies[nr_beams], correlatedData,
+        coherentStokesData, incoherentStokesData, cluster) )
+      
+      writeXMLObsEnd(ofile)
+              
+      if writePackageTag:
+        cal_pipe_target_name = packageTag + "/" + calibratorBeam[2] + "/" + str(repeatNr) + "/CPT"
+      else:
+        cal_pipe_target_name = calibratorBeam[2] + "/" + str(repeatNr) + "/CPT"
+      
+      create_pipeline = calibratorBeam[7]
+      if create_pipeline:
+        if processing == 'Imaging' or processing == 'LongBaseline':
+          if not calibratorBBS:
+            raise GenException("BBS SkyModel is not specified for pipeline coupled to calibration beam")
+
+          writeXMLCalPipe(ofile, cal_pipe_target_topology, tar_obs_topology, cal_pipe_target_name,
+            cal_pipe_target_description, cal_tar_pipe_default_template, flaggingStrategy,
+            calibratorBeam[8], calibratorBBS[0][0], calibratorDemix[0], calibratorBBS[0][1:],
+            tar_obs_uv_data_topologies[nr_beams], cal_pipe_target_topology + '.inst.dps',
+            cal_pipe_target_topology + '.inst.dps', cal_pipe_target_topology + '.uv.dps', cluster)
+        
+        elif processing == 'Preprocessing':
+          for i in range(0, len(calibratorDemix)):
+            if len(calibratorDemix) > 1: #TODO a cludge right now, but want to refactor how to call the writeXML soon
+              cal_pipe_target_topology_tmp = cal_pipe_target_topology + ".%i" % i
+              cal_pipe_target_name_tmp     = cal_pipe_target_name + ".%i" % i
+            else:
+              cal_pipe_target_topology_tmp = cal_pipe_target_topology
+              cal_pipe_target_name_tmp     = cal_pipe_target_name
+            writeXMLAvgPipeline(ofile, cal_pipe_target_topology_tmp, tar_obs_topology,
+              cal_pipe_target_name_tmp, cal_pipe_target_description,
+              cal_tar_pipe_default_template, flaggingStrategy, calibratorBeam[8],
+              calibratorDemix[i], tar_obs_uv_data_topologies[nr_beams],
+              cal_pipe_target_topology_tmp + '.uv.dps', cluster)
+        
+        elif processing == 'Calibration':
+          
+          if not calibratorBBS:
+            raise GenException("BBS SkyModel is not specified for pipeline coupled to calibration beam")
+
+          writeXMLCalPipe(ofile, cal_pipe_target_topology, tar_obs_topology,
+            cal_pipe_target_name, cal_pipe_target_description, cal_tar_pipe_default_template,
+            flaggingStrategy, calibratorBeam[8], calibratorBBS[0][0], calibratorDemix[0],
+            calibratorBBS[0][1:], tar_obs_uv_data_topologies[nr_beams],
+            cal_pipe_target_topology + '.inst.dps', cal_pipe_target_topology + '.inst.dps',
+            cal_pipe_target_topology + '.uv.dps', cluster)
+    else:    
+      writeXMLObsEnd(ofile)
+      
+  else: # split target sources into separate observations
+    for beamNr in range(0, nr_beams):
+      if writePackageTag:
+        tar_obs_name = packageTag + "/" + targetBeams[beamNr][2] + "/" + str(repeatNr) + "/TO"
+      else:
+        tar_obs_name = targetBeams[beamNr][2] + "/" + str(repeatNr) + "/TO"
+
+      tar_obs_topology_MultiObs = tar_obs_topology + '.' + str(beamNr)
+      writeXMLObs(ofile, tar_obs_name, tar_obs_name + ' (Target Observation)',
+        tar_obs_topology_MultiObs, '', tar_obs_name, projectName, tbbPiggybackAllowed,
+        aartfaacPiggybackAllowed, correlatedData, coherentStokesData, incoherentStokesData,
+        antennaMode, clock, instrumentFilter, integrationTime, channelsPerSubband,
+        coherentDedisperseChannels, flysEye, subbandsPerFileCS, numberCollapsedChannelsCS,
+        stokesDownsamplingStepsCS, whichCS, subbandsPerFileIS, numberCollapsedChannelsIS,
+        stokesDownsamplingStepsIS, whichIS, stationList, startTimeStr, endTimeStr,
+        targetDuration_s, numberOfBitsPerSample)
+          
+      writeXMLBeam(ofile, targetBeams[beamNr][2], targetBeams[beamNr][2],
+        tar_obs_beam_topologies[beamNr], 'Target', targetBeams[beamNr][2],
+        targetBeams[beamNr][0], targetBeams[beamNr][1], targetBeams[beamNr][3], flysEye,
+        targetBeams[beamNr][5], targetBeams[beamNr][6], writeTABXML(targetTAB[beamNr]), 
+        writeDataProducts(tar_obs_beam_topologies[beamNr], correlatedData,
+        coherentStokesData, incoherentStokesData, cluster) )
+          
+      writeXMLObsEnd(ofile)
+      
+      if set_starttime:
+        startTimeObs = startTimeObs + timedelta(seconds=timeStep1+targetDuration_s)
+
+
+  # Target PIPELINES generation from here on
+       
+  for beamNr in range(0, nr_beams):
+    create_pipeline = targetBeams[beamNr][7]
+    if create_pipeline:
+      tar_pipe_ID = "/TP"
+      if processing == 'Imaging': # imaging modes
+        tar_pipe_default_template = "Calibration Pipeline Target"
+        tar_pipe_description = "Target Pipeline"
+      elif processing == 'Preprocessing':
+        tar_pipe_default_template = "Preprocessing Pipeline"
+        tar_pipe_description = "Preprocessing"
+      elif processing == 'Calibration':
+        tar_pipe_default_template = "Calibration Pipeline"
+        tar_pipe_description = "Calibration"
+      elif processing == 'Pulsar':
+        tar_pipe_default_template = "Pulsar Pipeline"
+        tar_pipe_description = "Pulsar Pipeline"
+        tar_pipe_ID = "/PP"
+      elif processing == 'LongBaseline':
+        tar_pipe_default_template = "Calibration Pipeline Target"
+        tar_pipe_description = "Target Pipeline"
+
+      if writePackageTag:
+        tar_pipe_name = packageTag + "/" + targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + tar_pipe_ID
+      else:
+        tar_pipe_name = targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + tar_pipe_ID
+        
+      if processing == 'Imaging' or processing == 'LongBaseline':
+        writeXMLTargetPipeline(ofile, tar_pipe_topologies[beamNr], tar_pipe_predecessor,
+          tar_pipe_name, tar_pipe_description, tar_pipe_default_template, flaggingStrategy,
+          targetBeams[beamNr][8], targetDemix[beamNr][0], targetBBS[beamNr][0][1:],
+          tar_obs_uv_data_topologies[beamNr], tar_obs_uv_data_topologies[beamNr],
+          tar_pipe_input_INST_topo, tar_pipe_input_INST_topo, 
+          tar_pipe_topologies[beamNr] + ".uv.dps", tar_pipe_topologies[beamNr] + ".uv.dps",
+          cluster)
+            
+      elif processing == 'Preprocessing':
+        for i in range(0,len(targetDemix[beamNr])):
+          if len(targetDemix[beamNr]) > 1: #TODO a cludge right now, but want to refactor how to call the writeXML soon
+            tar_pipe_topology_tmp = tar_pipe_topologies[beamNr] + ".%i" % i
+            tar_pipe_name_tmp     = tar_pipe_name + ".%i" % i
+            tar_pipe_topology_output_MS_tmp= tar_pipe_topologies[beamNr] + ".%i" % i + ".uv.dps"
+          else:
+            tar_pipe_topology_tmp = tar_pipe_topologies[beamNr]
+            tar_pipe_name_tmp     = tar_pipe_name
+            tar_pipe_topology_output_MS_tmp= tar_pipe_topologies[beamNr] + ".uv.dps"
+          writeXMLAvgPipeline(ofile, tar_pipe_topology_tmp, tar_pipe_predecessor,
+            tar_pipe_name_tmp, tar_pipe_description, tar_pipe_default_template,
+            flaggingStrategy, targetBeams[beamNr][8], targetDemix[beamNr][i],
+            tar_obs_uv_data_topologies[beamNr], tar_pipe_topology_output_MS_tmp,
+            cluster) 
+            
+      elif processing == 'Calibration': #TODO currently doesn't work according to Alwin's wiki, why?
+        if targetBBS[beamNr][0][0] == '':
+          raise GenException("BBS SkyModel is not specified for pipeline coupled to target beam " + str(beamNr))
+        
+        writeXMLCalPipe(ofile, tar_pipe_topologies[beamNr], tar_pipe_predecessor,
+          tar_pipe_name, tar_pipe_description, tar_pipe_default_template, flaggingStrategy,
+          targetBeams[beamNr][8], targetBBS[beamNr][0][0], targetDemix[beamNr][0],
+          targetBBS[beamNr][0][1:], tar_obs_uv_data_topologies[beamNr], 
+          tar_pipe_topologies[beamNr] + ".inst.dps", tar_pipe_topologies[beamNr] + ".inst.dps",
+          tar_pipe_topologies[beamNr] + ".uv.dps", cluster)
+
+      elif processing == 'Pulsar':
+        #tar_obs_topology_MultiObs = tar_obs_topology + '.' + str(beamNr)
+        tar_pipe_predecessor = tar_obs_topology
+        
+        writeXMLPulsarPipe(ofile, tar_pipe_topologies[beamNr], tar_obs_topology,
+          tar_pipe_name, tar_pipe_description, tar_pipe_default_template,
+          targetBeams[beamNr][8], tar_obs_bf_data_topologies[beamNr],
+          tar_pipe_topologies[beamNr] + ".pu.dps", cluster,
+          pulsar                  = targetPulsar[beamNr][0][0],
+          singlePulse             = targetPulsar[beamNr][0][1], 
+          rawTo8bit               = targetPulsar[beamNr][0][2], 
+          dspsrExtraOpts          = targetPulsar[beamNr][0][3],
+          prepdataExtraOpts       = targetPulsar[beamNr][0][4],
+          _8bitConversionSigma    = targetPulsar[beamNr][0][5],
+          tsubint                 = targetPulsar[beamNr][0][6],
+          norfi                   = targetPulsar[beamNr][0][7],
+          nofold                  = targetPulsar[beamNr][0][8],
+          nopdmp                  = targetPulsar[beamNr][0][9],
+          skipDsps                = targetPulsar[beamNr][0][10],
+          rrats                   = targetPulsar[beamNr][0][11],
+          _2bf2fitsExtraOpts      = targetPulsar[beamNr][0][12],
+          decodeSigma             = targetPulsar[beamNr][0][13],
+          decodeNblocks           = targetPulsar[beamNr][0][14],
+          rfifindExtraOpts        = targetPulsar[beamNr][0][15],
+          prepfoldExtraOpts       = targetPulsar[beamNr][0][16],
+          prepsubbandExtraOpts    = targetPulsar[beamNr][0][17],
+          dynamicSpectrumTimeAverage = targetPulsar[beamNr][0][18],
+          skipDynamicSpectrum     = targetPulsar[beamNr][0][19],
+          skipPrepfold            = targetPulsar[beamNr][0][20],
+          digifilExtraOpts        = targetPulsar[beamNr][0][21])
+        
+  # for long baseline processsing an additional (special purpose adapted) preprocessing pipeline is necessary
+  if processing == 'LongBaseline':
+    LB_preproc_pipe_template = 'Preprocessing LB'
+    LB_preproc_pipe_description = 'Phaseshift + adding CS stations'
+
+    LB_pipeline_default_template = "Long-Baseline Pipeline"
+    LB_pipeline_description = "Long-Baseline Concat"
+    
+    for beamNr in range(0, nr_beams):
+      if targetBeams[beamNr][7]: #create pipelines for this beam
+        if writePackageTag:
+          LB_preproc_pipe_name = packageTag + "/" + targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + "/PP"
+          LB_pipeline_name = packageTag + "/" + targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + "/LBP"
+        else:
+          LB_preproc_pipe_name = targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + "/PP"
+          LB_pipeline_name = targetBeams[beamNr][2] + "/" + str(repeatNr) + "." + str(beamNr) + "/LBP"
+
+        writeXMLAvgPipeline(ofile, LB_preproc_pipe_topologies[beamNr],
+          LB_preproc_pipe_predecessor[beamNr], LB_preproc_pipe_name,
+          LB_preproc_pipe_description, LB_preproc_pipe_template, flaggingStrategy,
+          targetBeams[beamNr][8], targetDemix[beamNr][0],
+          tar_pipe_topologies[beamNr] + ".uv.dps", LB_preproc_pipe_output_MS_topologies[beamNr],
+          cluster)
+
+        #nv 13okt2014: #6716 - Implement Long Baseline Pipeline     
+        writeXMLLongBaselinePipe(ofile, LB_pipeline_topologies[beamNr],
+          LB_pipeline_predecessor[beamNr], LB_pipeline_name, LB_pipeline_description,
+          LB_pipeline_default_template, targetBeams[beamNr][8], subbandsPerSubbandGroup,
+          subbandGroupsPerMS, LB_pipeline_input_uv_topologies[beamNr],
+          LB_pipeline_output_uv_topologies[beamNr], cluster)
+  
+  return imaging_pipe_inputs, imaging_pipe_predecessors, startTimeObs
+
+def writeBlock(ofile, settings, projectName, blockNr):
+  defaults = {
+  "subbandsPerFileCS": '',
+  "numberCollapsedChannelsCS": '',
+  "stokesDownsamplingStepsCS": '',
+  "whichCS": '',
+  "subbandsPerFileIS": '',
+  "numberCollapsedChannelsIS": '',
+  "stokesDownsamplingStepsIS": '',
+  "whichIS": '',
+  "tbbPiggybackAllowed":True,
+  "aartfaacPiggybackAllowed":True,
+  "imagingBBS": '',
+  "cluster":'CEP2'}
+  defaults.update(settings) #FIXME somewhat dirty hack, to be solved better later.
+  settings = defaults
+  
+  #There's a lot of stuff in settings that's only relevant to the imaging pipelines
+  #otherSettings = { key: settings[key] for key not in imagingPipelineKeys }
+       
+  writeFolderStart(ofile, settings["packageName"], settings["packageDescription"], settings["processing"])
+          
+  if settings["set_starttime"]:
+    settings["startTimeObs"] = settings["startTime"]
+  else:
+    settings["startTimeObs"] = 0
+  
+  imaging_pipe_inputs = [[] for i in range(settings["nr_beams"])]
+  imaging_pipe_predecessors = [[] for i in range(settings["nr_beams"])]
+      
+  blockTopo = "B%i." % (blockNr-1,)
+  for repeatNr in range (1, settings["nrRepeats"]+1):
+     imaging_pipe_inputs, imaging_pipe_predecessors, settings["startTimeObs"] = writeRepeat(ofile,
+       projectName, blockTopo, repeatNr, settings, imaging_pipe_inputs, imaging_pipe_predecessors)
+
+  if settings["do_imaging"]:
+    imagingPipelineKeys = ["imaging_pipe_type", "imaging_pipe_default_template", "imaging_pipe_duration",
+                           "nrSubbandsPerImage", "maxBaseline", "fieldOfView", "weightingScheme",
+                           "robustParameter", "nrOfIterations", "cleaningThreshold",
+                           "uvMin", "uvMax", "stokesToImage"]
+    for key in imagingPipelineKeys: #Can this be done with list comprehension as well?
+      if key not in settings.keys():
+        settings[key] = ''
+    ##imagingPipelineSettings = { key: settings[key] for key in imagingPipelineKeys }
+    imagingPipelineSettings = {}
+    for key in imagingPipelineKeys:
+      imagingPipelineSettings[key] = settings[key]
+    writeImagingPipeline(ofile, settings["nr_beams"], settings["targetBeams"], blockTopo,
+      settings["nrRepeats"], imaging_pipe_inputs, imaging_pipe_predecessors,
+      settings["writePackageTag"], settings["packageTag"], settings["nrImages"],
+      imagingPipelineSettings, settings["imagingBBS"], settings["cluster"])
+
+  writeFolderEnd(ofile)
+                
+def main(argv):
+  try:
+    inputfile, outputfile = parseOptions(argv)
+    ofile = open(outputfile, 'w')
+  
+    header, blocks = processInput(inputfile)
+  
+    projectName, mainFolderName, mainFolderDescription = processHeader(header)
+    writeProjectStart(ofile, VERSION, projectName)
+    if mainFolderName:
+      writeMainFolderStart(ofile, mainFolderName, mainFolderDescription)
+    for index, block in enumerate(blocks):
+      printMessage("\nProcessing BLOCK %i" % (index+1))
+      settings = readBlock(block, projectName, index+1)
+      settings = checkSettings(settings, index+1)
+      writeBlock(ofile, settings, projectName, index+1)
+    if mainFolderName:
+      writeMainFolderEnd(ofile)
+    writeProjectEnd(ofile)
+    #TODO make things not write to the ofile directly
+    # for b in block:
+    #   output += generateBlock()
+    #  ofile.write(output)
+    ofile.close()
+  except:
+    import traceback
+    traceback.print_exc(file=sys.stdout)
+    print "something went wrong here, now aborting"
+    ofile.close()
+    exit(1)
+  
+
+    
+if __name__ == "__main__":
+  main(sys.argv[1:])
+    
diff --git a/SAS/XML_generator/test/CMakeLists.txt b/SAS/XML_generator/test/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e4bc091aaad1d839331a8f99e8de88cd2415b641
--- /dev/null
+++ b/SAS/XML_generator/test/CMakeLists.txt
@@ -0,0 +1,6 @@
+# $Id: CMakeLists.txt 33087 2015-12-03 08:24:17Z schaap $
+include(LofarCTest)
+
+lofar_add_test(test_regression)
+lofar_add_test(test_error8134)
+
diff --git a/SAS/XML_generator/test/test_error8134.py b/SAS/XML_generator/test/test_error8134.py
new file mode 100755
index 0000000000000000000000000000000000000000..431484467f97bd05be55b008bd2395547451fe23
--- /dev/null
+++ b/SAS/XML_generator/test/test_error8134.py
@@ -0,0 +1,12 @@
+#! /usr/bin/env python
+from lofar.sas.xmlgenerator.xmlgen import dms2deg, hms2deg
+import sys
+
+#testing for bug #8134 Negative zero degrees were turned into positive ones
+test_dms = str(dms2deg("-00:30:00.0")) == "-0.5"
+test_hms = str(hms2deg("-00:30:00.0")) == "-7.5"
+
+if test_dms and test_hms:
+  sys.exit(0)
+else:
+  sys.exit(1)
diff --git a/SAS/XML_generator/test/test_error8134.sh b/SAS/XML_generator/test/test_error8134.sh
new file mode 100755
index 0000000000000000000000000000000000000000..9d78ee2b4fa1c364da8ccd23fd1232e44c0c307c
--- /dev/null
+++ b/SAS/XML_generator/test/test_error8134.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+./runctest.sh test_error8134
\ No newline at end of file
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/20150713_4C17.31.txt b/SAS/XML_generator/test/test_regression.in_data/txt/20150713_4C17.31.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3b5dbd6f1fd9e19fe415ef8b81295faafd777cb3
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/20150713_4C17.31.txt
@@ -0,0 +1,88 @@
+################################################################################
+## Parameters for project: LC4_010
+################################################################################
+
+
+################################################################################
+## PARAMETER FILE SETUP 
+projectName=LC4_035
+mainFolderName=4C17.31-20150713
+mainFolderDescription=4C17.31-Moon HBA 05:07:59.5;+17:23:40.0
+
+BLOCK
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=4C17.31-20150713 # name of package folder containing observation/pipelines
+packageDescription=4C17.31-Moon HBA 05:07:59.5;+17:23:40.0
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1 # Script identified wrong input in Northstar: 18000.0
+channelsPerSubband=64
+stationList=all
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=0 # duration of calibration observations in seconds
+targetDuration_s=10800 # duration of target observations in seconds
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-07-13 06:10:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Pre processing only
+
+
+targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+05:07:59.5;+17:23:40.0;4c17.31;76..394;319;;;T;10800
+Demix=4;1;64;10
+
+05:34:32.0;+22:00:52;3C144;76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,394;81;;;T;10800
+Demix=4;1;64;10
+
+
+05:10:02.37;+18:00:41.58;J0510+1800;76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,394;81;;;T;10800
+Demix=4;1;64;10
+
+
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/20150731_G46_run1_HBA.txt b/SAS/XML_generator/test/test_regression.in_data/txt/20150731_G46_run1_HBA.txt
new file mode 100644
index 0000000000000000000000000000000000000000..833e5569f2de0128ea7070e6e9453c4f26cdec94
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/20150731_G46_run1_HBA.txt
@@ -0,0 +1,220 @@
+################################################################################
+## Parameters for project: LC4_010
+################################################################################
+
+
+################################################################################
+## RUN 03: 2 targets -- duration:  30600s (  8.50h)
+## G46_lba, 19:15:36.34,+11:36:33.0
+## 3C380, 18:29:31.72,+48:44:47.0
+ 
+## PARAMETER FILE SETUP 
+projectName=LC4_010
+mainFolderName=20150731_G46_run1_HBA
+mainFolderDescription=20150731_G46_run1_HBA
+
+BLOCK
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=3C380 # name of package folder containing observation/pipelines
+packageDescription=3C380
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=2.0
+channelsPerSubband=256
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=0 # duration of calibration observations in seconds
+targetDuration_s=600 # duration of target observations in seconds
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-07-31 20:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+
+
+targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+
+18:29:31.72;+48:44:47.0;3C380RR;54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456;77;;;T;600
+Demix=1;1;64;10;;
+
+
+18:29:31.72;+48:44:47.0;3C380Con;120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332;167;;;T;600
+Demix=64;1;64;10;;
+
+BLOCK
+
+
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=20150731_G46_run1_HBA # name of package folder containing observation/pipelines
+packageDescription=20150731_G46_run1_HBA
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=2.0
+channelsPerSubband=256
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=600 # duration of calibration observations in seconds
+targetDuration_s=15000 # duration of target observations in seconds
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-07-31 20:11:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+
+
+targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+
+19:15:36.34;+11:36:33.0;G46_hba_RRL;54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456;77;;;T;15000
+
+Demix=1;1;64;10;;

+
+
+19:15:36.34;+11:36:33.0;G46_hba_CNT;120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332;167;;;T;15000
+Demix=64;1;64;10;;

+
+
+18:38:25.46;+17:12:12.4;phase_ref;54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,120,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,332,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456;244;;;T;15000
+
+Demix=64;1;64;10;;

+
+BLOCK
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=3C380 # name of package folder containing observation/pipelines
+packageDescription=3C380
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=2.0
+channelsPerSubband=256
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=0 # duration of calibration observations in seconds
+targetDuration_s=600 # duration of target observations in seconds
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-08-01 00:21:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+
+
+targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+
+18:29:31.72;+48:44:47.0;3C380RR;54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456;77;;;T;600
+Demix=1;1;64;10;;
+
+
+18:29:31.72;+48:44:47.0;3C380Con;120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332;167;;;T;600
+Demix=64;1;64;10;;
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/20150810_P247P244.txt b/SAS/XML_generator/test/test_regression.in_data/txt/20150810_P247P244.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9cdf66d1df1b67fd484f45c83ba5658d2dbe5591
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/20150810_P247P244.txt
@@ -0,0 +1,248 @@
+
+projectName=LC4_034
+mainFolderName=P247+45P244+48
+mainFolderDescription=Preprocessing:HBA Dual Inner, 110-190MHz, 8bits, 48MHz@144MHz, 1s, 64ch/sb
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                 # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Preprocessing                         # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=20150810_3C196              # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=all                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+#calibratorDuration_s=600                # duration of calibration observations in seconds
+targetDuration_s=600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+#Global_Demix=16;4;64;10;CasA,CygA;
+#Global_Subbands=104..347;244
+Global_Subbands=104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447;244
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-08-10 15:49:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+08:13:36.07;+48:13:02.5;3C196;;;;;T;600
+BBS=3C196;;;T
+Demix=4;2;64;10
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+08:13:36.07;+48:13:02.5;3C196;;;;;T;600
+Demix=4;2;64;10;;;F
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                 # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Preprocessing                         # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=20150810P247+45P244+48             # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=all                      # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+#calibratorDuration_s=600                # duration of calibration observations in seconds
+targetDuration_s=28800                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+#Global_Demix=16;4;64;10;CasA,CygA;
+#Global_Subbands=104..347;244
+Global_Subbands=104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447;244
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-08-10 16:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+08:13:36.07;+48:13:02.5;3C196;;;;;T;600
+BBS=3C196;;;T
+Demix=4;2;64;10
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+16:30:08.121;+45:06:24.384;P247+45;;;;;T;31200
+Demix=4;1;64;10;;;F
+16:18:04.590;+47:35:50.783;P244+48;;;;;T;31200
+Demix=4;1;64;10;;;F
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                 # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Preprocessing                         # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=20150811_3C295              # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=all                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+#calibratorDuration_s=600                # duration of calibration observations in seconds
+targetDuration_s=600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+#Global_Demix=16;4;64;10;CasA,CygA;
+#Global_Subbands=104..347;244
+Global_Subbands=104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447;244
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-08-11 00:01:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+14:11:20.5;+52:12:10.0;3C295;;;;;T;600
+BBS=3C295;;;T
+Demix=4;2;64;10
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+14:11:20.5;+52:12:10.0;3C295;;;;;T;600
+Demix=4;2;64;10;;;F
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
\ No newline at end of file
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/2MASS_1.txt b/SAS/XML_generator/test/test_regression.in_data/txt/2MASS_1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..4ebacd299bde45a619083315784458b757589bc6
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/2MASS_1.txt
@@ -0,0 +1,166 @@
+################################################################################
+## Parameters for project: LC4_031
+################################################################################
+
+ 
+################################################################################
+## RUN 05: 1 targets -- duration:  43200s ( 12.00h)  in two runs 14400s and 28800s (4h and 8h)
+## 2MASS J14324216+3451429, 14:32:42.17,+34:51:43.0
+## New coord 14:32:41.968,+34:51:41.97
+ 
+## PARAMETER FILE SETUP 
+projectName=LC4_031
+mainFolderName=2MASS_run1
+mainFolderDescription=Preprocessing:HBA Dual, 110-190MHz, 8bits, 48MHz@144MHz,1s,64ch/sb
+BLOCK
+
+split_targets = F # T/F
+calibration = external     # internal / external / none
+create_calibrator_observations = T # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=J14324216+3451429 run 1 # name of package folder containing observation/pipelines
+packageDescription=2MASS J14324216+3451429 run 1, HBA Dual, 110-190MHz,8bits, 48MHz@144MHz,1s,64ch/sb
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=600 # duration of calibration observations in seconds
+targetDuration_s=28800 # duration of target observations in seconds
+
+startTimeUTC=2015-06-09 19:49:00
+timeStep1=60
+timeStep2=60
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Pre processing only
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+calibratorBeam=
+14:11:20.47;+52:12:10.0;3C 295;102..349;248;;;T;600
+Demix=8;4;8;4;;
+# BBS: Add parameters if BBS needed
+
+targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+## calibratorBeam=
+14:32:41.968;+34:51:41.97;2MASS J14324216+3451429;102..349;248;;;T;28800
+Demix=8;4;8;4;;
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+
+################################################################################
+
+BLOCK
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = T # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=3C295_cal2 # name of package folder containing observation/pipelines
+packageDescription=HBA Dual, 110-190MHz,8bits, 48MHz@144MHz,1s,64ch/sb
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=600 # duration of calibration observations in seconds
+targetDuration_s=600 #14400 # duration of target observations in seconds
+
+startTimeUTC=2015-06-10 04:01:00
+timeStep1=60
+timeStep2=60
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Pre processing only
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+#calibratorBeam=
+14:11:20.47;+52:12:10.0;3C 295;102..349;248;;;T;600
+Demix=8;4;8;4;;
+# BBS: Add parameters if BBS needed
+
+#targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+## calibratorBeam=
+#15:01:08.132;+22:50:1.16;TVLM 513-46546;102..349;248;;;T;14400
+#Demix=8;4;8;4;;
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+################################################################################
+ 
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/B1834620_HBA_LB_20150817.txt b/SAS/XML_generator/test/test_regression.in_data/txt/B1834620_HBA_LB_20150817.txt
new file mode 100644
index 0000000000000000000000000000000000000000..40714ed24ad61ab4a656970dd283cb5efe13b06c
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/B1834620_HBA_LB_20150817.txt
@@ -0,0 +1,93 @@
+
+projectName=Commissioning2015
+mainFolderName=B1834+620_phase_shift3
+mainFolderDescription=B1834+620_phase_shift HBA LB
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = external                  # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing= LongBaseline                 # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=2                                # the number of repeats of this block
+
+packageName=20150907_B1834+620              # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=B1834+620_phase_shift HBA LB
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=all                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=F
+subbandsPerSubbandGroup=16
+subbandGroupsPerMS=1
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=600                # duration of calibration observations in seconds
+targetDuration_s=3600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+#Global_Demix=16;4;64;10;CasA,CygA;
+Global_Subbands=76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384;240
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-09-07 18:45:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+18:29:31.8;+48:44:46;3C380;;;;;T;900
+BBS=3C380;;;T
+Demix=2;2;64;10;[CygA,CasA];
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+18:35:10.9;+62:04:08;B1834+620;;;;;T;1000
+Demix=2;2;64;10;[CygA,CasA];
+
+18:35:19.74;+61:19:39.1;J183519+611939;;;;;T;1000
+Demix=2;2;64;10;[CygA,CasA];
+
+
+nrSubbandsPerImage=10 # (integer, mandatory) the number of subbands grouped together to form one image
+# the following imaging parameters are all optional, if not specified the default value from the default template is used for that parameter
+maxBaseline_m=10000 # (integer) the maximum base-line in meters used in the imaging
+fieldOfView_deg=5.0 # (float) the field of view in degrees
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/LC4_020_20150813.txt b/SAS/XML_generator/test/test_regression.in_data/txt/LC4_020_20150813.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a2ec8a2470a9bc02de23e43e7d47a7c7c5804076
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/LC4_020_20150813.txt
@@ -0,0 +1,107 @@
+################################################################################
+## Parameters for project: LC4_020
+################################################################################
+
+################################################################################
+## RUN 01: 1 targets -- duration:  37800s ( 10.50h)
+## Abell 2069, 15:23:57.9,+29:53:26.0
+ 
+## PARAMETER FILE SETUP 
+projectName=LC4_020
+mainFolderName=A2069_20150813
+mainFolderDescription=A2069_20150813  15:23:57.9,+29:53:26.0
+
+BLOCK
+
+split_targets = F # T/F
+calibration = internal # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = T # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=20150813_A2069 # name of package folder containing observation/pipelines
+packageDescription=
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=LBA Outer
+clock=200 MHz
+instrumentFilter=30-90 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=LBAdefault
+calibratorDuration_s=37800 # duration of calibration observations in seconds
+targetDuration_s=37800 # duration of target observations in seconds
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss

+# un-comment the startTimeUTC to have the observation start times generated

+startTimeUTC=2015-08-13 13:00:00

+# timeStep's in seconds

+timeStep1=60

+timeStep2=60

+

+

+
+
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Calibration
+## Demixing requested: CygA CasA
+
+# calibrator beam and calibrator pipeline
+# ra; dec; target name; subband list; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by its own 'BBS:' and/or 'Demix:' settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+calibratorBeam=
+14:11:20.519;+52:12:09.97;3C295;154..397;244;;;T;37800
+Demix=4;2;64;10;CygA,CasA;
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams= 
+15:23:57.9;+29:53:26.0;Abell 2069;154..397;244;;;T;37800
+Demix=4;2;64;10;CygA,CasA;
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+
+
+
+
+
+
+
+ 
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/LC4_022_3C58_HBA_parameters.txt b/SAS/XML_generator/test/test_regression.in_data/txt/LC4_022_3C58_HBA_parameters.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d8cfdcdbef6847c6decdb8574ae10cf197bb28b1
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/LC4_022_3C58_HBA_parameters.txt
@@ -0,0 +1,182 @@
+## PARAMETER FILE SETUP 
+projectName=LC4_022
+mainFolderName=20151018_3C58
+mainFolderDescription=HBA_DUAL_INNER, 110-190 MHz, av: 16/2, imaging, 20SB/chk
+
+BLOCK
+
+split_targets = F # T/F
+calibration = external # internal / external / none
+create_calibrator_observations = T # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Imaging # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+
+imagingPipeline=standard # can be one of MSSS, standard, none
+nrSubbandsPerImage=20
+fieldOfView_deg=5.0
+
+repeat=1 # the number of repeats of this block
+
+packageName=3C196/3C58 # name of package folder containing observation/pipelines
+packageDescription=3C196/3C58 Scan
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=2.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=600 # duration of calibration observations in seconds
+targetDuration_s=20400 # duration of target observations in seconds
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Imaging
+
+
+Global_Demix=16;2;16;2;;;
+Global_Subbands=100..339;240
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-10-18 21:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+08:13:36.07;+48:13:02.6;3C196;;;;;T;1000
+BBS=3C196;;;T
+#Demix=8;2;64;10;[CasA,CygA];;
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+02:05:38.00;+64:49:42.0;3C58;;;;;T;50000
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=8;2;64;10;[CasA,CygA];;
+
+#subbandsPerSubbandGroup = 16             # the number of subbands that will be concatenated in a subband-group
+#subbandGroupsPerMS = 1                  # the number of subband-groups that will be (virually) concatenated in each measurement set
+
+BLOCK1
+
+split_targets = F # T/F
+calibration = none # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Preprocessing # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+
+#imagingPipeline=standard # can be one of MSSS, standard, none
+#nrSubbandsPerImage=20
+#fieldOfView_deg=5.0
+
+repeat=1 # the number of repeats of this block
+
+packageName=3C196 # name of package folder containing observation/pipelines
+packageDescription=3C196 Bookend Scan
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=2.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+#calibratorDuration_s=3600 # duration of calibration observations in seconds
+targetDuration_s=600 # duration of target observations in seconds
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Imaging
+
+
+Global_Demix=16;2;16;2;;;
+Global_Subbands=100..339;240
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-10-19 02:52:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+#calibratorBeam=
+#08:13:36.07;+48:13:02.6;3C196;;;;;T;50000
+#BBS=3C196;;;T
+#Demix=8;2;64;10;[CasA,CygA];;
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+08:13:36.07;+48:13:02.6;3C196;;;;;T;1000
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=8;2;64;10;[CasA,CygA];;
+
+#subbandsPerSubbandGroup = 16             # the number of subbands that will be concatenated in a subband-group
+#subbandGroupsPerMS = 1                  # the number of subband-groups that will be (virually) concatenated in each measurement set
\ No newline at end of file
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/LT5_006_4C43_HBA_calSearch_parameters.txt b/SAS/XML_generator/test/test_regression.in_data/txt/LT5_006_4C43_HBA_calSearch_parameters.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5e28b0371d618681915551af07822dc7742afe19
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/LT5_006_4C43_HBA_calSearch_parameters.txt
@@ -0,0 +1,156 @@
+################################################################################
+## Parameters for project: LT5_006
+################################################################################
+ 
+## PARAMETER FILE SETUP 
+projectName=LT5_006
+mainFolderName=20160105_4C43.15
+mainFolderDescription=HBA Dual Inner, Calibrator Search, 110-190 MHz
+
+BLOCK
+
+split_targets = F # T/F
+calibration = external # internal / external / none
+create_calibrator_observations = T # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = F # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=LongBaseline # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=4C43.15 # name of package folder containing observation/pipelines
+packageDescription=4C43.15 Calibrator Search
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0
+channelsPerSubband=64
+stationList=all
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=300 # duration of calibration observations in seconds
+targetDuration_s=1500 # duration of target observations in seconds
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Pre processing only
+
+
+Global_Demix=4;4;4;4;;;
+Global_Subbands=225..232;8
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2016-01-05 23:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+01:37:41.29950;+33:09:35.13382;3C48;;;;;T;2000
+BBS=3C48;;;T
+#Demix=8;2;64;10;[CasA,CygA];;
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+07:35:22.45;+43:44:24.8;4C43.15;225;1;;;F;2000
+07:35:21.90;+43:44:22.95;Cal1;;;;;T;1500
+07:34:08.11;+43:29:45.59;Cal2;;;;;T;1500
+07:36:56.96;+43:29:04.92;Cal3;;;;;T;1500
+07:37:15.22;+43:33:49.57;Cal4;;;;;T;1500
+07:36:35.62;+43:23:24.28;Cal5;;;;;T;1500
+07:37:49.31;+43:57:08.16;Cal6;;;;;T;1500
+07:32:44.00;+43:35:40.87;Cal7;;;;;T;1500
+07:32:11.22;+43:57:57.57;Cal8;;;;;T;1500
+07:38:09.40;+43:16:04.98;Cal9;;;;;T;1500
+07:35:21.92;+43:44:20.80;Cal10;;;;;T;1500
+07:35:35.26;+43:42:50.60;Cal11;;;;;T;1500
+07:35:28.83;+43:36:54.50;Cal12;;;;;T;1500
+07:36:11.42;+43:47:59.60;Cal13;;;;;T;1500
+07:34:20.29;+43:42:37.60;Cal14;;;;;T;1500
+07:34:25.31;+43:49:40.20;Cal15;;;;;T;1500
+07:34:30.01;+44:01:20.50;Cal16;;;;;T;1500
+07:33:57.87;+43:32:02.00;Cal17;;;;;T;1500
+07:34:09.12;+43:29:49.20;Cal18;;;;;T;1500
+07:33:52.32;+43:57:57.10;Cal19;;;;;T;1500
+07:33:42.26;+43:58:15.50;Cal20;;;;;T;1500
+07:37:15.63;+43:33:48.00;Cal21;;;;;T;1500
+07:36:58.22;+43:28:56.20;Cal22;;;;;T;1500
+07:36:35.09;+43:23:16.00;Cal23;;;;;T;1500
+07:36:16.71;+44:07:23.70;Cal24;;;;;T;1500
+07:34:12.68;+44:06:54.10;Cal25;;;;;T;1500
+07:37:38.28;+43:58:05.00;Cal26;;;;;T;1500
+07:36:23.47;+43:18:04.20;Cal27;;;;;T;1500
+07:37:49.35;+43:57:10.10;Cal28;;;;;T;1500
+07:32:43.72;+43:35:40.50;Cal29;;;;;T;1500
+07:36:49.12;+43:18:51.50;Cal30;;;;;T;1500
+07:34:03.64;+44:11:19.70;Cal31;;;;;T;1500
+07:32:31.41;+43:49:05.20;Cal32;;;;;T;1500
+07:33:45.99;+43:18:14.60;Cal33;;;;;T;1500
+07:33:57.90;+43:15:14.40;Cal34;;;;;T;1500
+07:35:01.77;+43:11:29.20;Cal35;;;;;T;1500
+07:36:49.36;+43:14:34.60;Cal36;;;;;T;1500
+07:36:46.66;+44:15:05.50;Cal37;;;;;T;1500
+07:33:52.89;+44:16:07.40;Cal38;;;;;T;1500
+07:32:08.27;+43:58:21.10;Cal39;;;;;T;1500
+07:35:40.11;+44:23:22.60;Cal40;;;;;T;1500
+07:38:45.40;+43:30:03.40;Cal41;;;;;T;1500
+07:35:53.05;+44:24:20.80;Cal42;;;;;T;1500
+07:32:29.61;+44:10:55.20;Cal43;;;;;T;1500
+07:31:32.84;+43:44:36.90;Cal44;;;;;T;1500
+07:38:09.43;+43:15:59.60;Cal45;;;;;T;1500
+07:34:33.17;+44:25:15.40;Cal46;;;;;T;1500
+07:34:04.48;+43:04:29.70;Cal47;;;;;T;1500
+07:32:55.76;+43:10:14.10;Cal48;;;;;T;1500
+07:35:57.63;+43:01:34.60;Cal49;;;;;T;1500
+07:31:33.19;+43:27:09.50;Cal50;;;;;T;1500
+07:38:00.69;+44:19:15.20;Cal51;;;;;T;1500
+07:32:28.83;+44:18:31.10;Cal52;;;;;T;1500
+07:38:30.45;+43:12:52.70;Cal53;;;;;T;1500
+07:31:17.33;+44:01:13.40;Cal54;;;;;T;1500
+07:35:43.06;+42:57:10.30;Cal55;;;;;T;1500
+07:38:23.18;+43:09:25.00;Cal56;;;;;T;1500
+07:39:44.72;+43:33:33.80;Cal57;;;;;T;1500
+07:39:02.07;+44:12:46.80;Cal58;;;;;T;1500
+07:35:27.64;+42:54:51.70;Cal59;;;;;T;1500
+07:35:21.91;+43:44:18.34;Cal60;;;;;T;1500
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=8;2;64;10;[CasA,CygA];;
+
+subbandsPerSubbandGroup = 8             # the number of subbands that will be concatenated in a subband-group
+subbandGroupsPerMS = 1                  # the number of subband-groups that will be (virually) concatenated in each measurement set
+
+
+BLOCK
\ No newline at end of file
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/MSSS_20151207_testmultipipe.txt b/SAS/XML_generator/test/test_regression.in_data/txt/MSSS_20151207_testmultipipe.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e26364647e71dc53ead3c8378cca2d497997b524
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/MSSS_20151207_testmultipipe.txt
@@ -0,0 +1,130 @@
+
+projectName=LOFAROBS
+mainFolderName=multi_pipelines_20151207
+mainFolderDescription=multi_pipelines_20151207
+
+
+BLOCK1
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  # internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = T              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Preprocessing              # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=20151207_MSSS_LBA_test             # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=20151207_MSSS_LBA_test  LST 0
+packageTag=MSSSLBA                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=LBA Inner
+clock=200 MHz
+instrumentFilter=30-90 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=nl                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+subbandsPerSubbandGroup=1
+subbandGroupsPerMS=1
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=LBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=300                # duration of calibration observations in seconds
+targetDuration_s=300              # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+#Global_Demix=16;4;64;10;CasA,CygA;
+#Global_Subbands=
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-12-07 22:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+19:59:28.3;+40:44:02;CygA;154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;80;;;T;7000
+#BBS=CygA;;;T
+Demix=8;2;64;10;[CasA]
+Demix=64;5;64;10;[CasA]
+#TAB:
+#c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+
+00:00:00.00;+30:00:00.0;L000+30;154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;80;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+00:22:33.02;+30:00:00.0;L005+30;154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;80;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+
+23:37:26.98;+30:00:00.0;L354+30;154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;80;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+
+23:48:43.49;+34:13:41.5;L357+34;275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;40;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+
+00:11:16.51;+34:13:41.5;L003+34;275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;40;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+
+23:48:43.49;+25:46:18.5;L357+25;275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;40;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+00:11:16.51;+25:46:18.5;L003+25;275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383;40;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+00:00:00.00;+90:00:00.0;NCP;306,307,308,309,310,311,312,313;8;;;T;5000
+Demix=8;2;64;10;[CygA,CasA]
+Demix=64;5;64;10;[CygA,CasA]
+
+
+
+
+
+nrSubbandsPerImage=10 # (integer, mandatory) the number of subbands grouped together to form one image
+# the following imaging parameters are all optional, if not specified the default value from the default template is used for that parameter
+maxBaseline_m=10000 # (integer) the maximum base-line in meters used in the imaging
+fieldOfView_deg=5.0 # (float) the field of view in degrees
+
+BLOCK
+
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/Ticket_6923.txt b/SAS/XML_generator/test/test_regression.in_data/txt/Ticket_6923.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9044bc3ae9f8725b5b0da4c10567bab4809e4760
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/Ticket_6923.txt
@@ -0,0 +1,368 @@
+projectName=LC2_040                  # be careful! Don't make typos here. Or otherwise a non-valid project will be created in mom
+mainFolderName=20141116-gr5                         # the name of the folder that will contain all blocks, if left unspecified no main folder will be created
+mainFolderDescription=Group 5
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  # internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=none                      # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=HBA_110-150          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA 110-150
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=1
+stationList=core                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=false
+###### Which data types should be produced: ######
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=34
+numberCollapsedChannelsCS=1
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Incoherent Stokes parameters ######
+subbandsPerFileIS=34
+numberCollapsedChannelsIS=1
+stokesDownsamplingStepsIS=1
+whichIS=I
+
+targetDuration_s=720                    # duration of target observations in seconds
+
+Global_Subbands=55..258;204
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-11-16 05:00:00
+
+startTimeUTC=2014-11-16 05:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+targetBeams=
+2.1478470106493823;0.51756269982438086;Tile Beam;116;1;;;F
+TAB:
+c;2.1478470106493823;0.51756269982438086
+
+2.2245199428269369;0.46733003925315525;GJ 1111;;;;;F
+TAB:
+c;2.2245199428269369;0.46733003925315525
+c;2.2115821806921634;0.46465915220255471
+
+2.0711740784718282;0.56779536039560641;PSR B0751+32;;;;;F
+TAB:
+c;2.0711740784718282;0.56779536039560641
+c;2.0886045362673911;0.57229612820418674
+
+2.0557911129638931;0.31638263544495809;PSR J0751+1807;55..122;68;;;F
+TAB:
+c;2.0557911129638931;0.31638263544495809
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  	# internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=none                      	# can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=HBA_150-190          	# the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA 150-190
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=1
+stationList=core                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=false
+###### Which data types should be produced: ######
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=34
+numberCollapsedChannelsCS=1
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Incoherent Stokes parameters ######
+subbandsPerFileIS=34
+numberCollapsedChannelsIS=1
+stokesDownsamplingStepsIS=1
+whichIS=I
+
+targetDuration_s=720                    # duration of target observations in seconds
+
+Global_Subbands=256..459;204
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-11-16 05:15:00
+
+startTimeUTC=2014-11-16 05:15:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+targetBeams=
+2.1478470106493823;0.51756269982438086;Tile Beam;256;1;;;F
+TAB:
+c;2.1478470106493823;0.51756269982438086
+
+2.2245199428269369;0.46733003925315525;GJ 1111;;;;;F
+TAB:
+c;2.2245199428269369;0.46733003925315525
+c;2.2115821806921634;0.46465915220255471
+
+2.0711740784718282;0.56779536039560641;PSR B0751+32;;;;;F
+TAB:
+c;2.0711740784718282;0.56779536039560641
+c;2.0886045362673911;0.57229612820418674
+
+2.0557911129638931;0.31638263544495809;PSR J0751+1807;256..323;68;;;F
+TAB:
+c;2.0557911129638931;0.31638263544495809
+
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  # internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=none                      # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=HBA_210-250 A          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=HBA 210-250 part A
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=210-250 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=1
+stationList=core                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=false
+###### Which data types should be produced: ######
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=34
+numberCollapsedChannelsCS=1
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Incoherent Stokes parameters ######
+subbandsPerFileIS=34
+numberCollapsedChannelsIS=1
+stokesDownsamplingStepsIS=1
+whichIS=I
+
+targetDuration_s=720                    # duration of target observations in seconds
+
+Global_Subbands=52..255;204
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-11-16 05:30:00
+
+startTimeUTC=2014-11-16 05:30:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+targetBeams=
+2.1478470106493823;0.51756269982438086;Tile Beam;52;1;;;F
+TAB:
+c;2.1478470106493823;0.51756269982438086
+
+2.2245199428269369;0.46733003925315525;GJ 1111;;;;;F
+TAB:
+c;2.2245199428269369;0.46733003925315525
+c;2.2115821806921634;0.46465915220255471
+
+2.0711740784718282;0.56779536039560641;PSR B0751+32;;;;;F
+TAB:
+c;2.0711740784718282;0.56779536039560641
+c;2.0886045362673911;0.57229612820418674
+
+2.0557911129638931;0.31638263544495809;PSR J0751+1807;52..119;68;;;F
+TAB:
+c;2.0557911129638931;0.31638263544495809
+
+BLOCK
+
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  # internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=none                      # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=LBA_10-50          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=Test LBA 10-50
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=LBA Outer
+clock=200 MHz
+instrumentFilter=10-90 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=1
+stationList=core                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=false
+###### Which data types should be produced: ######
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=34
+numberCollapsedChannelsCS=1
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Incoherent Stokes parameters ######
+subbandsPerFileIS=34
+numberCollapsedChannelsIS=1
+stokesDownsamplingStepsIS=1
+whichIS=I
+
+targetDuration_s=720                    # duration of target observations in seconds
+
+Global_Subbands=54..257;204
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-11-16 05:45:00
+
+startTimeUTC=2014-11-16 05:45:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+targetBeams=
+2.1478470106493823;0.51756269982438086;Tile Beam;54;1;;;F
+TAB:
+c;2.1478470106493823;0.51756269982438086
+
+2.2245199428269369;0.46733003925315525;GJ 1111;;;;;F
+TAB:
+c;2.2245199428269369;0.46733003925315525
+c;2.2115821806921634;0.46465915220255471
+
+2.0711740784718282;0.56779536039560641;PSR B0751+32;;;;;F
+TAB:
+c;2.0711740784718282;0.56779536039560641
+c;2.0886045362673911;0.57229612820418674
+
+2.0557911129638931;0.31638263544495809;PSR J0751+1807;154..221;68;;;F
+TAB:
+c;2.0557911129638931;0.31638263544495809
+
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                  # internal / external / none
+create_calibrator_observations = F      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=none                      # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=LBA_50-90          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=Test LBA 50-90
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=LBA Outer
+clock=200 MHz
+instrumentFilter=30-90 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=1
+stationList=core                        # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=false
+###### Which data types should be produced: ######
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=34
+numberCollapsedChannelsCS=1
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Incoherent Stokes parameters ######
+subbandsPerFileIS=34
+numberCollapsedChannelsIS=1
+stokesDownsamplingStepsIS=1
+whichIS=I
+
+targetDuration_s=720                    # duration of target observations in seconds
+
+Global_Subbands=256..459;204
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-11-16 06:00:00
+
+startTimeUTC=2014-11-16 06:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+targetBeams=
+2.1478470106493823;0.51756269982438086;Tile Beam;256;1;;;F
+TAB:
+c;2.1478470106493823;0.51756269982438086
+
+2.2245199428269369;0.46733003925315525;GJ 1111;;;;;F
+TAB:
+c;2.2245199428269369;0.46733003925315525
+c;2.2115821806921634;0.46465915220255471
+
+2.0711740784718282;0.56779536039560641;PSR B0751+32;;;;;F
+TAB:
+c;2.0711740784718282;0.56779536039560641
+c;2.0886045362673911;0.57229612820418674
+
+2.0557911129638931;0.31638263544495809;PSR J0751+1807;256..323;68;;;F
+TAB:
+c;2.0557911129638931;0.31638263544495809
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/hd156279b_reference.txt b/SAS/XML_generator/test/test_regression.in_data/txt/hd156279b_reference.txt
new file mode 100644
index 0000000000000000000000000000000000000000..84e07e942ff699dab151a407e124efe79c213c53
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/hd156279b_reference.txt
@@ -0,0 +1,98 @@
+################################################################################
+## Parameters for project: LC4_012
+################################################################################
+
+
+################################################################################
+## RUN 06: 2 targets -- duration:  21600s (  6.00h)
+## HD 156279, 17:12:23.19,+63:20:8.0
+## 3C380, 18:29:31.72,+48:44:46.95
+ 
+## PARAMETER FILE SETUP 
+projectName=LC4_012
+mainFolderName=HD152679
+mainFolderDescription=LBA outer 8ch/sb 1s Dutch
+
+BLOCK
+
+split_targets = F # T/F
+calibration = internal # internal / external / none
+create_calibrator_observations = F # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = T # create cal-beam in target observation (T/F ignored if calibration is none)
+#processing=Calibration # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+processing=Imaging # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none # can be one of MSSS, standard, none
+repeat=1 # the number of repeats of this block
+
+packageName=20150616 # name of package folder containing observation/pipelines
+packageDescription=Apastron observation
+packageTag= # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=LBA Outer
+clock=200 MHz
+instrumentFilter=30-90 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0
+channelsPerSubband=64
+stationList=nl
+tbbPiggybackAllowed=F
+aartfaacPiggybackAllowed=F
+
+###### Which data types should be produced: ######
+
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+
+###### Coherent Stokes parameters ######
+#subbandsPerFileCS=
+#numberCollapsedChannelsCS=
+#stokesDownsamplingStepsCS=
+#whichCS=
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=LBAdefault
+calibratorDuration_s=21600                      # duration of calibration observations in seconds
+targetDuration_s=21600                       # duration of target observations in seconds
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-06-16 20:00:00
+# timeStep in seconds
+timeStep1=60
+timeStep2=60
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Calibration
+## Demixing requested: CygA CasA
+
+Global_Demix=8;1;8;1;CygA,CasA
+
+##targetBeams=  ## MAKE SURE TO SELECT THIS PROPERLY
+calibratorBeam=
+18:29:31.72;+48:44:46.95;3C380;154..397;244;;;T;43200
+BBS:3C380;;;T
+
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+
+targetBeams=
+17:12:23.20;+63:21:07.5;HD156279;154..397;244;;;T;43200
+BBS:;;;T
+
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+## Demixing requested: CygA CasA
+
+
+
+################################################################################
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/lc4_019_1.txt b/SAS/XML_generator/test/test_regression.in_data/txt/lc4_019_1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fb56500a44bed7f3bff5bee1abbb0f97e9d8c5fc
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/lc4_019_1.txt
@@ -0,0 +1,91 @@
+################################################################################
+## Parameters for project: LC4_019
+################################################################################
+
+################################################################################
+## RUN 01: 1 targets -- duration:  14400s (  4.00h)
+## PSR B0031-07, 00:34:8.86,-07:21:53.0
+ 
+## PARAMETER FILE SETUP 
+projectName=LC4_019
+mainFolderName=20150513
+mainFolderDescription=HBA Coherent Stokes
+
+BLOCK
+
+split_targets = F                                      # T/F
+calibration = none                                     # internal / external / none
+create_calibrator_observations = F                     # create cal-observations before target (T/F ignored if calibration is none)
+create_target_cal_beam = T                             # create cal-beam in target observation (T/F ignored if calibration is none)
+processing=Pulsar                                      # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                                   # can be one of MSSS, standard, none
+repeat=1                                               # the number of repeats of this block
+
+packageName=B0031-07                                         # name of package folder containing observation/pipelines
+packageDescription=
+packageTag=                                            # optional tag to be prepended before every obs/pipeline name/description (max 8 chars)
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8 # Change to 16 if requested
+integrationTime=1.0                                  # ignored for raw voltages
+channelsPerSubband=32                               # ignored for raw voltages
+stationList=core
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+###### Which data types should be produced: ######
+
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=F
+
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=20
+numberCollapsedChannelsCS=32
+stokesDownsamplingStepsCS=1
+whichCS=XXYY
+###### Coherent Stokes parameters ######
+#subbandsPerFileIS=
+#numberCollapsedChannelsIS=
+#stokesDownsamplingStepsIS=
+#whichIS=
+
+flaggingStrategy=HBAdefault
+calibratorDuration_s=28800                            # duration of calibration observations in seconds
+targetDuration_s=14400		                      # duration of target observations in seconds
+
+
+
+###### Pipeline settings ######
+## GENERAL INFO
+## Processing mode: Calibration
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2015-05-13 06:00:00
+
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+
+
+## calibratorBeam=
+targetBeams=                                               
+00:34:8.86;-07:21:53.0;PSR_B0031-07;51..450;400;;;T;28800
+Pulsar:B0031-07;;;"-U minX1";;;;;;;;;;;;;;;;;
+TAB:
+c;00:34:8.86;-07:21:53.0
+
+
+#Demix=NULL;NULL;<TBD>;<TBD>;;
+# BBS: Add parameters if BBS needed
+# Pulsar: Add parameters if pulsar pipeline needed
+
+################################################################################
+ 
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/old_Long_Baseline_test.txt b/SAS/XML_generator/test/test_regression.in_data/txt/old_Long_Baseline_test.txt
new file mode 100644
index 0000000000000000000000000000000000000000..eebd87a3af0b89e9116f72f6d028ce3fa9ed533d
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/old_Long_Baseline_test.txt
@@ -0,0 +1,86 @@
+
+projectName=test_lofar
+mainFolderName=
+mainFolderDescription=
+
+BLOCK
+
+setup_mode=Calobs       # setup_mode determines the layout of the setup. Can be one of: Calobs, Calbeam, MultiObs
+processing=LongBaseline      # processing determines the type of processing done. Can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none        # can be one of MSSS, standard or none
+number_of_slices=1      # the number of repeats of all objects in this block
+
+packageName=LB_Test_20140625
+packageDescription=Long Baseline test 2014-06-25
+packageTag=
+
+create_calibrator_observations=F
+create_target_cal_beam=F
+create_extra_ncp_beam=F         # create a target beam pointing at the Northern celestial pole 
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1
+channelsPerSubband=64
+stationList=CS001,CS002,CS003,CS004,CS007,CS011,CS017,CS021,CS024,CS026,CS030,CS031,CS032,CS101,CS103,CS201,CS302,CS401,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509
+calibratorDuration_s=60
+targetDuration_s=300
+tbbPiggybackAllowed=true
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+coherentDedisperseChannels=F
+subbandsPerFileCS=32
+numberCollapsedChannelsCS=8
+stokesDownsamplingStepsCS=10
+whichCS=IQUV
+subbandsPerFileIS=16
+numberCollapsedChannelsIS=4
+stokesDownsamplingStepsIS=12
+whichIS=IQUV
+flaggingStrategy=
+
+# Imaging parameters
+nrSubbandsPerImage=10           # the number of subbands grouped together to form one image
+# the following imaging parameters are optional, if not specified the default value is used for that parameter
+imagingDuration_s=300
+maxBaseline_m=
+fieldOfView_deg=1.0
+weightingScheme=
+robustParameter=
+nrOfIterations=
+cleaningThreshold=
+uvMin_klambda=
+uvMax_klambda=
+stokesToImage=
+
+Global_Demix=16;2;64;10
+Global_Subbands=77..96;20
+Global_BBS=3C295
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+#startTimeUTC=2013-08-28 12:00:10
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+# calibrator beam and calibrator pipeline
+# ra; dec; target name; subband list; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by its own 'BBS:' and/or 'Demix:' settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+calibratorBeam=
+19:59:28.35;+40:44:02.0;3C295;;;;;T;60
+BBS:3C295;;;T
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demixer:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+targetBeams=
+18:29:31.78;+48:44:46.1;3C380;;;;;T
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/old_input.txt b/SAS/XML_generator/test/test_regression.in_data/txt/old_input.txt
new file mode 100644
index 0000000000000000000000000000000000000000..56ccd64a0a3b2ef10291aba384fe979807798744
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/old_input.txt
@@ -0,0 +1,109 @@
+
+projectName=test_lofar
+mainFolderName=
+mainFolderDescription=MSSS HBA session
+
+BLOCK
+
+# setup_mode can be one of Calobs, Calbeam, Preprocessing, Calibration
+setup_mode=Calobs
+number_of_slices=1
+
+packageName=XML_R14_Test
+packageDescription=release_14 test
+packageTag=tag2
+
+create_calibrator_observations=F
+create_target_cal_beam=T
+create_extra_ncp_beam=F
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=210-250 MHz
+numberOfBitsPerSample=8
+integrationTime=2
+channelsPerSubband=64
+stationList=CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509
+calibratorDuration_s=60
+targetDuration_s=420
+tbbPiggybackAllowed=true
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+coherentDedisperseChannels=true
+subbandsPerFileCS=32
+numberCollapsedChannelsCS=8
+stokesDownsamplingStepsCS=10
+whichCS=IQUV
+subbandsPerFileIS=16
+numberCollapsedChannelsIS=4
+stokesDownsamplingStepsIS=12
+whichIS=I
+
+
+# Imaging parameters
+imagingPipeline=standard
+nrSubbandsPerImage=10
+# the following imaging parameters are optional, if not specified the default value is used for that parameter
+imagingDuration_s=300
+maxBaseline_m=
+fieldOfView_deg=
+weightingScheme=
+robustParameter=
+nrOfIterations=
+cleaningThreshold=
+uvMin_klambda=
+uvMax_klambda=
+stokesToImage=
+
+
+Global_Demix=16;2;64;10
+#Global_TAB=
+#c;60deg;180deg
+#i;0.1
+#c;0.2;0.3
+
+Global_Subbands=96..105;10
+Global_TABrings=4;60deg
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+#startTimeUTC=2013-08-28 12:00:10
+# timeStep's in seconds
+timeStep1=60
+timeStep2=13760
+
+# calibrator beam and calibrator pipeline
+# ra; dec; target name; subband list; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by its own 'BBS:' and/or 'Demix:' settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+calibratorBeam=
+08:13:36.0;+48:13:03;3C196;96..105,123..132,143..152,175..184,217..226,238..247,258..267,285..298;84;;;T;60
+Demix:16;2;64;10;;;T
+BBS:3C196;;;T
+#TAB:
+#i;0.1
+#c;65deg;180deg
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demixer:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+targetBeams=
+148.920863;21.780000;H152+21;;;1;1.1;T;420
+BBS:;;;T
+151.510791;21.780000;H152+22;96..105,123..132,143..152,175..184,217..226,238..247,258..267,287..296;80;2;2.2deg;F;420
+BBS:;;;T
+149.361702;19.360000;H149+19;;;3;3.3;T;420
+BBS:;;;T
+149.558823;24.200000;H150+24;;;4;4.4;T;420
+BBS:;;;T
+#TAB:
+#i;0.1
+#c;65deg;180deg
+#c;0.5;0.6
+146.808511;19.360000;H147+19;;;;;T;420
+BBS:;;;T
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/old_pulsar_pipe_test.txt b/SAS/XML_generator/test/test_regression.in_data/txt/old_pulsar_pipe_test.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5e4127443792a89a380843a6b3be0c43ebb6390f
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/old_pulsar_pipe_test.txt
@@ -0,0 +1,68 @@
+
+projectName=test_lofar
+mainFolderName=
+mainFolderDescription=
+
+BLOCK
+
+setup_mode=MultiObs           # setup_mode can be one of Calobs, Calbeam, MultiObs
+processing=Pulsar             # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+externalCalibrator=T          # internal or external (export of solutions) calibration
+imagingPipeline=none          # can be one of MSSS, standard, none
+number_of_slices=1
+
+packageName=FE test
+
+packageDescription=Fly's eye test including pulsar pipeline
+packageTag=
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+channelsPerSubband=16
+stationList=nl               # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=true
+correlatedData=F
+coherentStokesData=T
+incoherentStokesData=F
+coherentDedisperseChannels=False
+flysEye=T
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=I
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=
+targetDuration_s=300
+
+Global_TAB=
+c;03:32:59.36;+54:34:43.5
+c;53.2473333333deg;54.57875deg
+c;0.929341284574;0.952578889123
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+#startTimeUTC=2014-04-16 12:00:10
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS:SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demixer:avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+03:32:59.36;+54:34:43.5;B0329+54;51..450;400;;;T;600
+#Pulsar:B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/test_LB.txt b/SAS/XML_generator/test/test_regression.in_data/txt/test_LB.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d5e168d88c1be953f4cb90db9047c9fd60ebcee7
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/test_LB.txt
@@ -0,0 +1,77 @@
+projectName=test-lofar
+mainFolderName=LB test
+mainFolderDescription=Long-Baseline Observing setup test
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = external                  # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=LongBaseline                # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                   # can be one of MSSS, standard, none
+repeat=2                                # the number of repeats of this block
+
+packageName=LB_Test2014_10_24
+packageDescription=Long Baseline test 2014_10_24
+packageTag=LBtest
+
+antennaMode=HBA Dual Inner
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=64
+stationList=CS002,RS106,RS205
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=T
+
+subbandGroupsPerMS=2
+subbandsPerSubbandGroup=2
+
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=F
+flysEye=F
+coherentDedisperseChannels=False
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=60                # duration of calibration observations in seconds
+targetDuration_s=300                    # duration of target observations in seconds
+
+
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+Global_Demix=16;2;64;10
+Global_Subbands=77..80;4
+
+#Global_BBS=3C295
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+#startTimeUTC=2013-08-28 12:00:10
+
+# timeStep's in seconds
+
+timeStep1=60
+timeStep2=60
+
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+calibratorBeam=
+14:11:20.05;+52:12:10.0;3C295;;;;;T;60
+BBS:3C295;;;T
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+
+targetBeams=
+18:29:31.78;+48:44:46.1;3C380;;;;;T
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/test_input.txt b/SAS/XML_generator/test/test_regression.in_data/txt/test_input.txt
new file mode 100644
index 0000000000000000000000000000000000000000..4027dc0e2f21d084b9f13a6b8133c5d6a9c544e6
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/test_input.txt
@@ -0,0 +1,86 @@
+projectName=test_lofar                  # be careful! Don't make typos here. Or otherwise a non-valid project will be created in mom
+mainFolderName=                         # the name of the folder that will contain all blocks, if left unspecified no main folder will be created
+mainFolderDescription=
+
+BLOCK
+
+split_targets = T                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                      # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = T              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Pulsar                       # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=2                                # the number of repeats of this block
+
+packageName=alwin1          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=example template
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=16
+stationList=nl                          # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=F
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=T
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=120                # duration of calibration observations in seconds
+targetDuration_s=600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+Global_Demix=64;10;64;10;CasA,CygA;
+
+Global_Subbands=104..334, 341, 349, 364, 372, 380, 388, 396, 404, 413, 421, 430, 438, 447;244
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-07-07 12:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+19:59:28.35;+40:44:02.0;3C295;;;;;T;60
+BBS=3C295;;;T
+#Demix=
+TAB:
+c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+05:34:51.94;+22:00:52.2;Crab test;54..297;244;;;T;600
+#Demix=16;1;16;1
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
\ No newline at end of file
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/test_input_cep4.txt b/SAS/XML_generator/test/test_regression.in_data/txt/test_input_cep4.txt
new file mode 100644
index 0000000000000000000000000000000000000000..14c4ed71de96de54af8637d8a3fda63e59139237
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/test_input_cep4.txt
@@ -0,0 +1,87 @@
+projectName=test_lofar                  # be careful! Don't make typos here. Or otherwise a non-valid project will be created in mom
+mainFolderName=                         # the name of the folder that will contain all blocks, if left unspecified no main folder will be created
+mainFolderDescription=
+
+BLOCK
+
+cluster=CEP4
+split_targets = T                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = none                      # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = T              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=Pulsar                       # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=2                                # the number of repeats of this block
+
+packageName=alwin1          # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=example template
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=16
+stationList=nl                          # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=F
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=T
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=120                # duration of calibration observations in seconds
+targetDuration_s=600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+Global_Demix=64;10;64;10;CasA,CygA;
+
+Global_Subbands=104..334, 341, 349, 364, 372, 380, 388, 396, 404, 413, 421, 430, 438, 447;244
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-07-07 12:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+19:59:28.35;+40:44:02.0;3C295;;;;;T;60
+BBS=3C295;;;T
+#Demix=
+TAB:
+c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+05:34:51.94;+22:00:52.2;Crab test;54..297;244;;;T;600
+#Demix=16;1;16;1
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..297;244;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/txt/test_input_long_baseline_pipeline.txt b/SAS/XML_generator/test/test_regression.in_data/txt/test_input_long_baseline_pipeline.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8106327a4bc077649ebb129e1e6bc55836db52f0
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/txt/test_input_long_baseline_pipeline.txt
@@ -0,0 +1,89 @@
+projectName=test-lofar                  # be careful! Don't make typos here. Or otherwise a non-valid project will be created in mom
+mainFolderName=                         # the name of the folder that will contain all blocks, if left unspecified no main folder will be created
+mainFolderDescription=
+
+BLOCK
+
+split_targets = F                       # true:create a separate target observation for every target (beam) line or false:combine them in a multi-beam observation
+calibration = internal                  # internal / external / none
+create_calibrator_observations = T      # create calibration observations before target observations? (ignored if calibration = none)
+create_target_cal_beam = F              # create a calibration beam in the target observation(s)? (ignored if calibration = none)
+processing=LongBaseline                 # can be one of Calibration, Preprocessing, Imaging, Pulsar, LongBaseline, none
+imagingPipeline=none                    # can be one of MSSS, standard, none
+repeat=1                                # the number of repeats of this block
+
+packageName=Testing xmlgen-2.6.0        # the name that will be given to the package folder that contains this block's observation and pipelines
+packageDescription=Testing XML-Generator 2.6.0 - LongBaseline
+packageTag=                             # optional tag that will be prepended before every observation and pipeline name/description (Max 8 characters).
+
+antennaMode=HBA Dual
+clock=200 MHz
+instrumentFilter=110-190 MHz
+numberOfBitsPerSample=8
+integrationTime=1.0
+channelsPerSubband=16
+stationList=nl                          # comma-separated list of station names and/or the following aliasses: core, superterp, remote, international, all, nl
+tbbPiggybackAllowed=T
+aartfaacPiggybackAllowed=F
+###### Which data types should be produced: ######
+correlatedData=T
+coherentStokesData=F
+incoherentStokesData=T
+flysEye=F
+coherentDedisperseChannels=False
+###### Coherent Stokes parameters ######
+subbandsPerFileCS=512
+numberCollapsedChannelsCS=16
+stokesDownsamplingStepsCS=128
+whichCS=IQUV
+###### Incoherent Stokes parameters ######
+#subbandsPerFileIS=16
+#numberCollapsedChannelsIS=4
+#stokesDownsamplingStepsIS=12
+#whichIS=IQUV
+
+subbandsPerSubbandGroup=8			    # number of subbands per subbandGroup for Long Baseline Pipeline (Concat)
+subbandGroupsPerMS=8                    # number of subbandgroups per MeasurementSet for Long Baseline Pipeline (Concat)
+flaggingStrategy=HBAdefault             # flagging strategy used for AOflagger
+calibratorDuration_s=120                # duration of calibration observations in seconds
+targetDuration_s=600                    # duration of target observations in seconds
+
+###### Globals are used when a target/calibration line does not have its own specific parameter specified for that property ######
+#Global_TAB=
+#c;05:34:51.94;+22:00:52.2              # a coherent tab with absolute coordinates 05:34:51.94, +22:00:52.2
+#Global_TABrings=1;0.1                   # nr of tabrings and tabring size
+#Global_Pulsar=B0329+54;T;T;DSPSR EXTRA OPTIONS;PREPDATA;5.1;-2;F;F;F;F;F;2BF2FITS;4;101;RFI FIND EXTRA OPTIONS;PREPFOLD EXTRA;PREPSUBBAND Extra; 0.6;T;T
+Global_Demix=64;10;64;10;CasA,CygA;
+
+Global_Subbands=104..330, 341, 349, 364, 372, 380, 388, 396, 404, 413, 421, 430, 438, 447;240
+
+
+# startTimeUTC, the start time of the first observation. format: yyyy-MM-dd hh:mm:ss
+# un-comment the startTimeUTC to have the observation start times generated
+startTimeUTC=2014-07-07 12:00:00
+# timeStep's in seconds
+timeStep1=60
+timeStep2=60
+
+calibratorBeam=
+19:59:28.35;+40:44:02.0;3C295;;;;;T;60
+BBS=3C295;;;T
+#Demix=
+TAB:
+c;05:34:51.94;+22:00:52.2
+
+# target beams and target pipelines
+# ra ;dec; targetname; subbandList; nrSubbands; nrTABrings; TABringSize; create_pipeline [;pipeline duration seconds]
+# optionally followed by BBS and/or demixing settings
+# BBS: SkyModel;BBS_baselines;BBS_correlations;BBS_beamModelEnable;BBS_solveParms;BBS_solveUVRange;BBS_strategyBaselines;BBS_strategyTimeRange
+# Demix: avg freq step; avg time step; demix freq step; demix time step; demix_always; demix_if_needed; ignore_target
+# Pulsar: pulsar; single-pulse; raw-to-8bit; dspsr-extra-opts; prepdata-extra-opts; 8bit-conversion-sigma; tsubint; norfi; nofold; nopdmp; skip-dspsr; rrats; 2bf2fits-extra-opts; decode-sigma; decode-nblocks; rfifind-extra-opts; prepfold-extra-opts; prepsubband-extra-opts; dynamic-spectrum-time-average; skip-dynamic-spectrum; skip-prepfold
+
+targetBeams=
+05:34:51.94;+22:00:52.2;Crab test;54..293;240;;;T;600
+#Demix=16;1;16;1
+#Pulsar=B0531+21;;T;;;;;;;;;;;;;;;;;;
+#0.0417300951946;0.00558069028325;Sun;54..293;240;;;T;8100
+#Demix=16;1;16;1
+
+BLOCK
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/20150713_4C17.31.xml b/SAS/XML_generator/test/test_regression.in_data/xml/20150713_4C17.31.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d8fefbb9fe9799653e5a26230cce09b6cb6bcfff
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/20150713_4C17.31.xml
@@ -0,0 +1,315 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_035</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>4C17.31-20150713</name>
+              <description>4C17.31-Moon HBA 05:07:59.5;+17:23:40.0</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>4C17.31-20150713</name>
+                <description>4C17.31-Moon HBA 05:07:59.5;+17:23:40.0 (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>4c17.31/1/TO</name>
+                  <description>4c17.31/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>4c17.31/1/TO</name>
+                    <projectName>LC4_035</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-07-13T06:10:00</startTime>
+                      <endTime>2015-07-13T09:10:00</endTime>
+                      <duration>10800</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>4c17.31</name>
+                        <description>4c17.31</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>4c17.31</targetName>
+                            <ra>76.9979166667</ra>
+                            <dec>17.3944444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76..394</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C144</name>
+                        <description>3C144</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C144</targetName>
+                            <ra>83.6333333333</ra>
+                            <dec>22.0144444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,394</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>J0510+1800</name>
+                        <description>J0510+1800</description>
+                        <topology>B0.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>J0510+1800</targetName>
+                            <ra>77.509875</ra>
+                            <dec>18.01155</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,394</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP002.uv.dps</name>
+                    <topology>B0.1.T.SAP002.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>4c17.31/1.0/TP</name>
+                <description>4c17.31/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>10800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.uv.dps</name>
+                      <topology>B0.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C144/1.1/TP</name>
+                <description>3C144/1.1/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>10800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT1.uv.dps</name>
+                      <topology>B0.1.PT1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT2</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>J0510+1800/1.2/TP</name>
+                <description>J0510+1800/1.2/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>10800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP002.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT2.uv.dps</name>
+                      <topology>B0.1.PT2.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/20150731_G46_run1_HBA.xml b/SAS/XML_generator/test/test_regression.in_data/xml/20150731_G46_run1_HBA.xml
new file mode 100644
index 0000000000000000000000000000000000000000..07760990c46bebdd52077c822137548c87508058
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/20150731_G46_run1_HBA.xml
@@ -0,0 +1,755 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_010</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>20150731_G46_run1_HBA</name>
+              <description>20150731_G46_run1_HBA</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>3C380</name>
+                <description>3C380 (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C380RR/1/TO</name>
+                  <description>3C380RR/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C380RR/1/TO</name>
+                    <projectName>LC4_010</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>256</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-07-31T20:00:00</startTime>
+                      <endTime>2015-07-31T20:10:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380RR</name>
+                        <description>3C380RR</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380RR</targetName>
+                            <ra>277.382166667</ra>
+                            <dec>48.7463888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380Con</name>
+                        <description>3C380Con</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380Con</targetName>
+                            <ra>277.382166667</ra>
+                            <dec>48.7463888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C380RR/1.0/TP</name>
+                <description>3C380RR/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>1</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.uv.dps</name>
+                      <topology>B0.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C380Con/1.1/TP</name>
+                <description>3C380Con/1.1/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT1.uv.dps</name>
+                      <topology>B0.1.PT1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150731_G46_run1_HBA</name>
+                <description>20150731_G46_run1_HBA (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>G46_hba_RRL/1/TO</name>
+                  <description>G46_hba_RRL/1/TO (Target Observation)</description>
+                  <topology>B1.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>G46_hba_RRL/1/TO</name>
+                    <projectName>LC4_010</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>256</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-07-31T20:11:00</startTime>
+                      <endTime>2015-08-01T00:21:00</endTime>
+                      <duration>15000</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>G46_hba_RRL</name>
+                        <description>G46_hba_RRL</description>
+                        <topology>B1.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>G46_hba_RRL</targetName>
+                            <ra>288.901416667</ra>
+                            <dec>11.6091666667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP000.uv.dps</name>
+                    <topology>B1.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>G46_hba_CNT</name>
+                        <description>G46_hba_CNT</description>
+                        <topology>B1.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>G46_hba_CNT</targetName>
+                            <ra>288.901416667</ra>
+                            <dec>11.6091666667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP001.uv.dps</name>
+                    <topology>B1.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>phase_ref</name>
+                        <description>phase_ref</description>
+                        <topology>B1.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>phase_ref</targetName>
+                            <ra>279.606083333</ra>
+                            <dec>17.2034444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,120,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,332,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP002.uv.dps</name>
+                    <topology>B1.1.T.SAP002.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT0</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>G46_hba_RRL/1.0/TP</name>
+                <description>G46_hba_RRL/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>15000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>1</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT0.uv.dps</name>
+                      <topology>B1.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT1</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>G46_hba_CNT/1.1/TP</name>
+                <description>G46_hba_CNT/1.1/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>15000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT1.uv.dps</name>
+                      <topology>B1.1.PT1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT2</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>phase_ref/1.2/TP</name>
+                <description>phase_ref/1.2/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>15000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP002.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT2.uv.dps</name>
+                      <topology>B1.1.PT2.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>3C380</name>
+                <description>3C380 (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C380RR/1/TO</name>
+                  <description>3C380RR/1/TO (Target Observation)</description>
+                  <topology>B2.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C380RR/1/TO</name>
+                    <projectName>LC4_010</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>256</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-08-01T00:21:00</startTime>
+                      <endTime>2015-08-01T00:31:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380RR</name>
+                        <description>3C380RR</description>
+                        <topology>B2.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380RR</targetName>
+                            <ra>277.382166667</ra>
+                            <dec>48.7463888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54,58,62,67,71,76,80,81,85,90,94,95,99,104,109,114,119,124,129,134,140,145,150,156,161,166,167,172,178,183,184,189,195,201,207,213,219,225,231,238,244,250,257,263,264,270,277,284,290,291,297,298,304,305,312,319,326,333,334,341,349,356,364,372,380,388,396,404,412,413,421,429,430,438,447,455,456</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B2.1.T.SAP000.uv.dps</name>
+                    <topology>B2.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380Con</name>
+                        <description>3C380Con</description>
+                        <topology>B2.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380Con</targetName>
+                            <ra>277.382166667</ra>
+                            <dec>48.7463888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>120,125,126,127,128,130,131,132,133,135,136,137,138,139,141,142,143,144,146,147,148,149,151,152,153,154,155,157,158,159,160,162,163,164,165,168,169,170,171,173,174,175,176,177,179,180,181,182,185,186,187,188,190,191,192,193,194,196,197,198,199,200,202,203,204,205,206,208,209,210,211,212,214,215,216,217,218,220,221,222,223,224,226,227,228,229,230,232,233,234,235,236,237,239,240,241,242,243,245,246,247,248,249,251,252,253,254,255,256,258,259,260,261,262,265,266,267,268,269,271,272,273,274,275,276,278,279,280,281,282,283,285,286,287,288,289,292,293,294,295,296,299,300,301,302,303,306,307,308,309,310,311,313,314,315,316,317,318,320,321,322,323,324,325,327,328,332</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B2.1.T.SAP001.uv.dps</name>
+                    <topology>B2.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B2.1.PT0</topology>
+                <predecessor_topology>B2.1.T</predecessor_topology>
+                <name>3C380RR/1.0/TP</name>
+                <description>3C380RR/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>1</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B2.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B2.1.PT0.uv.dps</name>
+                      <topology>B2.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B2.1.PT1</topology>
+                <predecessor_topology>B2.1.T</predecessor_topology>
+                <name>3C380Con/1.1/TP</name>
+                <description>3C380Con/1.1/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B2.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B2.1.PT1.uv.dps</name>
+                      <topology>B2.1.PT1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/20150810_P247P244.xml b/SAS/XML_generator/test/test_regression.in_data/xml/20150810_P247P244.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f921b931a1f0e2a1b0ca329348b41b051ea25061
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/20150810_P247P244.xml
@@ -0,0 +1,524 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_034</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>P247+45P244+48</name>
+              <description>Preprocessing:HBA Dual Inner, 110-190MHz, 8bits, 48MHz@144MHz, 1s, 64ch/sb</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150810_3C196</name>
+                <description>HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C196/1/TO</name>
+                  <description>3C196/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C196/1/TO</name>
+                    <projectName>LC4_034</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-08-10T15:49:00</startTime>
+                      <endTime>2015-08-10T15:59:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C196</name>
+                        <description>3C196</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C196</targetName>
+                            <ra>123.400291667</ra>
+                            <dec>48.2173611111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C196/1.0/TP</name>
+                <description>3C196/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget>false</ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.uv.dps</name>
+                      <topology>B0.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150810P247+45P244+48</name>
+                <description>HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>P247+45/1/TO</name>
+                  <description>P247+45/1/TO (Target Observation)</description>
+                  <topology>B1.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>P247+45/1/TO</name>
+                    <projectName>LC4_034</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-08-10T16:00:00</startTime>
+                      <endTime>2015-08-11T00:00:00</endTime>
+                      <duration>28800</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>P247+45</name>
+                        <description>P247+45</description>
+                        <topology>B1.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>P247+45</targetName>
+                            <ra>247.5338375</ra>
+                            <dec>45.1067733333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP000.uv.dps</name>
+                    <topology>B1.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>P244+48</name>
+                        <description>P244+48</description>
+                        <topology>B1.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>P244+48</targetName>
+                            <ra>244.519125</ra>
+                            <dec>47.5974397222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP001.uv.dps</name>
+                    <topology>B1.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT0</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>P247+45/1.0/TP</name>
+                <description>P247+45/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>31200</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget>false</ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT0.uv.dps</name>
+                      <topology>B1.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT1</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>P244+48/1.1/TP</name>
+                <description>P244+48/1.1/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>31200</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget>false</ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT1.uv.dps</name>
+                      <topology>B1.1.PT1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150811_3C295</name>
+                <description>HBA Dual Inner, 110-190MHz, 8bits, 96MHz@144MHz, 1s, 64ch/sb (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C295/1/TO</name>
+                  <description>3C295/1/TO (Target Observation)</description>
+                  <topology>B2.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C295/1/TO</name>
+                    <projectName>LC4_034</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-08-11T00:01:00</startTime>
+                      <endTime>2015-08-11T00:11:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B2.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>212.835416667</ra>
+                            <dec>52.2027777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..133,135..163,165..183,187..209,212..213,215..243,245..273,275..303,305..333,335..347,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B2.1.T.SAP000.uv.dps</name>
+                    <topology>B2.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B2.1.PT0</topology>
+                <predecessor_topology>B2.1.T</predecessor_topology>
+                <name>3C295/1.0/TP</name>
+                <description>3C295/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget>false</ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B2.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B2.1.PT0.uv.dps</name>
+                      <topology>B2.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/2MASS_1.xml b/SAS/XML_generator/test/test_regression.in_data/xml/2MASS_1.xml
new file mode 100644
index 0000000000000000000000000000000000000000..235843b8fea6b40bfbd7897a72f13edcf96f30bc
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/2MASS_1.xml
@@ -0,0 +1,438 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_031</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>2MASS_run1</name>
+              <description>Preprocessing:HBA Dual, 110-190MHz, 8bits, 48MHz@144MHz,1s,64ch/sb</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>J14324216+3451429 run 1</name>
+                <description>2MASS J14324216+3451429 run 1, HBA Dual, 110-190MHz,8bits, 48MHz@144MHz,1s,64ch/sb (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C 295/1/CO</name>
+                  <description>3C 295/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C 295/1/CO</name>
+                    <projectName>LC4_031</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-06-09T19:49:00</startTime>
+                      <endTime>2015-06-09T19:59:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C 295</name>
+                        <description>3C 295</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C 295</targetName>
+                            <ra>212.835291667</ra>
+                            <dec>52.2027777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>102..349</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>3C 295/1/CPC</name>
+                <description>3C 295/1/CPC (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>8</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>8</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>2MASS J14324216+3451429/1/TO</name>
+                  <description>2MASS J14324216+3451429/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>2MASS J14324216+3451429/1/TO</name>
+                    <projectName>LC4_031</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-06-09T20:00:00</startTime>
+                      <endTime>2015-06-10T04:00:00</endTime>
+                      <duration>28800</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>2MASS J14324216+3451429</name>
+                        <description>2MASS J14324216+3451429</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>2MASS J14324216+3451429</targetName>
+                            <ra>218.174866667</ra>
+                            <dec>34.8616583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>102..349</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>2MASS J14324216+3451429/1.0/TP</name>
+                <description>2MASS J14324216+3451429/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>28800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>8</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>8</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.uv.dps</name>
+                      <topology>B0.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>3C295_cal2</name>
+                <description>HBA Dual, 110-190MHz,8bits, 48MHz@144MHz,1s,64ch/sb (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C 295/1/TO</name>
+                  <description>3C 295/1/TO (Target Observation)</description>
+                  <topology>B1.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C 295/1/TO</name>
+                    <projectName>LC4_031</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-06-10T04:01:00</startTime>
+                      <endTime>2015-06-10T04:11:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C 295</name>
+                        <description>3C 295</description>
+                        <topology>B1.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C 295</targetName>
+                            <ra>212.835291667</ra>
+                            <dec>52.2027777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>102..349</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP000.uv.dps</name>
+                    <topology>B1.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT0</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>3C 295/1.0/TP</name>
+                <description>3C 295/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>8</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>8</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT0.uv.dps</name>
+                      <topology>B1.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/B1834620_HBA_LB_20150817.xml b/SAS/XML_generator/test/test_regression.in_data/xml/B1834620_HBA_LB_20150817.xml
new file mode 100644
index 0000000000000000000000000000000000000000..99829a87493096cc300836a2c94112a244fd0603
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/B1834620_HBA_LB_20150817.xml
@@ -0,0 +1,1075 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>Commissioning2015</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>B1834+620_phase_shift3</name>
+              <description>B1834+620_phase_shift HBA LB</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150907_B1834+620</name>
+                <description>B1834+620_phase_shift HBA LB (LongBaseline)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C380/1/CO</name>
+                  <description>3C380/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C380/1/CO</name>
+                    <projectName>Commissioning2015</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-09-07T18:45:00</startTime>
+                      <endTime>2015-09-07T18:55:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380</name>
+                        <description>3C380</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C380</targetName>
+                            <ra>277.3825</ra>
+                            <dec>48.7461111111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>3C380/1/CPC</name>
+                <description>3C380/1/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>900</duration>
+                  <skyModelDatabase>3C380</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPC.inst.dps</name>
+                      <topology>B0.1.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>B1834+620/1/TO</name>
+                  <description>B1834+620/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>B1834+620/1/TO</name>
+                    <projectName>Commissioning2015</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-09-07T18:56:00</startTime>
+                      <endTime>2015-09-07T19:56:00</endTime>
+                      <duration>3600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>B1834+620</name>
+                        <description>B1834+620</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>B1834+620</targetName>
+                            <ra>278.795416667</ra>
+                            <dec>62.0688888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>J183519+611939</name>
+                        <description>J183519+611939</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>J183519+611939</targetName>
+                            <ra>278.83225</ra>
+                            <dec>61.3275277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT0</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>B1834+620/1.0/TP</name>
+                    <description>B1834+620/1.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1000</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>2</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways>[CygA,CasA]</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                          <name>B0.1.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT0.uv.dps</name>
+                            <topology>B0.1.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT1</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>J183519+611939/1.1/TP</name>
+                    <description>J183519+611939/1.1/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1000</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>2</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways>[CygA,CasA]</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                          <name>B0.1.T.SAP001.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT1.uv.dps</name>
+                            <topology>B0.1.PT1.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB0</topology>
+                <predecessor_topology>B0.1.PT0</predecessor_topology>
+                <name>B1834+620/1.0/PP</name>
+                <description>B1834+620/1.0/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB0.uv.dps</name>
+                      <topology>B0.1.PTLB0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP0</topology>
+                <predecessor_topology>B0.1.PTLB0</predecessor_topology>
+                <name>B1834+620/1.0/LBP</name>
+                <description>B1834+620/1.0/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1000</duration>
+                  <subbandsPerSubbandGroup>16</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP0.uv.dps</name>
+                      <topology>B0.1.LBP0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB1</topology>
+                <predecessor_topology>B0.1.PT1</predecessor_topology>
+                <name>J183519+611939/1.1/PP</name>
+                <description>J183519+611939/1.1/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB1.uv.dps</name>
+                      <topology>B0.1.PTLB1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP1</topology>
+                <predecessor_topology>B0.1.PTLB1</predecessor_topology>
+                <name>J183519+611939/1.1/LBP</name>
+                <description>J183519+611939/1.1/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1000</duration>
+                  <subbandsPerSubbandGroup>16</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP1.uv.dps</name>
+                      <topology>B0.1.LBP1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C380/2/CO</name>
+                  <description>3C380/2/CO (Calibration Observation)</description>
+                  <topology>B0.2.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C380/2/CO</name>
+                    <projectName>Commissioning2015</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-09-07T19:57:00</startTime>
+                      <endTime>2015-09-07T20:07:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380</name>
+                        <description>3C380</description>
+                        <topology>B0.2.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C380</targetName>
+                            <ra>277.3825</ra>
+                            <dec>48.7461111111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.C.SAP000.uv.dps</name>
+                    <topology>B0.2.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.2.CPC</topology>
+                <predecessor_topology>B0.2.C</predecessor_topology>
+                <name>3C380/2/CPC</name>
+                <description>3C380/2/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>900</duration>
+                  <skyModelDatabase>3C380</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.2.CPC.inst.dps</name>
+                      <topology>B0.2.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.CPC.uv.dps</name>
+                      <topology>B0.2.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>B1834+620/2/TO</name>
+                  <description>B1834+620/2/TO (Target Observation)</description>
+                  <topology>B0.2.T</topology>
+                  <predecessor_topology>B0.2.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>B1834+620/2/TO</name>
+                    <projectName>Commissioning2015</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-09-07T20:08:00</startTime>
+                      <endTime>2015-09-07T21:08:00</endTime>
+                      <duration>3600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>B1834+620</name>
+                        <description>B1834+620</description>
+                        <topology>B0.2.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>B1834+620</targetName>
+                            <ra>278.795416667</ra>
+                            <dec>62.0688888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.T.SAP000.uv.dps</name>
+                    <topology>B0.2.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>J183519+611939</name>
+                        <description>J183519+611939</description>
+                        <topology>B0.2.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>J183519+611939</targetName>
+                            <ra>278.83225</ra>
+                            <dec>61.3275277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.T.SAP001.uv.dps</name>
+                    <topology>B0.2.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.2.PT0</topology>
+                    <predecessor_topology>B0.2.T,B0.2.CPC</predecessor_topology>
+                    <name>B1834+620/2.0/TP</name>
+                    <description>B1834+620/2.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1000</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>2</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways>[CygA,CasA]</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.2.T.SAP000.uv.dps">
+                          <name>B0.2.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.2.CPC.inst.dps">
+                          <name>B0.2.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.2.PT0.uv.dps</name>
+                            <topology>B0.2.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.2.PT1</topology>
+                    <predecessor_topology>B0.2.T,B0.2.CPC</predecessor_topology>
+                    <name>J183519+611939/2.1/TP</name>
+                    <description>J183519+611939/2.1/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1000</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>2</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways>[CygA,CasA]</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.2.T.SAP001.uv.dps">
+                          <name>B0.2.T.SAP001.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.2.CPC.inst.dps">
+                          <name>B0.2.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.2.PT1.uv.dps</name>
+                            <topology>B0.2.PT1.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.2.PTLB0</topology>
+                <predecessor_topology>B0.2.PT0</predecessor_topology>
+                <name>B1834+620/2.0/PP</name>
+                <description>B1834+620/2.0/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PT0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.PTLB0.uv.dps</name>
+                      <topology>B0.2.PTLB0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.2.LBP0</topology>
+                <predecessor_topology>B0.2.PTLB0</predecessor_topology>
+                <name>B1834+620/2.0/LBP</name>
+                <description>B1834+620/2.0/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1000</duration>
+                  <subbandsPerSubbandGroup>16</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PTLB0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.LBP0.uv.dps</name>
+                      <topology>B0.2.LBP0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.2.PTLB1</topology>
+                <predecessor_topology>B0.2.PT1</predecessor_topology>
+                <name>J183519+611939/2.1/PP</name>
+                <description>J183519+611939/2.1/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>2</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PT1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.PTLB1.uv.dps</name>
+                      <topology>B0.2.PTLB1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.2.LBP1</topology>
+                <predecessor_topology>B0.2.PTLB1</predecessor_topology>
+                <name>J183519+611939/2.1/LBP</name>
+                <description>J183519+611939/2.1/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1000</duration>
+                  <subbandsPerSubbandGroup>16</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PTLB1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.LBP1.uv.dps</name>
+                      <topology>B0.2.LBP1.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/LC4_020_20150813.xml b/SAS/XML_generator/test/test_regression.in_data/xml/LC4_020_20150813.xml
new file mode 100644
index 0000000000000000000000000000000000000000..18a520e1befc2cf085b750eb235c6704704559e8
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/LC4_020_20150813.xml
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_020</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>A2069_20150813</name>
+              <description>A2069_20150813  15:23:57.9,+29:53:26.0</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150813_A2069</name>
+                <description> (Preprocessing)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Abell 2069/1/TO</name>
+                  <description>Abell 2069/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Abell 2069/1/TO</name>
+                    <projectName>LC4_020</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>LBA Outer</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>30-90 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-08-13T13:00:00</startTime>
+                      <endTime>2015-08-13T23:30:00</endTime>
+                      <duration>37800</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Abell 2069</name>
+                        <description>Abell 2069</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Abell 2069</targetName>
+                            <ra>230.99125</ra>
+                            <dec>29.8905555556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154..397</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>212.835495833</ra>
+                            <dec>52.2027694444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154..397</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.CPT</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C295/1/CPT</name>
+                <description>3C295/1/CPT (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>37800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>CygA,CasA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPT.uv.dps</name>
+                      <topology>B0.1.CPT.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>Abell 2069/1.0/TP</name>
+                <description>Abell 2069/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>37800</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>CygA,CasA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.uv.dps</name>
+                      <topology>B0.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/LC4_022_3C58_HBA_parameters.xml b/SAS/XML_generator/test/test_regression.in_data/xml/LC4_022_3C58_HBA_parameters.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4bce2fd442152ed2c7668266350b3baf55ef5493
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/LC4_022_3C58_HBA_parameters.xml
@@ -0,0 +1,520 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+  <version>2.15.0</version>
+  <template version="2.15.0" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+  <description>XML Template generator version 2.15.0</description>
+  </template>
+  <name>LC4_022</name>
+  <children>
+   <item index="0">
+    <lofar:folder topology_parent="false">
+    <name>20151018_3C58</name>
+    <description>HBA_DUAL_INNER, 110-190 MHz, av: 16/2, imaging, 20SB/chk</description>
+    <children>
+   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>3C196/3C58</name>
+          <description>3C196/3C58 Scan (Imaging)</description>
+          <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C196/1/CO</name>
+                  <description>3C196/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C196/1/CO</name>
+                    <projectName>LC4_022</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-10-18T21:00:00</startTime>
+                      <endTime>2015-10-18T21:10:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C196</name>
+                        <description>3C196</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C196</targetName>
+                            <ra>123.400291667</ra>
+                            <dec>48.2173888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>100..339</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>3C196/1/CPC</name>
+                <description>3C196/1/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <skyModelDatabase>3C196</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>16</demixFreqStep>
+                    <demixTimeStep>2</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPC.inst.dps</name>
+                      <topology>B0.1.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C58/1/TO</name>
+                  <description>3C58/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C58/1/TO</name>
+                    <projectName>LC4_022</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-10-18T21:11:00</startTime>
+                      <endTime>2015-10-19T02:51:00</endTime>
+                      <duration>20400</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C58</name>
+                        <description>3C58</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C58</targetName>
+                            <ra>31.4083333333</ra>
+                            <dec>64.8283333333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>100..339</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT0</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>3C58/1.0/TP</name>
+                    <description>3C58/1.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>50000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>16</demixFreqStep>
+                    <demixTimeStep>2</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                          <name>B0.1.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT0.uv.dps</name>
+                            <topology>B0.1.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+        <lofar:pipeline xsi:type="lofar:ImagingPipelineType">
+          <topology>B0.PI0</topology>
+          <predecessor_topology>B0.1.PT0</predecessor_topology>
+          <name>3C58/IM</name>
+          <description>3C58/IM (Imaging pipeline beam 0)</description>
+          <imagingPipelineAttributes>
+            <defaultTemplate>Imaging Pipeline HBA</defaultTemplate>
+            <duration></duration>
+            <nrOfOutputSkyImage>12</nrOfOutputSkyImage>
+            <imagingParameters>
+              <nrSlicesPerImage>1</nrSlicesPerImage>
+              <nrSubbandsPerImage>20</nrSubbandsPerImage>
+              <maxBaseline></maxBaseline>
+              <fieldOfView>5.0</fieldOfView>
+              <weight></weight>
+              <robust></robust>
+              <iterations></iterations>
+              <threshold></threshold>
+              <uvMin></uvMin>
+              <uvMax></uvMax>
+              <stokes></stokes>
+            </imagingParameters>
+
+          </imagingPipelineAttributes>
+                <usedDataProducts>
+                <item>
+              <lofar:uvDataProduct topology="B0.1.PT0.uv.dps">
+                <name>B0.1.PT0.uv.dps</name>
+              </lofar:uvDataProduct>
+            </item>
+               </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:skyImageDataProduct>
+                      <name>B0.PI0.dps</name>
+                      <topology>B0.PI0.dps</topology>
+                      <status>no_data</status>
+                    </lofar:skyImageDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+  </lofar:folder>
+  </item>
+   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>3C196</name>
+          <description>3C196 Bookend Scan (Preprocessing)</description>
+          <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C196/1/TO</name>
+                  <description>3C196/1/TO (Target Observation)</description>
+                  <topology>B1.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C196/1/TO</name>
+                    <projectName>LC4_022</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>2.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-10-19T02:52:00</startTime>
+                      <endTime>2015-10-19T03:02:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C196</name>
+                        <description>3C196</description>
+                        <topology>B1.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C196</targetName>
+                            <ra>123.400291667</ra>
+                            <dec>48.2173888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>100..339</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B1.1.T.SAP000.uv.dps</name>
+                    <topology>B1.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B1.1.PT0</topology>
+                <predecessor_topology>B1.1.T</predecessor_topology>
+                <name>3C196/1.0/TP</name>
+                <description>3C196/1.0/TP (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>16</demixFreqStep>
+                    <demixTimeStep>2</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B1.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B1.1.PT0.uv.dps</name>
+                      <topology>B1.1.PT0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+  </lofar:folder>
+  </item>
+</children>
+  </lofar:folder>
+  </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/LT5_006_4C43_HBA_calSearch_parameters.xml b/SAS/XML_generator/test/test_regression.in_data/xml/LT5_006_4C43_HBA_calSearch_parameters.xml
new file mode 100644
index 0000000000000000000000000000000000000000..69db64e3989847f7690d778a1d69edc87b59c3c6
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/LT5_006_4C43_HBA_calSearch_parameters.xml
@@ -0,0 +1,10059 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+  <version>2.15.0</version>
+  <template version="2.15.0" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+  <description>XML Template generator version 2.15.0</description>
+  </template>
+  <name>LT5_006</name>
+  <children>
+   <item index="0">
+    <lofar:folder topology_parent="false">
+    <name>20160105_4C43.15</name>
+    <description>HBA Dual Inner, Calibrator Search, 110-190 MHz</description>
+    <children>
+   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>4C43.15</name>
+          <description>4C43.15 Calibrator Search (LongBaseline)</description>
+          <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C48/1/CO</name>
+                  <description>3C48/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C48/1/CO</name>
+                    <projectName>LT5_006</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2016-01-05T23:00:00</startTime>
+                      <endTime>2016-01-05T23:05:00</endTime>
+                      <duration>300</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C48</name>
+                        <description>3C48</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C48</targetName>
+                            <ra>24.42208125</ra>
+                            <dec>33.1597593944</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>3C48/1/CPC</name>
+                <description>3C48/1/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>2000</duration>
+                  <skyModelDatabase>3C48</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPC.inst.dps</name>
+                      <topology>B0.1.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>4C43.15/1/TO</name>
+                  <description>4C43.15/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>4C43.15/1/TO</name>
+                    <projectName>LT5_006</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,DE601,DE602,DE603,DE604,DE605,DE609,FR606,PL610,PL611,PL612,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509,SE607,UK608</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2016-01-05T23:06:00</startTime>
+                      <endTime>2016-01-05T23:31:00</endTime>
+                      <duration>1500</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>4C43.15</name>
+                        <description>4C43.15</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>4C43.15</targetName>
+                            <ra>113.843541667</ra>
+                            <dec>43.7402222222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal1</name>
+                        <description>Cal1</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal1</targetName>
+                            <ra>113.84125</ra>
+                            <dec>43.7397083333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal2</name>
+                        <description>Cal2</description>
+                        <topology>B0.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal2</targetName>
+                            <ra>113.533791667</ra>
+                            <dec>43.4959972222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP002.uv.dps</name>
+                    <topology>B0.1.T.SAP002.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal3</name>
+                        <description>Cal3</description>
+                        <topology>B0.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal3</targetName>
+                            <ra>114.237333333</ra>
+                            <dec>43.4847</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP003.uv.dps</name>
+                    <topology>B0.1.T.SAP003.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal4</name>
+                        <description>Cal4</description>
+                        <topology>B0.1.T.SAP004</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal4</targetName>
+                            <ra>114.313416667</ra>
+                            <dec>43.5637694444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP004.uv.dps</name>
+                    <topology>B0.1.T.SAP004.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal5</name>
+                        <description>Cal5</description>
+                        <topology>B0.1.T.SAP005</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal5</targetName>
+                            <ra>114.148416667</ra>
+                            <dec>43.3900777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP005.uv.dps</name>
+                    <topology>B0.1.T.SAP005.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal6</name>
+                        <description>Cal6</description>
+                        <topology>B0.1.T.SAP006</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal6</targetName>
+                            <ra>114.455458333</ra>
+                            <dec>43.9522666667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP006.uv.dps</name>
+                    <topology>B0.1.T.SAP006.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal7</name>
+                        <description>Cal7</description>
+                        <topology>B0.1.T.SAP007</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal7</targetName>
+                            <ra>113.183333333</ra>
+                            <dec>43.5946861111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP007.uv.dps</name>
+                    <topology>B0.1.T.SAP007.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal8</name>
+                        <description>Cal8</description>
+                        <topology>B0.1.T.SAP008</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal8</targetName>
+                            <ra>113.04675</ra>
+                            <dec>43.9659916667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP008.uv.dps</name>
+                    <topology>B0.1.T.SAP008.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal9</name>
+                        <description>Cal9</description>
+                        <topology>B0.1.T.SAP009</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal9</targetName>
+                            <ra>114.539166667</ra>
+                            <dec>43.26805</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP009.uv.dps</name>
+                    <topology>B0.1.T.SAP009.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal10</name>
+                        <description>Cal10</description>
+                        <topology>B0.1.T.SAP010</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal10</targetName>
+                            <ra>113.841333333</ra>
+                            <dec>43.7391111111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP010.uv.dps</name>
+                    <topology>B0.1.T.SAP010.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal11</name>
+                        <description>Cal11</description>
+                        <topology>B0.1.T.SAP011</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal11</targetName>
+                            <ra>113.896916667</ra>
+                            <dec>43.7140555556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP011.uv.dps</name>
+                    <topology>B0.1.T.SAP011.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal12</name>
+                        <description>Cal12</description>
+                        <topology>B0.1.T.SAP012</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal12</targetName>
+                            <ra>113.870125</ra>
+                            <dec>43.6151388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP012.uv.dps</name>
+                    <topology>B0.1.T.SAP012.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal13</name>
+                        <description>Cal13</description>
+                        <topology>B0.1.T.SAP013</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal13</targetName>
+                            <ra>114.047583333</ra>
+                            <dec>43.7998888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP013.uv.dps</name>
+                    <topology>B0.1.T.SAP013.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal14</name>
+                        <description>Cal14</description>
+                        <topology>B0.1.T.SAP014</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal14</targetName>
+                            <ra>113.584541667</ra>
+                            <dec>43.7104444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP014.uv.dps</name>
+                    <topology>B0.1.T.SAP014.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal15</name>
+                        <description>Cal15</description>
+                        <topology>B0.1.T.SAP015</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal15</targetName>
+                            <ra>113.605458333</ra>
+                            <dec>43.8278333333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP015.uv.dps</name>
+                    <topology>B0.1.T.SAP015.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal16</name>
+                        <description>Cal16</description>
+                        <topology>B0.1.T.SAP016</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal16</targetName>
+                            <ra>113.625041667</ra>
+                            <dec>44.0223611111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP016.uv.dps</name>
+                    <topology>B0.1.T.SAP016.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal17</name>
+                        <description>Cal17</description>
+                        <topology>B0.1.T.SAP017</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal17</targetName>
+                            <ra>113.491125</ra>
+                            <dec>43.5338888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP017.uv.dps</name>
+                    <topology>B0.1.T.SAP017.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal18</name>
+                        <description>Cal18</description>
+                        <topology>B0.1.T.SAP018</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal18</targetName>
+                            <ra>113.538</ra>
+                            <dec>43.497</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP018.uv.dps</name>
+                    <topology>B0.1.T.SAP018.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal19</name>
+                        <description>Cal19</description>
+                        <topology>B0.1.T.SAP019</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal19</targetName>
+                            <ra>113.468</ra>
+                            <dec>43.9658611111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP019.uv.dps</name>
+                    <topology>B0.1.T.SAP019.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal20</name>
+                        <description>Cal20</description>
+                        <topology>B0.1.T.SAP020</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal20</targetName>
+                            <ra>113.426083333</ra>
+                            <dec>43.9709722222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP020.uv.dps</name>
+                    <topology>B0.1.T.SAP020.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal21</name>
+                        <description>Cal21</description>
+                        <topology>B0.1.T.SAP021</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal21</targetName>
+                            <ra>114.315125</ra>
+                            <dec>43.5633333333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP021.uv.dps</name>
+                    <topology>B0.1.T.SAP021.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal22</name>
+                        <description>Cal22</description>
+                        <topology>B0.1.T.SAP022</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal22</targetName>
+                            <ra>114.242583333</ra>
+                            <dec>43.4822777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP022.uv.dps</name>
+                    <topology>B0.1.T.SAP022.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal23</name>
+                        <description>Cal23</description>
+                        <topology>B0.1.T.SAP023</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal23</targetName>
+                            <ra>114.146208333</ra>
+                            <dec>43.3877777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP023.uv.dps</name>
+                    <topology>B0.1.T.SAP023.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal24</name>
+                        <description>Cal24</description>
+                        <topology>B0.1.T.SAP024</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal24</targetName>
+                            <ra>114.069625</ra>
+                            <dec>44.12325</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP024.uv.dps</name>
+                    <topology>B0.1.T.SAP024.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal25</name>
+                        <description>Cal25</description>
+                        <topology>B0.1.T.SAP025</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal25</targetName>
+                            <ra>113.552833333</ra>
+                            <dec>44.1150277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP025.uv.dps</name>
+                    <topology>B0.1.T.SAP025.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal26</name>
+                        <description>Cal26</description>
+                        <topology>B0.1.T.SAP026</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal26</targetName>
+                            <ra>114.4095</ra>
+                            <dec>43.9680555556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP026.uv.dps</name>
+                    <topology>B0.1.T.SAP026.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal27</name>
+                        <description>Cal27</description>
+                        <topology>B0.1.T.SAP027</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal27</targetName>
+                            <ra>114.097791667</ra>
+                            <dec>43.3011666667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP027.uv.dps</name>
+                    <topology>B0.1.T.SAP027.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal28</name>
+                        <description>Cal28</description>
+                        <topology>B0.1.T.SAP028</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal28</targetName>
+                            <ra>114.455625</ra>
+                            <dec>43.9528055556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP028.uv.dps</name>
+                    <topology>B0.1.T.SAP028.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal29</name>
+                        <description>Cal29</description>
+                        <topology>B0.1.T.SAP029</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal29</targetName>
+                            <ra>113.182166667</ra>
+                            <dec>43.5945833333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP029.uv.dps</name>
+                    <topology>B0.1.T.SAP029.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal30</name>
+                        <description>Cal30</description>
+                        <topology>B0.1.T.SAP030</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal30</targetName>
+                            <ra>114.204666667</ra>
+                            <dec>43.3143055556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP030.uv.dps</name>
+                    <topology>B0.1.T.SAP030.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal31</name>
+                        <description>Cal31</description>
+                        <topology>B0.1.T.SAP031</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal31</targetName>
+                            <ra>113.515166667</ra>
+                            <dec>44.1888055556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP031.uv.dps</name>
+                    <topology>B0.1.T.SAP031.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal32</name>
+                        <description>Cal32</description>
+                        <topology>B0.1.T.SAP032</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal32</targetName>
+                            <ra>113.130875</ra>
+                            <dec>43.8181111111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP032.uv.dps</name>
+                    <topology>B0.1.T.SAP032.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal33</name>
+                        <description>Cal33</description>
+                        <topology>B0.1.T.SAP033</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal33</targetName>
+                            <ra>113.441625</ra>
+                            <dec>43.3040555556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP033.uv.dps</name>
+                    <topology>B0.1.T.SAP033.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal34</name>
+                        <description>Cal34</description>
+                        <topology>B0.1.T.SAP034</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal34</targetName>
+                            <ra>113.49125</ra>
+                            <dec>43.254</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP034.uv.dps</name>
+                    <topology>B0.1.T.SAP034.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal35</name>
+                        <description>Cal35</description>
+                        <topology>B0.1.T.SAP035</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal35</targetName>
+                            <ra>113.757375</ra>
+                            <dec>43.1914444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP035.uv.dps</name>
+                    <topology>B0.1.T.SAP035.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal36</name>
+                        <description>Cal36</description>
+                        <topology>B0.1.T.SAP036</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal36</targetName>
+                            <ra>114.205666667</ra>
+                            <dec>43.2429444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP036.uv.dps</name>
+                    <topology>B0.1.T.SAP036.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal37</name>
+                        <description>Cal37</description>
+                        <topology>B0.1.T.SAP037</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal37</targetName>
+                            <ra>114.194416667</ra>
+                            <dec>44.2515277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP037.uv.dps</name>
+                    <topology>B0.1.T.SAP037.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal38</name>
+                        <description>Cal38</description>
+                        <topology>B0.1.T.SAP038</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal38</targetName>
+                            <ra>113.470375</ra>
+                            <dec>44.2687222222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP038.uv.dps</name>
+                    <topology>B0.1.T.SAP038.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal39</name>
+                        <description>Cal39</description>
+                        <topology>B0.1.T.SAP039</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal39</targetName>
+                            <ra>113.034458333</ra>
+                            <dec>43.9725277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP039.uv.dps</name>
+                    <topology>B0.1.T.SAP039.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal40</name>
+                        <description>Cal40</description>
+                        <topology>B0.1.T.SAP040</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal40</targetName>
+                            <ra>113.917125</ra>
+                            <dec>44.3896111111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP040.uv.dps</name>
+                    <topology>B0.1.T.SAP040.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal41</name>
+                        <description>Cal41</description>
+                        <topology>B0.1.T.SAP041</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal41</targetName>
+                            <ra>114.689166667</ra>
+                            <dec>43.5009444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP041.uv.dps</name>
+                    <topology>B0.1.T.SAP041.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal42</name>
+                        <description>Cal42</description>
+                        <topology>B0.1.T.SAP042</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal42</targetName>
+                            <ra>113.971041667</ra>
+                            <dec>44.4057777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP042.uv.dps</name>
+                    <topology>B0.1.T.SAP042.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal43</name>
+                        <description>Cal43</description>
+                        <topology>B0.1.T.SAP043</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal43</targetName>
+                            <ra>113.123375</ra>
+                            <dec>44.182</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP043.uv.dps</name>
+                    <topology>B0.1.T.SAP043.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal44</name>
+                        <description>Cal44</description>
+                        <topology>B0.1.T.SAP044</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal44</targetName>
+                            <ra>112.886833333</ra>
+                            <dec>43.7435833333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP044.uv.dps</name>
+                    <topology>B0.1.T.SAP044.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal45</name>
+                        <description>Cal45</description>
+                        <topology>B0.1.T.SAP045</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal45</targetName>
+                            <ra>114.539291667</ra>
+                            <dec>43.2665555556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP045.uv.dps</name>
+                    <topology>B0.1.T.SAP045.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal46</name>
+                        <description>Cal46</description>
+                        <topology>B0.1.T.SAP046</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal46</targetName>
+                            <ra>113.638208333</ra>
+                            <dec>44.4209444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP046.uv.dps</name>
+                    <topology>B0.1.T.SAP046.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal47</name>
+                        <description>Cal47</description>
+                        <topology>B0.1.T.SAP047</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal47</targetName>
+                            <ra>113.518666667</ra>
+                            <dec>43.0749166667</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP047.uv.dps</name>
+                    <topology>B0.1.T.SAP047.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal48</name>
+                        <description>Cal48</description>
+                        <topology>B0.1.T.SAP048</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal48</targetName>
+                            <ra>113.232333333</ra>
+                            <dec>43.1705833333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP048.uv.dps</name>
+                    <topology>B0.1.T.SAP048.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal49</name>
+                        <description>Cal49</description>
+                        <topology>B0.1.T.SAP049</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal49</targetName>
+                            <ra>113.990125</ra>
+                            <dec>43.0262777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP049.uv.dps</name>
+                    <topology>B0.1.T.SAP049.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal50</name>
+                        <description>Cal50</description>
+                        <topology>B0.1.T.SAP050</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal50</targetName>
+                            <ra>112.888291667</ra>
+                            <dec>43.4526388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP050.uv.dps</name>
+                    <topology>B0.1.T.SAP050.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal51</name>
+                        <description>Cal51</description>
+                        <topology>B0.1.T.SAP051</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal51</targetName>
+                            <ra>114.502875</ra>
+                            <dec>44.3208888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP051.uv.dps</name>
+                    <topology>B0.1.T.SAP051.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal52</name>
+                        <description>Cal52</description>
+                        <topology>B0.1.T.SAP052</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal52</targetName>
+                            <ra>113.120125</ra>
+                            <dec>44.3086388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP052.uv.dps</name>
+                    <topology>B0.1.T.SAP052.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal53</name>
+                        <description>Cal53</description>
+                        <topology>B0.1.T.SAP053</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal53</targetName>
+                            <ra>114.626875</ra>
+                            <dec>43.2146388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP053.uv.dps</name>
+                    <topology>B0.1.T.SAP053.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal54</name>
+                        <description>Cal54</description>
+                        <topology>B0.1.T.SAP054</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal54</targetName>
+                            <ra>112.822208333</ra>
+                            <dec>44.0203888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP054.uv.dps</name>
+                    <topology>B0.1.T.SAP054.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal55</name>
+                        <description>Cal55</description>
+                        <topology>B0.1.T.SAP055</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal55</targetName>
+                            <ra>113.929416667</ra>
+                            <dec>42.9528611111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP055.uv.dps</name>
+                    <topology>B0.1.T.SAP055.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal56</name>
+                        <description>Cal56</description>
+                        <topology>B0.1.T.SAP056</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal56</targetName>
+                            <ra>114.596583333</ra>
+                            <dec>43.1569444444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP056.uv.dps</name>
+                    <topology>B0.1.T.SAP056.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal57</name>
+                        <description>Cal57</description>
+                        <topology>B0.1.T.SAP057</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal57</targetName>
+                            <ra>114.936333333</ra>
+                            <dec>43.5593888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP057.uv.dps</name>
+                    <topology>B0.1.T.SAP057.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal58</name>
+                        <description>Cal58</description>
+                        <topology>B0.1.T.SAP058</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal58</targetName>
+                            <ra>114.758625</ra>
+                            <dec>44.213</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP058.uv.dps</name>
+                    <topology>B0.1.T.SAP058.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal59</name>
+                        <description>Cal59</description>
+                        <topology>B0.1.T.SAP059</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal59</targetName>
+                            <ra>113.865166667</ra>
+                            <dec>42.9143611111</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP059.uv.dps</name>
+                    <topology>B0.1.T.SAP059.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Cal60</name>
+                        <description>Cal60</description>
+                        <topology>B0.1.T.SAP060</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Cal60</targetName>
+                            <ra>113.841291667</ra>
+                            <dec>43.7384277778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>225..232</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP060.uv.dps</name>
+                    <topology>B0.1.T.SAP060.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT1</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal1/1.1/TP</name>
+                    <description>Cal1/1.1/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                          <name>B0.1.T.SAP001.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT1.uv.dps</name>
+                            <topology>B0.1.PT1.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT2</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal2/1.2/TP</name>
+                    <description>Cal2/1.2/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP002.uv.dps">
+                          <name>B0.1.T.SAP002.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT2.uv.dps</name>
+                            <topology>B0.1.PT2.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT3</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal3/1.3/TP</name>
+                    <description>Cal3/1.3/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP003.uv.dps">
+                          <name>B0.1.T.SAP003.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT3.uv.dps</name>
+                            <topology>B0.1.PT3.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT4</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal4/1.4/TP</name>
+                    <description>Cal4/1.4/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP004.uv.dps">
+                          <name>B0.1.T.SAP004.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT4.uv.dps</name>
+                            <topology>B0.1.PT4.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT5</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal5/1.5/TP</name>
+                    <description>Cal5/1.5/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP005.uv.dps">
+                          <name>B0.1.T.SAP005.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT5.uv.dps</name>
+                            <topology>B0.1.PT5.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT6</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal6/1.6/TP</name>
+                    <description>Cal6/1.6/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP006.uv.dps">
+                          <name>B0.1.T.SAP006.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT6.uv.dps</name>
+                            <topology>B0.1.PT6.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT7</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal7/1.7/TP</name>
+                    <description>Cal7/1.7/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP007.uv.dps">
+                          <name>B0.1.T.SAP007.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT7.uv.dps</name>
+                            <topology>B0.1.PT7.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT8</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal8/1.8/TP</name>
+                    <description>Cal8/1.8/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP008.uv.dps">
+                          <name>B0.1.T.SAP008.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT8.uv.dps</name>
+                            <topology>B0.1.PT8.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT9</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal9/1.9/TP</name>
+                    <description>Cal9/1.9/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP009.uv.dps">
+                          <name>B0.1.T.SAP009.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT9.uv.dps</name>
+                            <topology>B0.1.PT9.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT10</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal10/1.10/TP</name>
+                    <description>Cal10/1.10/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP010.uv.dps">
+                          <name>B0.1.T.SAP010.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT10.uv.dps</name>
+                            <topology>B0.1.PT10.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT11</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal11/1.11/TP</name>
+                    <description>Cal11/1.11/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP011.uv.dps">
+                          <name>B0.1.T.SAP011.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT11.uv.dps</name>
+                            <topology>B0.1.PT11.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT12</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal12/1.12/TP</name>
+                    <description>Cal12/1.12/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP012.uv.dps">
+                          <name>B0.1.T.SAP012.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT12.uv.dps</name>
+                            <topology>B0.1.PT12.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT13</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal13/1.13/TP</name>
+                    <description>Cal13/1.13/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP013.uv.dps">
+                          <name>B0.1.T.SAP013.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT13.uv.dps</name>
+                            <topology>B0.1.PT13.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT14</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal14/1.14/TP</name>
+                    <description>Cal14/1.14/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP014.uv.dps">
+                          <name>B0.1.T.SAP014.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT14.uv.dps</name>
+                            <topology>B0.1.PT14.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT15</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal15/1.15/TP</name>
+                    <description>Cal15/1.15/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP015.uv.dps">
+                          <name>B0.1.T.SAP015.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT15.uv.dps</name>
+                            <topology>B0.1.PT15.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT16</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal16/1.16/TP</name>
+                    <description>Cal16/1.16/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP016.uv.dps">
+                          <name>B0.1.T.SAP016.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT16.uv.dps</name>
+                            <topology>B0.1.PT16.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT17</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal17/1.17/TP</name>
+                    <description>Cal17/1.17/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP017.uv.dps">
+                          <name>B0.1.T.SAP017.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT17.uv.dps</name>
+                            <topology>B0.1.PT17.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT18</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal18/1.18/TP</name>
+                    <description>Cal18/1.18/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP018.uv.dps">
+                          <name>B0.1.T.SAP018.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT18.uv.dps</name>
+                            <topology>B0.1.PT18.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT19</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal19/1.19/TP</name>
+                    <description>Cal19/1.19/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP019.uv.dps">
+                          <name>B0.1.T.SAP019.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT19.uv.dps</name>
+                            <topology>B0.1.PT19.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT20</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal20/1.20/TP</name>
+                    <description>Cal20/1.20/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP020.uv.dps">
+                          <name>B0.1.T.SAP020.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT20.uv.dps</name>
+                            <topology>B0.1.PT20.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT21</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal21/1.21/TP</name>
+                    <description>Cal21/1.21/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP021.uv.dps">
+                          <name>B0.1.T.SAP021.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT21.uv.dps</name>
+                            <topology>B0.1.PT21.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT22</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal22/1.22/TP</name>
+                    <description>Cal22/1.22/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP022.uv.dps">
+                          <name>B0.1.T.SAP022.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT22.uv.dps</name>
+                            <topology>B0.1.PT22.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT23</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal23/1.23/TP</name>
+                    <description>Cal23/1.23/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP023.uv.dps">
+                          <name>B0.1.T.SAP023.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT23.uv.dps</name>
+                            <topology>B0.1.PT23.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT24</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal24/1.24/TP</name>
+                    <description>Cal24/1.24/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP024.uv.dps">
+                          <name>B0.1.T.SAP024.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT24.uv.dps</name>
+                            <topology>B0.1.PT24.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT25</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal25/1.25/TP</name>
+                    <description>Cal25/1.25/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP025.uv.dps">
+                          <name>B0.1.T.SAP025.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT25.uv.dps</name>
+                            <topology>B0.1.PT25.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT26</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal26/1.26/TP</name>
+                    <description>Cal26/1.26/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP026.uv.dps">
+                          <name>B0.1.T.SAP026.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT26.uv.dps</name>
+                            <topology>B0.1.PT26.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT27</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal27/1.27/TP</name>
+                    <description>Cal27/1.27/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP027.uv.dps">
+                          <name>B0.1.T.SAP027.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT27.uv.dps</name>
+                            <topology>B0.1.PT27.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT28</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal28/1.28/TP</name>
+                    <description>Cal28/1.28/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP028.uv.dps">
+                          <name>B0.1.T.SAP028.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT28.uv.dps</name>
+                            <topology>B0.1.PT28.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT29</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal29/1.29/TP</name>
+                    <description>Cal29/1.29/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP029.uv.dps">
+                          <name>B0.1.T.SAP029.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT29.uv.dps</name>
+                            <topology>B0.1.PT29.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT30</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal30/1.30/TP</name>
+                    <description>Cal30/1.30/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP030.uv.dps">
+                          <name>B0.1.T.SAP030.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT30.uv.dps</name>
+                            <topology>B0.1.PT30.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT31</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal31/1.31/TP</name>
+                    <description>Cal31/1.31/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP031.uv.dps">
+                          <name>B0.1.T.SAP031.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT31.uv.dps</name>
+                            <topology>B0.1.PT31.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT32</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal32/1.32/TP</name>
+                    <description>Cal32/1.32/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP032.uv.dps">
+                          <name>B0.1.T.SAP032.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT32.uv.dps</name>
+                            <topology>B0.1.PT32.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT33</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal33/1.33/TP</name>
+                    <description>Cal33/1.33/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP033.uv.dps">
+                          <name>B0.1.T.SAP033.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT33.uv.dps</name>
+                            <topology>B0.1.PT33.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT34</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal34/1.34/TP</name>
+                    <description>Cal34/1.34/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP034.uv.dps">
+                          <name>B0.1.T.SAP034.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT34.uv.dps</name>
+                            <topology>B0.1.PT34.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT35</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal35/1.35/TP</name>
+                    <description>Cal35/1.35/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP035.uv.dps">
+                          <name>B0.1.T.SAP035.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT35.uv.dps</name>
+                            <topology>B0.1.PT35.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT36</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal36/1.36/TP</name>
+                    <description>Cal36/1.36/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP036.uv.dps">
+                          <name>B0.1.T.SAP036.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT36.uv.dps</name>
+                            <topology>B0.1.PT36.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT37</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal37/1.37/TP</name>
+                    <description>Cal37/1.37/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP037.uv.dps">
+                          <name>B0.1.T.SAP037.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT37.uv.dps</name>
+                            <topology>B0.1.PT37.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT38</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal38/1.38/TP</name>
+                    <description>Cal38/1.38/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP038.uv.dps">
+                          <name>B0.1.T.SAP038.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT38.uv.dps</name>
+                            <topology>B0.1.PT38.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT39</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal39/1.39/TP</name>
+                    <description>Cal39/1.39/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP039.uv.dps">
+                          <name>B0.1.T.SAP039.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT39.uv.dps</name>
+                            <topology>B0.1.PT39.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT40</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal40/1.40/TP</name>
+                    <description>Cal40/1.40/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP040.uv.dps">
+                          <name>B0.1.T.SAP040.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT40.uv.dps</name>
+                            <topology>B0.1.PT40.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT41</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal41/1.41/TP</name>
+                    <description>Cal41/1.41/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP041.uv.dps">
+                          <name>B0.1.T.SAP041.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT41.uv.dps</name>
+                            <topology>B0.1.PT41.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT42</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal42/1.42/TP</name>
+                    <description>Cal42/1.42/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP042.uv.dps">
+                          <name>B0.1.T.SAP042.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT42.uv.dps</name>
+                            <topology>B0.1.PT42.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT43</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal43/1.43/TP</name>
+                    <description>Cal43/1.43/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP043.uv.dps">
+                          <name>B0.1.T.SAP043.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT43.uv.dps</name>
+                            <topology>B0.1.PT43.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT44</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal44/1.44/TP</name>
+                    <description>Cal44/1.44/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP044.uv.dps">
+                          <name>B0.1.T.SAP044.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT44.uv.dps</name>
+                            <topology>B0.1.PT44.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT45</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal45/1.45/TP</name>
+                    <description>Cal45/1.45/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP045.uv.dps">
+                          <name>B0.1.T.SAP045.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT45.uv.dps</name>
+                            <topology>B0.1.PT45.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT46</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal46/1.46/TP</name>
+                    <description>Cal46/1.46/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP046.uv.dps">
+                          <name>B0.1.T.SAP046.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT46.uv.dps</name>
+                            <topology>B0.1.PT46.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT47</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal47/1.47/TP</name>
+                    <description>Cal47/1.47/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP047.uv.dps">
+                          <name>B0.1.T.SAP047.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT47.uv.dps</name>
+                            <topology>B0.1.PT47.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT48</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal48/1.48/TP</name>
+                    <description>Cal48/1.48/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP048.uv.dps">
+                          <name>B0.1.T.SAP048.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT48.uv.dps</name>
+                            <topology>B0.1.PT48.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT49</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal49/1.49/TP</name>
+                    <description>Cal49/1.49/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP049.uv.dps">
+                          <name>B0.1.T.SAP049.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT49.uv.dps</name>
+                            <topology>B0.1.PT49.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT50</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal50/1.50/TP</name>
+                    <description>Cal50/1.50/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP050.uv.dps">
+                          <name>B0.1.T.SAP050.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT50.uv.dps</name>
+                            <topology>B0.1.PT50.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT51</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal51/1.51/TP</name>
+                    <description>Cal51/1.51/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP051.uv.dps">
+                          <name>B0.1.T.SAP051.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT51.uv.dps</name>
+                            <topology>B0.1.PT51.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT52</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal52/1.52/TP</name>
+                    <description>Cal52/1.52/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP052.uv.dps">
+                          <name>B0.1.T.SAP052.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT52.uv.dps</name>
+                            <topology>B0.1.PT52.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT53</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal53/1.53/TP</name>
+                    <description>Cal53/1.53/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP053.uv.dps">
+                          <name>B0.1.T.SAP053.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT53.uv.dps</name>
+                            <topology>B0.1.PT53.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT54</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal54/1.54/TP</name>
+                    <description>Cal54/1.54/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP054.uv.dps">
+                          <name>B0.1.T.SAP054.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT54.uv.dps</name>
+                            <topology>B0.1.PT54.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT55</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal55/1.55/TP</name>
+                    <description>Cal55/1.55/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP055.uv.dps">
+                          <name>B0.1.T.SAP055.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT55.uv.dps</name>
+                            <topology>B0.1.PT55.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT56</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal56/1.56/TP</name>
+                    <description>Cal56/1.56/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP056.uv.dps">
+                          <name>B0.1.T.SAP056.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT56.uv.dps</name>
+                            <topology>B0.1.PT56.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT57</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal57/1.57/TP</name>
+                    <description>Cal57/1.57/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP057.uv.dps">
+                          <name>B0.1.T.SAP057.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT57.uv.dps</name>
+                            <topology>B0.1.PT57.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT58</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal58/1.58/TP</name>
+                    <description>Cal58/1.58/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP058.uv.dps">
+                          <name>B0.1.T.SAP058.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT58.uv.dps</name>
+                            <topology>B0.1.PT58.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT59</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal59/1.59/TP</name>
+                    <description>Cal59/1.59/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP059.uv.dps">
+                          <name>B0.1.T.SAP059.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT59.uv.dps</name>
+                            <topology>B0.1.PT59.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT60</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>Cal60/1.60/TP</name>
+                    <description>Cal60/1.60/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+            <bbsParameters>
+              <baselines></baselines>
+              <correlations></correlations>
+              <beamModelEnable>true</beamModelEnable>
+              <solveParms></solveParms>
+              <solveUVRange></solveUVRange>
+              <strategyBaselines></strategyBaselines>
+              <strategyTimeRange></strategyTimeRange>
+            </bbsParameters>
+</pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP060.uv.dps">
+                          <name>B0.1.T.SAP060.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT60.uv.dps</name>
+                            <topology>B0.1.PT60.uv.dps</topology>
+                            <status>no_data</status>
+                            
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB1</topology>
+                <predecessor_topology>B0.1.PT1</predecessor_topology>
+                <name>Cal1/1.1/PP</name>
+                <description>Cal1/1.1/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB1.uv.dps</name>
+                      <topology>B0.1.PTLB1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP1</topology>
+                <predecessor_topology>B0.1.PTLB1</predecessor_topology>
+                <name>Cal1/1.1/LBP</name>
+                <description>Cal1/1.1/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB1.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP1.uv.dps</name>
+                      <topology>B0.1.LBP1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB2</topology>
+                <predecessor_topology>B0.1.PT2</predecessor_topology>
+                <name>Cal2/1.2/PP</name>
+                <description>Cal2/1.2/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT2.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB2.uv.dps</name>
+                      <topology>B0.1.PTLB2.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP2</topology>
+                <predecessor_topology>B0.1.PTLB2</predecessor_topology>
+                <name>Cal2/1.2/LBP</name>
+                <description>Cal2/1.2/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB2.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP2.uv.dps</name>
+                      <topology>B0.1.LBP2.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB3</topology>
+                <predecessor_topology>B0.1.PT3</predecessor_topology>
+                <name>Cal3/1.3/PP</name>
+                <description>Cal3/1.3/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT3.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB3.uv.dps</name>
+                      <topology>B0.1.PTLB3.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP3</topology>
+                <predecessor_topology>B0.1.PTLB3</predecessor_topology>
+                <name>Cal3/1.3/LBP</name>
+                <description>Cal3/1.3/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB3.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP3.uv.dps</name>
+                      <topology>B0.1.LBP3.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB4</topology>
+                <predecessor_topology>B0.1.PT4</predecessor_topology>
+                <name>Cal4/1.4/PP</name>
+                <description>Cal4/1.4/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT4.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB4.uv.dps</name>
+                      <topology>B0.1.PTLB4.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP4</topology>
+                <predecessor_topology>B0.1.PTLB4</predecessor_topology>
+                <name>Cal4/1.4/LBP</name>
+                <description>Cal4/1.4/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB4.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP4.uv.dps</name>
+                      <topology>B0.1.LBP4.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB5</topology>
+                <predecessor_topology>B0.1.PT5</predecessor_topology>
+                <name>Cal5/1.5/PP</name>
+                <description>Cal5/1.5/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT5.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB5.uv.dps</name>
+                      <topology>B0.1.PTLB5.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP5</topology>
+                <predecessor_topology>B0.1.PTLB5</predecessor_topology>
+                <name>Cal5/1.5/LBP</name>
+                <description>Cal5/1.5/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB5.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP5.uv.dps</name>
+                      <topology>B0.1.LBP5.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB6</topology>
+                <predecessor_topology>B0.1.PT6</predecessor_topology>
+                <name>Cal6/1.6/PP</name>
+                <description>Cal6/1.6/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT6.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB6.uv.dps</name>
+                      <topology>B0.1.PTLB6.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP6</topology>
+                <predecessor_topology>B0.1.PTLB6</predecessor_topology>
+                <name>Cal6/1.6/LBP</name>
+                <description>Cal6/1.6/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB6.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP6.uv.dps</name>
+                      <topology>B0.1.LBP6.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB7</topology>
+                <predecessor_topology>B0.1.PT7</predecessor_topology>
+                <name>Cal7/1.7/PP</name>
+                <description>Cal7/1.7/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT7.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB7.uv.dps</name>
+                      <topology>B0.1.PTLB7.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP7</topology>
+                <predecessor_topology>B0.1.PTLB7</predecessor_topology>
+                <name>Cal7/1.7/LBP</name>
+                <description>Cal7/1.7/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB7.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP7.uv.dps</name>
+                      <topology>B0.1.LBP7.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB8</topology>
+                <predecessor_topology>B0.1.PT8</predecessor_topology>
+                <name>Cal8/1.8/PP</name>
+                <description>Cal8/1.8/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT8.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB8.uv.dps</name>
+                      <topology>B0.1.PTLB8.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP8</topology>
+                <predecessor_topology>B0.1.PTLB8</predecessor_topology>
+                <name>Cal8/1.8/LBP</name>
+                <description>Cal8/1.8/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB8.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP8.uv.dps</name>
+                      <topology>B0.1.LBP8.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB9</topology>
+                <predecessor_topology>B0.1.PT9</predecessor_topology>
+                <name>Cal9/1.9/PP</name>
+                <description>Cal9/1.9/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT9.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB9.uv.dps</name>
+                      <topology>B0.1.PTLB9.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP9</topology>
+                <predecessor_topology>B0.1.PTLB9</predecessor_topology>
+                <name>Cal9/1.9/LBP</name>
+                <description>Cal9/1.9/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB9.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP9.uv.dps</name>
+                      <topology>B0.1.LBP9.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB10</topology>
+                <predecessor_topology>B0.1.PT10</predecessor_topology>
+                <name>Cal10/1.10/PP</name>
+                <description>Cal10/1.10/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT10.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB10.uv.dps</name>
+                      <topology>B0.1.PTLB10.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP10</topology>
+                <predecessor_topology>B0.1.PTLB10</predecessor_topology>
+                <name>Cal10/1.10/LBP</name>
+                <description>Cal10/1.10/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB10.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP10.uv.dps</name>
+                      <topology>B0.1.LBP10.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB11</topology>
+                <predecessor_topology>B0.1.PT11</predecessor_topology>
+                <name>Cal11/1.11/PP</name>
+                <description>Cal11/1.11/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT11.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB11.uv.dps</name>
+                      <topology>B0.1.PTLB11.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP11</topology>
+                <predecessor_topology>B0.1.PTLB11</predecessor_topology>
+                <name>Cal11/1.11/LBP</name>
+                <description>Cal11/1.11/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB11.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP11.uv.dps</name>
+                      <topology>B0.1.LBP11.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB12</topology>
+                <predecessor_topology>B0.1.PT12</predecessor_topology>
+                <name>Cal12/1.12/PP</name>
+                <description>Cal12/1.12/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT12.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB12.uv.dps</name>
+                      <topology>B0.1.PTLB12.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP12</topology>
+                <predecessor_topology>B0.1.PTLB12</predecessor_topology>
+                <name>Cal12/1.12/LBP</name>
+                <description>Cal12/1.12/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB12.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP12.uv.dps</name>
+                      <topology>B0.1.LBP12.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB13</topology>
+                <predecessor_topology>B0.1.PT13</predecessor_topology>
+                <name>Cal13/1.13/PP</name>
+                <description>Cal13/1.13/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT13.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB13.uv.dps</name>
+                      <topology>B0.1.PTLB13.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP13</topology>
+                <predecessor_topology>B0.1.PTLB13</predecessor_topology>
+                <name>Cal13/1.13/LBP</name>
+                <description>Cal13/1.13/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB13.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP13.uv.dps</name>
+                      <topology>B0.1.LBP13.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB14</topology>
+                <predecessor_topology>B0.1.PT14</predecessor_topology>
+                <name>Cal14/1.14/PP</name>
+                <description>Cal14/1.14/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT14.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB14.uv.dps</name>
+                      <topology>B0.1.PTLB14.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP14</topology>
+                <predecessor_topology>B0.1.PTLB14</predecessor_topology>
+                <name>Cal14/1.14/LBP</name>
+                <description>Cal14/1.14/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB14.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP14.uv.dps</name>
+                      <topology>B0.1.LBP14.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB15</topology>
+                <predecessor_topology>B0.1.PT15</predecessor_topology>
+                <name>Cal15/1.15/PP</name>
+                <description>Cal15/1.15/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT15.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB15.uv.dps</name>
+                      <topology>B0.1.PTLB15.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP15</topology>
+                <predecessor_topology>B0.1.PTLB15</predecessor_topology>
+                <name>Cal15/1.15/LBP</name>
+                <description>Cal15/1.15/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB15.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP15.uv.dps</name>
+                      <topology>B0.1.LBP15.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB16</topology>
+                <predecessor_topology>B0.1.PT16</predecessor_topology>
+                <name>Cal16/1.16/PP</name>
+                <description>Cal16/1.16/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT16.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB16.uv.dps</name>
+                      <topology>B0.1.PTLB16.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP16</topology>
+                <predecessor_topology>B0.1.PTLB16</predecessor_topology>
+                <name>Cal16/1.16/LBP</name>
+                <description>Cal16/1.16/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB16.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP16.uv.dps</name>
+                      <topology>B0.1.LBP16.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB17</topology>
+                <predecessor_topology>B0.1.PT17</predecessor_topology>
+                <name>Cal17/1.17/PP</name>
+                <description>Cal17/1.17/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT17.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB17.uv.dps</name>
+                      <topology>B0.1.PTLB17.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP17</topology>
+                <predecessor_topology>B0.1.PTLB17</predecessor_topology>
+                <name>Cal17/1.17/LBP</name>
+                <description>Cal17/1.17/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB17.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP17.uv.dps</name>
+                      <topology>B0.1.LBP17.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB18</topology>
+                <predecessor_topology>B0.1.PT18</predecessor_topology>
+                <name>Cal18/1.18/PP</name>
+                <description>Cal18/1.18/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT18.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB18.uv.dps</name>
+                      <topology>B0.1.PTLB18.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP18</topology>
+                <predecessor_topology>B0.1.PTLB18</predecessor_topology>
+                <name>Cal18/1.18/LBP</name>
+                <description>Cal18/1.18/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB18.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP18.uv.dps</name>
+                      <topology>B0.1.LBP18.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB19</topology>
+                <predecessor_topology>B0.1.PT19</predecessor_topology>
+                <name>Cal19/1.19/PP</name>
+                <description>Cal19/1.19/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT19.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB19.uv.dps</name>
+                      <topology>B0.1.PTLB19.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP19</topology>
+                <predecessor_topology>B0.1.PTLB19</predecessor_topology>
+                <name>Cal19/1.19/LBP</name>
+                <description>Cal19/1.19/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB19.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP19.uv.dps</name>
+                      <topology>B0.1.LBP19.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB20</topology>
+                <predecessor_topology>B0.1.PT20</predecessor_topology>
+                <name>Cal20/1.20/PP</name>
+                <description>Cal20/1.20/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT20.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB20.uv.dps</name>
+                      <topology>B0.1.PTLB20.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP20</topology>
+                <predecessor_topology>B0.1.PTLB20</predecessor_topology>
+                <name>Cal20/1.20/LBP</name>
+                <description>Cal20/1.20/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB20.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP20.uv.dps</name>
+                      <topology>B0.1.LBP20.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB21</topology>
+                <predecessor_topology>B0.1.PT21</predecessor_topology>
+                <name>Cal21/1.21/PP</name>
+                <description>Cal21/1.21/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT21.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB21.uv.dps</name>
+                      <topology>B0.1.PTLB21.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP21</topology>
+                <predecessor_topology>B0.1.PTLB21</predecessor_topology>
+                <name>Cal21/1.21/LBP</name>
+                <description>Cal21/1.21/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB21.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP21.uv.dps</name>
+                      <topology>B0.1.LBP21.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB22</topology>
+                <predecessor_topology>B0.1.PT22</predecessor_topology>
+                <name>Cal22/1.22/PP</name>
+                <description>Cal22/1.22/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT22.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB22.uv.dps</name>
+                      <topology>B0.1.PTLB22.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP22</topology>
+                <predecessor_topology>B0.1.PTLB22</predecessor_topology>
+                <name>Cal22/1.22/LBP</name>
+                <description>Cal22/1.22/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB22.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP22.uv.dps</name>
+                      <topology>B0.1.LBP22.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB23</topology>
+                <predecessor_topology>B0.1.PT23</predecessor_topology>
+                <name>Cal23/1.23/PP</name>
+                <description>Cal23/1.23/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT23.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB23.uv.dps</name>
+                      <topology>B0.1.PTLB23.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP23</topology>
+                <predecessor_topology>B0.1.PTLB23</predecessor_topology>
+                <name>Cal23/1.23/LBP</name>
+                <description>Cal23/1.23/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB23.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP23.uv.dps</name>
+                      <topology>B0.1.LBP23.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB24</topology>
+                <predecessor_topology>B0.1.PT24</predecessor_topology>
+                <name>Cal24/1.24/PP</name>
+                <description>Cal24/1.24/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT24.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB24.uv.dps</name>
+                      <topology>B0.1.PTLB24.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP24</topology>
+                <predecessor_topology>B0.1.PTLB24</predecessor_topology>
+                <name>Cal24/1.24/LBP</name>
+                <description>Cal24/1.24/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB24.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP24.uv.dps</name>
+                      <topology>B0.1.LBP24.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB25</topology>
+                <predecessor_topology>B0.1.PT25</predecessor_topology>
+                <name>Cal25/1.25/PP</name>
+                <description>Cal25/1.25/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT25.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB25.uv.dps</name>
+                      <topology>B0.1.PTLB25.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP25</topology>
+                <predecessor_topology>B0.1.PTLB25</predecessor_topology>
+                <name>Cal25/1.25/LBP</name>
+                <description>Cal25/1.25/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB25.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP25.uv.dps</name>
+                      <topology>B0.1.LBP25.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB26</topology>
+                <predecessor_topology>B0.1.PT26</predecessor_topology>
+                <name>Cal26/1.26/PP</name>
+                <description>Cal26/1.26/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT26.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB26.uv.dps</name>
+                      <topology>B0.1.PTLB26.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP26</topology>
+                <predecessor_topology>B0.1.PTLB26</predecessor_topology>
+                <name>Cal26/1.26/LBP</name>
+                <description>Cal26/1.26/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB26.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP26.uv.dps</name>
+                      <topology>B0.1.LBP26.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB27</topology>
+                <predecessor_topology>B0.1.PT27</predecessor_topology>
+                <name>Cal27/1.27/PP</name>
+                <description>Cal27/1.27/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT27.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB27.uv.dps</name>
+                      <topology>B0.1.PTLB27.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP27</topology>
+                <predecessor_topology>B0.1.PTLB27</predecessor_topology>
+                <name>Cal27/1.27/LBP</name>
+                <description>Cal27/1.27/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB27.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP27.uv.dps</name>
+                      <topology>B0.1.LBP27.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB28</topology>
+                <predecessor_topology>B0.1.PT28</predecessor_topology>
+                <name>Cal28/1.28/PP</name>
+                <description>Cal28/1.28/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT28.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB28.uv.dps</name>
+                      <topology>B0.1.PTLB28.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP28</topology>
+                <predecessor_topology>B0.1.PTLB28</predecessor_topology>
+                <name>Cal28/1.28/LBP</name>
+                <description>Cal28/1.28/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB28.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP28.uv.dps</name>
+                      <topology>B0.1.LBP28.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB29</topology>
+                <predecessor_topology>B0.1.PT29</predecessor_topology>
+                <name>Cal29/1.29/PP</name>
+                <description>Cal29/1.29/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT29.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB29.uv.dps</name>
+                      <topology>B0.1.PTLB29.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP29</topology>
+                <predecessor_topology>B0.1.PTLB29</predecessor_topology>
+                <name>Cal29/1.29/LBP</name>
+                <description>Cal29/1.29/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB29.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP29.uv.dps</name>
+                      <topology>B0.1.LBP29.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB30</topology>
+                <predecessor_topology>B0.1.PT30</predecessor_topology>
+                <name>Cal30/1.30/PP</name>
+                <description>Cal30/1.30/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT30.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB30.uv.dps</name>
+                      <topology>B0.1.PTLB30.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP30</topology>
+                <predecessor_topology>B0.1.PTLB30</predecessor_topology>
+                <name>Cal30/1.30/LBP</name>
+                <description>Cal30/1.30/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB30.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP30.uv.dps</name>
+                      <topology>B0.1.LBP30.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB31</topology>
+                <predecessor_topology>B0.1.PT31</predecessor_topology>
+                <name>Cal31/1.31/PP</name>
+                <description>Cal31/1.31/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT31.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB31.uv.dps</name>
+                      <topology>B0.1.PTLB31.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP31</topology>
+                <predecessor_topology>B0.1.PTLB31</predecessor_topology>
+                <name>Cal31/1.31/LBP</name>
+                <description>Cal31/1.31/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB31.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP31.uv.dps</name>
+                      <topology>B0.1.LBP31.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB32</topology>
+                <predecessor_topology>B0.1.PT32</predecessor_topology>
+                <name>Cal32/1.32/PP</name>
+                <description>Cal32/1.32/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT32.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB32.uv.dps</name>
+                      <topology>B0.1.PTLB32.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP32</topology>
+                <predecessor_topology>B0.1.PTLB32</predecessor_topology>
+                <name>Cal32/1.32/LBP</name>
+                <description>Cal32/1.32/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB32.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP32.uv.dps</name>
+                      <topology>B0.1.LBP32.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB33</topology>
+                <predecessor_topology>B0.1.PT33</predecessor_topology>
+                <name>Cal33/1.33/PP</name>
+                <description>Cal33/1.33/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT33.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB33.uv.dps</name>
+                      <topology>B0.1.PTLB33.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP33</topology>
+                <predecessor_topology>B0.1.PTLB33</predecessor_topology>
+                <name>Cal33/1.33/LBP</name>
+                <description>Cal33/1.33/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB33.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP33.uv.dps</name>
+                      <topology>B0.1.LBP33.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB34</topology>
+                <predecessor_topology>B0.1.PT34</predecessor_topology>
+                <name>Cal34/1.34/PP</name>
+                <description>Cal34/1.34/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT34.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB34.uv.dps</name>
+                      <topology>B0.1.PTLB34.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP34</topology>
+                <predecessor_topology>B0.1.PTLB34</predecessor_topology>
+                <name>Cal34/1.34/LBP</name>
+                <description>Cal34/1.34/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB34.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP34.uv.dps</name>
+                      <topology>B0.1.LBP34.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB35</topology>
+                <predecessor_topology>B0.1.PT35</predecessor_topology>
+                <name>Cal35/1.35/PP</name>
+                <description>Cal35/1.35/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT35.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB35.uv.dps</name>
+                      <topology>B0.1.PTLB35.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP35</topology>
+                <predecessor_topology>B0.1.PTLB35</predecessor_topology>
+                <name>Cal35/1.35/LBP</name>
+                <description>Cal35/1.35/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB35.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP35.uv.dps</name>
+                      <topology>B0.1.LBP35.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB36</topology>
+                <predecessor_topology>B0.1.PT36</predecessor_topology>
+                <name>Cal36/1.36/PP</name>
+                <description>Cal36/1.36/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT36.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB36.uv.dps</name>
+                      <topology>B0.1.PTLB36.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP36</topology>
+                <predecessor_topology>B0.1.PTLB36</predecessor_topology>
+                <name>Cal36/1.36/LBP</name>
+                <description>Cal36/1.36/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB36.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP36.uv.dps</name>
+                      <topology>B0.1.LBP36.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB37</topology>
+                <predecessor_topology>B0.1.PT37</predecessor_topology>
+                <name>Cal37/1.37/PP</name>
+                <description>Cal37/1.37/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT37.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB37.uv.dps</name>
+                      <topology>B0.1.PTLB37.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP37</topology>
+                <predecessor_topology>B0.1.PTLB37</predecessor_topology>
+                <name>Cal37/1.37/LBP</name>
+                <description>Cal37/1.37/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB37.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP37.uv.dps</name>
+                      <topology>B0.1.LBP37.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB38</topology>
+                <predecessor_topology>B0.1.PT38</predecessor_topology>
+                <name>Cal38/1.38/PP</name>
+                <description>Cal38/1.38/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT38.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB38.uv.dps</name>
+                      <topology>B0.1.PTLB38.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP38</topology>
+                <predecessor_topology>B0.1.PTLB38</predecessor_topology>
+                <name>Cal38/1.38/LBP</name>
+                <description>Cal38/1.38/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB38.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP38.uv.dps</name>
+                      <topology>B0.1.LBP38.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB39</topology>
+                <predecessor_topology>B0.1.PT39</predecessor_topology>
+                <name>Cal39/1.39/PP</name>
+                <description>Cal39/1.39/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT39.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB39.uv.dps</name>
+                      <topology>B0.1.PTLB39.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP39</topology>
+                <predecessor_topology>B0.1.PTLB39</predecessor_topology>
+                <name>Cal39/1.39/LBP</name>
+                <description>Cal39/1.39/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB39.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP39.uv.dps</name>
+                      <topology>B0.1.LBP39.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB40</topology>
+                <predecessor_topology>B0.1.PT40</predecessor_topology>
+                <name>Cal40/1.40/PP</name>
+                <description>Cal40/1.40/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT40.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB40.uv.dps</name>
+                      <topology>B0.1.PTLB40.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP40</topology>
+                <predecessor_topology>B0.1.PTLB40</predecessor_topology>
+                <name>Cal40/1.40/LBP</name>
+                <description>Cal40/1.40/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB40.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP40.uv.dps</name>
+                      <topology>B0.1.LBP40.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB41</topology>
+                <predecessor_topology>B0.1.PT41</predecessor_topology>
+                <name>Cal41/1.41/PP</name>
+                <description>Cal41/1.41/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT41.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB41.uv.dps</name>
+                      <topology>B0.1.PTLB41.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP41</topology>
+                <predecessor_topology>B0.1.PTLB41</predecessor_topology>
+                <name>Cal41/1.41/LBP</name>
+                <description>Cal41/1.41/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB41.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP41.uv.dps</name>
+                      <topology>B0.1.LBP41.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB42</topology>
+                <predecessor_topology>B0.1.PT42</predecessor_topology>
+                <name>Cal42/1.42/PP</name>
+                <description>Cal42/1.42/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT42.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB42.uv.dps</name>
+                      <topology>B0.1.PTLB42.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP42</topology>
+                <predecessor_topology>B0.1.PTLB42</predecessor_topology>
+                <name>Cal42/1.42/LBP</name>
+                <description>Cal42/1.42/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB42.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP42.uv.dps</name>
+                      <topology>B0.1.LBP42.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB43</topology>
+                <predecessor_topology>B0.1.PT43</predecessor_topology>
+                <name>Cal43/1.43/PP</name>
+                <description>Cal43/1.43/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT43.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB43.uv.dps</name>
+                      <topology>B0.1.PTLB43.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP43</topology>
+                <predecessor_topology>B0.1.PTLB43</predecessor_topology>
+                <name>Cal43/1.43/LBP</name>
+                <description>Cal43/1.43/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB43.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP43.uv.dps</name>
+                      <topology>B0.1.LBP43.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB44</topology>
+                <predecessor_topology>B0.1.PT44</predecessor_topology>
+                <name>Cal44/1.44/PP</name>
+                <description>Cal44/1.44/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT44.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB44.uv.dps</name>
+                      <topology>B0.1.PTLB44.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP44</topology>
+                <predecessor_topology>B0.1.PTLB44</predecessor_topology>
+                <name>Cal44/1.44/LBP</name>
+                <description>Cal44/1.44/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB44.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP44.uv.dps</name>
+                      <topology>B0.1.LBP44.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB45</topology>
+                <predecessor_topology>B0.1.PT45</predecessor_topology>
+                <name>Cal45/1.45/PP</name>
+                <description>Cal45/1.45/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT45.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB45.uv.dps</name>
+                      <topology>B0.1.PTLB45.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP45</topology>
+                <predecessor_topology>B0.1.PTLB45</predecessor_topology>
+                <name>Cal45/1.45/LBP</name>
+                <description>Cal45/1.45/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB45.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP45.uv.dps</name>
+                      <topology>B0.1.LBP45.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB46</topology>
+                <predecessor_topology>B0.1.PT46</predecessor_topology>
+                <name>Cal46/1.46/PP</name>
+                <description>Cal46/1.46/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT46.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB46.uv.dps</name>
+                      <topology>B0.1.PTLB46.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP46</topology>
+                <predecessor_topology>B0.1.PTLB46</predecessor_topology>
+                <name>Cal46/1.46/LBP</name>
+                <description>Cal46/1.46/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB46.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP46.uv.dps</name>
+                      <topology>B0.1.LBP46.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB47</topology>
+                <predecessor_topology>B0.1.PT47</predecessor_topology>
+                <name>Cal47/1.47/PP</name>
+                <description>Cal47/1.47/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT47.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB47.uv.dps</name>
+                      <topology>B0.1.PTLB47.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP47</topology>
+                <predecessor_topology>B0.1.PTLB47</predecessor_topology>
+                <name>Cal47/1.47/LBP</name>
+                <description>Cal47/1.47/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB47.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP47.uv.dps</name>
+                      <topology>B0.1.LBP47.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB48</topology>
+                <predecessor_topology>B0.1.PT48</predecessor_topology>
+                <name>Cal48/1.48/PP</name>
+                <description>Cal48/1.48/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT48.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB48.uv.dps</name>
+                      <topology>B0.1.PTLB48.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP48</topology>
+                <predecessor_topology>B0.1.PTLB48</predecessor_topology>
+                <name>Cal48/1.48/LBP</name>
+                <description>Cal48/1.48/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB48.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP48.uv.dps</name>
+                      <topology>B0.1.LBP48.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB49</topology>
+                <predecessor_topology>B0.1.PT49</predecessor_topology>
+                <name>Cal49/1.49/PP</name>
+                <description>Cal49/1.49/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT49.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB49.uv.dps</name>
+                      <topology>B0.1.PTLB49.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP49</topology>
+                <predecessor_topology>B0.1.PTLB49</predecessor_topology>
+                <name>Cal49/1.49/LBP</name>
+                <description>Cal49/1.49/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB49.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP49.uv.dps</name>
+                      <topology>B0.1.LBP49.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB50</topology>
+                <predecessor_topology>B0.1.PT50</predecessor_topology>
+                <name>Cal50/1.50/PP</name>
+                <description>Cal50/1.50/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT50.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB50.uv.dps</name>
+                      <topology>B0.1.PTLB50.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP50</topology>
+                <predecessor_topology>B0.1.PTLB50</predecessor_topology>
+                <name>Cal50/1.50/LBP</name>
+                <description>Cal50/1.50/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB50.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP50.uv.dps</name>
+                      <topology>B0.1.LBP50.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB51</topology>
+                <predecessor_topology>B0.1.PT51</predecessor_topology>
+                <name>Cal51/1.51/PP</name>
+                <description>Cal51/1.51/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT51.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB51.uv.dps</name>
+                      <topology>B0.1.PTLB51.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP51</topology>
+                <predecessor_topology>B0.1.PTLB51</predecessor_topology>
+                <name>Cal51/1.51/LBP</name>
+                <description>Cal51/1.51/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB51.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP51.uv.dps</name>
+                      <topology>B0.1.LBP51.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB52</topology>
+                <predecessor_topology>B0.1.PT52</predecessor_topology>
+                <name>Cal52/1.52/PP</name>
+                <description>Cal52/1.52/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT52.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB52.uv.dps</name>
+                      <topology>B0.1.PTLB52.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP52</topology>
+                <predecessor_topology>B0.1.PTLB52</predecessor_topology>
+                <name>Cal52/1.52/LBP</name>
+                <description>Cal52/1.52/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB52.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP52.uv.dps</name>
+                      <topology>B0.1.LBP52.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB53</topology>
+                <predecessor_topology>B0.1.PT53</predecessor_topology>
+                <name>Cal53/1.53/PP</name>
+                <description>Cal53/1.53/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT53.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB53.uv.dps</name>
+                      <topology>B0.1.PTLB53.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP53</topology>
+                <predecessor_topology>B0.1.PTLB53</predecessor_topology>
+                <name>Cal53/1.53/LBP</name>
+                <description>Cal53/1.53/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB53.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP53.uv.dps</name>
+                      <topology>B0.1.LBP53.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB54</topology>
+                <predecessor_topology>B0.1.PT54</predecessor_topology>
+                <name>Cal54/1.54/PP</name>
+                <description>Cal54/1.54/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT54.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB54.uv.dps</name>
+                      <topology>B0.1.PTLB54.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP54</topology>
+                <predecessor_topology>B0.1.PTLB54</predecessor_topology>
+                <name>Cal54/1.54/LBP</name>
+                <description>Cal54/1.54/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB54.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP54.uv.dps</name>
+                      <topology>B0.1.LBP54.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB55</topology>
+                <predecessor_topology>B0.1.PT55</predecessor_topology>
+                <name>Cal55/1.55/PP</name>
+                <description>Cal55/1.55/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT55.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB55.uv.dps</name>
+                      <topology>B0.1.PTLB55.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP55</topology>
+                <predecessor_topology>B0.1.PTLB55</predecessor_topology>
+                <name>Cal55/1.55/LBP</name>
+                <description>Cal55/1.55/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB55.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP55.uv.dps</name>
+                      <topology>B0.1.LBP55.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB56</topology>
+                <predecessor_topology>B0.1.PT56</predecessor_topology>
+                <name>Cal56/1.56/PP</name>
+                <description>Cal56/1.56/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT56.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB56.uv.dps</name>
+                      <topology>B0.1.PTLB56.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP56</topology>
+                <predecessor_topology>B0.1.PTLB56</predecessor_topology>
+                <name>Cal56/1.56/LBP</name>
+                <description>Cal56/1.56/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB56.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP56.uv.dps</name>
+                      <topology>B0.1.LBP56.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB57</topology>
+                <predecessor_topology>B0.1.PT57</predecessor_topology>
+                <name>Cal57/1.57/PP</name>
+                <description>Cal57/1.57/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT57.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB57.uv.dps</name>
+                      <topology>B0.1.PTLB57.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP57</topology>
+                <predecessor_topology>B0.1.PTLB57</predecessor_topology>
+                <name>Cal57/1.57/LBP</name>
+                <description>Cal57/1.57/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB57.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP57.uv.dps</name>
+                      <topology>B0.1.LBP57.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB58</topology>
+                <predecessor_topology>B0.1.PT58</predecessor_topology>
+                <name>Cal58/1.58/PP</name>
+                <description>Cal58/1.58/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT58.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB58.uv.dps</name>
+                      <topology>B0.1.PTLB58.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP58</topology>
+                <predecessor_topology>B0.1.PTLB58</predecessor_topology>
+                <name>Cal58/1.58/LBP</name>
+                <description>Cal58/1.58/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB58.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP58.uv.dps</name>
+                      <topology>B0.1.LBP58.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB59</topology>
+                <predecessor_topology>B0.1.PT59</predecessor_topology>
+                <name>Cal59/1.59/PP</name>
+                <description>Cal59/1.59/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT59.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB59.uv.dps</name>
+                      <topology>B0.1.PTLB59.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP59</topology>
+                <predecessor_topology>B0.1.PTLB59</predecessor_topology>
+                <name>Cal59/1.59/LBP</name>
+                <description>Cal59/1.59/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB59.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP59.uv.dps</name>
+                      <topology>B0.1.LBP59.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB60</topology>
+                <predecessor_topology>B0.1.PT60</predecessor_topology>
+                <name>Cal60/1.60/PP</name>
+                <description>Cal60/1.60/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>1500</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>4</averagingFreqStep>
+                    <averagingTimeStep>4</averagingTimeStep>
+                    <demixFreqStep>4</demixFreqStep>
+                    <demixTimeStep>4</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT60.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB60.uv.dps</name>
+                      <topology>B0.1.PTLB60.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP60</topology>
+                <predecessor_topology>B0.1.PTLB60</predecessor_topology>
+                <name>Cal60/1.60/LBP</name>
+                <description>Cal60/1.60/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>1500</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>1</subbandGroupsPerMS>
+                  
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB60.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP60.uv.dps</name>
+                      <topology>B0.1.LBP60.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+  </lofar:folder>
+  </item>
+</children>
+  </lofar:folder>
+  </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/Long_Baseline_test.xml b/SAS/XML_generator/test/test_regression.in_data/xml/Long_Baseline_test.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/MSSS_20151207_testmultipipe.xml b/SAS/XML_generator/test/test_regression.in_data/xml/MSSS_20151207_testmultipipe.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7cadb0bf5f1686b48413067329225961acd4b904
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/MSSS_20151207_testmultipipe.xml
@@ -0,0 +1,1020 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+  <version>2.15.0</version>
+  <template version="2.15.0" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+  <description>XML Template generator version 2.15.0</description>
+  </template>
+  <name>LOFAROBS</name>
+  <children>
+   <item index="0">
+    <lofar:folder topology_parent="false">
+    <name>multi_pipelines_20151207</name>
+    <description>multi_pipelines_20151207</description>
+    <children>
+   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>20151207_MSSS_LBA_test</name>
+          <description>20151207_MSSS_LBA_test  LST 0 (Preprocessing)</description>
+          <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>MSSSLBA/L000+30/1/TO</name>
+                  <description>MSSSLBA/L000+30/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>MSSSLBA/L000+30/1/TO</name>
+                    <projectName>LOFAROBS</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>LBA Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>30-90 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-12-07T22:00:00</startTime>
+                      <endTime>2015-12-07T22:05:00</endTime>
+                      <duration>300</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L000+30</name>
+                        <description>L000+30</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L000+30</targetName>
+                            <ra>0.0</ra>
+                            <dec>30.0</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L005+30</name>
+                        <description>L005+30</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L005+30</targetName>
+                            <ra>5.63758333333</ra>
+                            <dec>30.0</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L354+30</name>
+                        <description>L354+30</description>
+                        <topology>B0.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L354+30</targetName>
+                            <ra>354.362416667</ra>
+                            <dec>30.0</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154,155,156,157,158,159,160,161,162,163,185,186,187,188,189,190,191,192,193,194,215,216,217,218,219,220,221,222,223,224,245,246,247,248,249,250,251,252,253,254,275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP002.uv.dps</name>
+                    <topology>B0.1.T.SAP002.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L357+34</name>
+                        <description>L357+34</description>
+                        <topology>B0.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L357+34</targetName>
+                            <ra>357.181208333</ra>
+                            <dec>34.2281944444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP003.uv.dps</name>
+                    <topology>B0.1.T.SAP003.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L003+34</name>
+                        <description>L003+34</description>
+                        <topology>B0.1.T.SAP004</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L003+34</targetName>
+                            <ra>2.81879166667</ra>
+                            <dec>34.2281944444</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP004.uv.dps</name>
+                    <topology>B0.1.T.SAP004.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L357+25</name>
+                        <description>L357+25</description>
+                        <topology>B0.1.T.SAP005</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L357+25</targetName>
+                            <ra>357.181208333</ra>
+                            <dec>25.7718055556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP005.uv.dps</name>
+                    <topology>B0.1.T.SAP005.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>L003+25</name>
+                        <description>L003+25</description>
+                        <topology>B0.1.T.SAP006</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>L003+25</targetName>
+                            <ra>2.81879166667</ra>
+                            <dec>25.7718055556</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>275,276,277,278,279,280,281,282,283,284,305,306,307,308,309,310,311,312,313,314,335,336,337,338,339,340,341,342,343,344,374,375,376,377,378,379,380,381,382,383</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP006.uv.dps</name>
+                    <topology>B0.1.T.SAP006.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>NCP</name>
+                        <description>NCP</description>
+                        <topology>B0.1.T.SAP007</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>NCP</targetName>
+                            <ra>0.0</ra>
+                            <dec>90.0</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>306,307,308,309,310,311,312,313</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP007.uv.dps</name>
+                    <topology>B0.1.T.SAP007.uv.dps</topology>
+                    <status>no_data</status>
+                    
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L000+30/1.0/TP.0</name>
+                <description>MSSSLBA/L000+30/1.0/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.0.uv.dps</name>
+                      <topology>B0.1.PT0.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT0.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L000+30/1.0/TP.1</name>
+                <description>MSSSLBA/L000+30/1.0/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT0.1.uv.dps</name>
+                      <topology>B0.1.PT0.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT1.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L005+30/1.1/TP.0</name>
+                <description>MSSSLBA/L005+30/1.1/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT1.0.uv.dps</name>
+                      <topology>B0.1.PT1.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT1.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L005+30/1.1/TP.1</name>
+                <description>MSSSLBA/L005+30/1.1/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT1.1.uv.dps</name>
+                      <topology>B0.1.PT1.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT2.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L354+30/1.2/TP.0</name>
+                <description>MSSSLBA/L354+30/1.2/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP002.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT2.0.uv.dps</name>
+                      <topology>B0.1.PT2.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT2.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L354+30/1.2/TP.1</name>
+                <description>MSSSLBA/L354+30/1.2/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP002.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT2.1.uv.dps</name>
+                      <topology>B0.1.PT2.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT3.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L357+34/1.3/TP.0</name>
+                <description>MSSSLBA/L357+34/1.3/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP003.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT3.0.uv.dps</name>
+                      <topology>B0.1.PT3.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT3.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L357+34/1.3/TP.1</name>
+                <description>MSSSLBA/L357+34/1.3/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP003.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT3.1.uv.dps</name>
+                      <topology>B0.1.PT3.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT4.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L003+34/1.4/TP.0</name>
+                <description>MSSSLBA/L003+34/1.4/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP004.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT4.0.uv.dps</name>
+                      <topology>B0.1.PT4.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT4.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L003+34/1.4/TP.1</name>
+                <description>MSSSLBA/L003+34/1.4/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP004.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT4.1.uv.dps</name>
+                      <topology>B0.1.PT4.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT5.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L357+25/1.5/TP.0</name>
+                <description>MSSSLBA/L357+25/1.5/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP005.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT5.0.uv.dps</name>
+                      <topology>B0.1.PT5.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT5.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L357+25/1.5/TP.1</name>
+                <description>MSSSLBA/L357+25/1.5/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP005.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT5.1.uv.dps</name>
+                      <topology>B0.1.PT5.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT6.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L003+25/1.6/TP.0</name>
+                <description>MSSSLBA/L003+25/1.6/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP006.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT6.0.uv.dps</name>
+                      <topology>B0.1.PT6.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT6.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/L003+25/1.6/TP.1</name>
+                <description>MSSSLBA/L003+25/1.6/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP006.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT6.1.uv.dps</name>
+                      <topology>B0.1.PT6.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT7.0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/NCP/1.7/TP.0</name>
+                <description>MSSSLBA/NCP/1.7/TP.0 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP007.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT7.0.uv.dps</name>
+                      <topology>B0.1.PT7.0.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PT7.1</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>MSSSLBA/NCP/1.7/TP.1</name>
+                <description>MSSSLBA/NCP/1.7/TP.1 (Preprocessing)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing Pipeline</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>5000</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>5</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>[CygA,CasA]</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+</pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP007.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PT7.1.uv.dps</name>
+                      <topology>B0.1.PT7.1.uv.dps</topology>
+                      <status>no_data</status>
+                      
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+  </lofar:folder>
+  </item>
+</children>
+  </lofar:folder>
+  </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/Ticket_6923.xml b/SAS/XML_generator/test/test_regression.in_data/xml/Ticket_6923.xml
new file mode 100644
index 0000000000000000000000000000000000000000..fbb3e60784883f3407aeae8349fb2164641d475b
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/Ticket_6923.xml
@@ -0,0 +1,1278 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.6.0</version>
+          <template version="2.6.0" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.6.0</description>
+          </template>
+          <name>LC2_040</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>20141116-gr5</name>
+              <description>Group 5</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>HBA_110-150</name>
+                <description>HBA 110-150 (none)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Tile Beam/1/TO</name>
+                  <description>Tile Beam/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Tile Beam/1/TO</name>
+                    <projectName>LC2_040</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>1</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>34</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>1</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS>34</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>1</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>1</stokesDownsamplingStepsIS>
+                        <whichIS>I</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-11-16T05:00:00</startTime>
+                      <endTime>2014-11-16T05:12:00</endTime>
+                      <duration>720</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Tile Beam</name>
+                        <description>Tile Beam</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Tile Beam</targetName>
+                            <ra>123.06256875</ra>
+                            <dec>29.6541583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>116</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.14784701065</angle1>
+                <angle2>0.517562699824</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP000.cs</name>
+                    <topology>B0.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>GJ 1111</name>
+                        <description>GJ 1111</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>GJ 1111</targetName>
+                            <ra>127.455604167</ra>
+                            <dec>26.7760388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>55..258</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.22451994283</angle1>
+                <angle2>0.467330039253</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.21158218069</angle1>
+                <angle2>0.464659152203</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP001.cs</name>
+                    <topology>B0.1.T.SAP001.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR B0751+32</name>
+                        <description>PSR B0751+32</description>
+                        <topology>B0.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR B0751+32</targetName>
+                            <ra>118.669533333</ra>
+                            <dec>32.5322777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>55..258</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.07117407847</angle1>
+                <angle2>0.567795360396</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.08860453627</angle1>
+                <angle2>0.572296128204</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP002.cs</name>
+                    <topology>B0.1.T.SAP002.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR J0751+1807</name>
+                        <description>PSR J0751+1807</description>
+                        <topology>B0.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR J0751+1807</targetName>
+                            <ra>117.788154333</ra>
+                            <dec>18.1273897222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>55..122</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.05579111296</angle1>
+                <angle2>0.316382635445</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP003.cs</name>
+                    <topology>B0.1.T.SAP003.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>HBA_150-190</name>
+                <description>HBA 150-190 (none)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Tile Beam/1/TO</name>
+                  <description>Tile Beam/1/TO (Target Observation)</description>
+                  <topology>B1.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Tile Beam/1/TO</name>
+                    <projectName>LC2_040</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>1</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>34</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>1</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS>34</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>1</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>1</stokesDownsamplingStepsIS>
+                        <whichIS>I</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-11-16T05:15:00</startTime>
+                      <endTime>2014-11-16T05:27:00</endTime>
+                      <duration>720</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Tile Beam</name>
+                        <description>Tile Beam</description>
+                        <topology>B1.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Tile Beam</targetName>
+                            <ra>123.06256875</ra>
+                            <dec>29.6541583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.14784701065</angle1>
+                <angle2>0.517562699824</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B1.1.T.SAP000.cs</name>
+                    <topology>B1.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>GJ 1111</name>
+                        <description>GJ 1111</description>
+                        <topology>B1.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>GJ 1111</targetName>
+                            <ra>127.455604167</ra>
+                            <dec>26.7760388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..459</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.22451994283</angle1>
+                <angle2>0.467330039253</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.21158218069</angle1>
+                <angle2>0.464659152203</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B1.1.T.SAP001.cs</name>
+                    <topology>B1.1.T.SAP001.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR B0751+32</name>
+                        <description>PSR B0751+32</description>
+                        <topology>B1.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR B0751+32</targetName>
+                            <ra>118.669533333</ra>
+                            <dec>32.5322777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..459</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.07117407847</angle1>
+                <angle2>0.567795360396</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.08860453627</angle1>
+                <angle2>0.572296128204</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B1.1.T.SAP002.cs</name>
+                    <topology>B1.1.T.SAP002.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR J0751+1807</name>
+                        <description>PSR J0751+1807</description>
+                        <topology>B1.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR J0751+1807</targetName>
+                            <ra>117.788154333</ra>
+                            <dec>18.1273897222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..323</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.05579111296</angle1>
+                <angle2>0.316382635445</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B1.1.T.SAP003.cs</name>
+                    <topology>B1.1.T.SAP003.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>HBA_210-250 A</name>
+                <description>HBA 210-250 part A (none)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Tile Beam/1/TO</name>
+                  <description>Tile Beam/1/TO (Target Observation)</description>
+                  <topology>B2.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Tile Beam/1/TO</name>
+                    <projectName>LC2_040</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>210-250 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>1</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>34</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>1</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS>34</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>1</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>1</stokesDownsamplingStepsIS>
+                        <whichIS>I</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-11-16T05:30:00</startTime>
+                      <endTime>2014-11-16T05:42:00</endTime>
+                      <duration>720</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Tile Beam</name>
+                        <description>Tile Beam</description>
+                        <topology>B2.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Tile Beam</targetName>
+                            <ra>123.06256875</ra>
+                            <dec>29.6541583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>52</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.14784701065</angle1>
+                <angle2>0.517562699824</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B2.1.T.SAP000.cs</name>
+                    <topology>B2.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>GJ 1111</name>
+                        <description>GJ 1111</description>
+                        <topology>B2.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>GJ 1111</targetName>
+                            <ra>127.455604167</ra>
+                            <dec>26.7760388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>52..255</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.22451994283</angle1>
+                <angle2>0.467330039253</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.21158218069</angle1>
+                <angle2>0.464659152203</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B2.1.T.SAP001.cs</name>
+                    <topology>B2.1.T.SAP001.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR B0751+32</name>
+                        <description>PSR B0751+32</description>
+                        <topology>B2.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR B0751+32</targetName>
+                            <ra>118.669533333</ra>
+                            <dec>32.5322777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>52..255</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.07117407847</angle1>
+                <angle2>0.567795360396</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.08860453627</angle1>
+                <angle2>0.572296128204</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B2.1.T.SAP002.cs</name>
+                    <topology>B2.1.T.SAP002.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR J0751+1807</name>
+                        <description>PSR J0751+1807</description>
+                        <topology>B2.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR J0751+1807</targetName>
+                            <ra>117.788154333</ra>
+                            <dec>18.1273897222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>52..119</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.05579111296</angle1>
+                <angle2>0.316382635445</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B2.1.T.SAP003.cs</name>
+                    <topology>B2.1.T.SAP003.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>LBA_10-50</name>
+                <description>Test LBA 10-50 (none)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Tile Beam/1/TO</name>
+                  <description>Tile Beam/1/TO (Target Observation)</description>
+                  <topology>B3.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Tile Beam/1/TO</name>
+                    <projectName>LC2_040</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>LBA Outer</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>10-90 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>1</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>34</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>1</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS>34</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>1</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>1</stokesDownsamplingStepsIS>
+                        <whichIS>I</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-11-16T05:45:00</startTime>
+                      <endTime>2014-11-16T05:57:00</endTime>
+                      <duration>720</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Tile Beam</name>
+                        <description>Tile Beam</description>
+                        <topology>B3.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Tile Beam</targetName>
+                            <ra>123.06256875</ra>
+                            <dec>29.6541583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.14784701065</angle1>
+                <angle2>0.517562699824</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B3.1.T.SAP000.cs</name>
+                    <topology>B3.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>GJ 1111</name>
+                        <description>GJ 1111</description>
+                        <topology>B3.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>GJ 1111</targetName>
+                            <ra>127.455604167</ra>
+                            <dec>26.7760388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..257</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.22451994283</angle1>
+                <angle2>0.467330039253</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.21158218069</angle1>
+                <angle2>0.464659152203</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B3.1.T.SAP001.cs</name>
+                    <topology>B3.1.T.SAP001.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR B0751+32</name>
+                        <description>PSR B0751+32</description>
+                        <topology>B3.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR B0751+32</targetName>
+                            <ra>118.669533333</ra>
+                            <dec>32.5322777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..257</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.07117407847</angle1>
+                <angle2>0.567795360396</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.08860453627</angle1>
+                <angle2>0.572296128204</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B3.1.T.SAP002.cs</name>
+                    <topology>B3.1.T.SAP002.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR J0751+1807</name>
+                        <description>PSR J0751+1807</description>
+                        <topology>B3.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR J0751+1807</targetName>
+                            <ra>117.788154333</ra>
+                            <dec>18.1273897222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154..221</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.05579111296</angle1>
+                <angle2>0.316382635445</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B3.1.T.SAP003.cs</name>
+                    <topology>B3.1.T.SAP003.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+</children>
+        </lofar:folder>
+        </item>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>LBA_50-90</name>
+                <description>Test LBA 50-90 (none)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Tile Beam/1/TO</name>
+                  <description>Tile Beam/1/TO (Target Observation)</description>
+                  <topology>B4.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Tile Beam/1/TO</name>
+                    <projectName>LC2_040</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>LBA Outer</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>30-90 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>1</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>34</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>1</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS>34</subbandsPerFileIS>
+                        <numberCollapsedChannelsIS>1</numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS>1</stokesDownsamplingStepsIS>
+                        <whichIS>I</whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-11-16T06:00:00</startTime>
+                      <endTime>2014-11-16T06:12:00</endTime>
+                      <duration>720</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Tile Beam</name>
+                        <description>Tile Beam</description>
+                        <topology>B4.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Tile Beam</targetName>
+                            <ra>123.06256875</ra>
+                            <dec>29.6541583333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.14784701065</angle1>
+                <angle2>0.517562699824</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B4.1.T.SAP000.cs</name>
+                    <topology>B4.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>GJ 1111</name>
+                        <description>GJ 1111</description>
+                        <topology>B4.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>GJ 1111</targetName>
+                            <ra>127.455604167</ra>
+                            <dec>26.7760388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..459</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.22451994283</angle1>
+                <angle2>0.467330039253</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.21158218069</angle1>
+                <angle2>0.464659152203</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B4.1.T.SAP001.cs</name>
+                    <topology>B4.1.T.SAP001.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR B0751+32</name>
+                        <description>PSR B0751+32</description>
+                        <topology>B4.1.T.SAP002</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR B0751+32</targetName>
+                            <ra>118.669533333</ra>
+                            <dec>32.5322777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..459</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.07117407847</angle1>
+                <angle2>0.567795360396</angle2>
+                </tiedArrayBeam>
+                <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.08860453627</angle1>
+                <angle2>0.572296128204</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B4.1.T.SAP002.cs</name>
+                    <topology>B4.1.T.SAP002.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR J0751+1807</name>
+                        <description>PSR J0751+1807</description>
+                        <topology>B4.1.T.SAP003</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR J0751+1807</targetName>
+                            <ra>117.788154333</ra>
+                            <dec>18.1273897222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>256..323</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>2.05579111296</angle1>
+                <angle2>0.316382635445</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B4.1.T.SAP003.cs</name>
+                    <topology>B4.1.T.SAP003.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/hd156279b_reference.xml b/SAS/XML_generator/test/test_regression.in_data/xml/hd156279b_reference.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4155f1e75292b21144cd08d216cd700158de2a48
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/hd156279b_reference.xml
@@ -0,0 +1,270 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_012</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>HD152679</name>
+              <description>LBA outer 8ch/sb 1s Dutch</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>20150616</name>
+                <description>Apastron observation (Imaging)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>HD156279/1/TO</name>
+                  <description>HD156279/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>HD156279/1/TO</name>
+                    <projectName>LC4_012</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>false</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>LBA Outer</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>30-90 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-06-16T20:00:00</startTime>
+                      <endTime>2015-06-17T02:00:00</endTime>
+                      <duration>21600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>HD156279</name>
+                        <description>HD156279</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>HD156279</targetName>
+                            <ra>258.096666667</ra>
+                            <dec>63.3520833333</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154..397</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380</name>
+                        <description>3C380</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C380</targetName>
+                            <ra>277.382166667</ra>
+                            <dec>48.746375</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>154..397</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPT</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C380/1/CPT</name>
+                <description>3C380/1/CPT (Cal Pipe Target)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (no export)</defaultTemplate>
+                  <flaggingStrategy>LBAdefault</flaggingStrategy>
+                  <duration>43200</duration>
+                  <skyModelDatabase>3C380</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>8</averagingFreqStep>
+                    <averagingTimeStep>1</averagingTimeStep>
+                    <demixFreqStep>8</demixFreqStep>
+                    <demixTimeStep>1</demixTimeStep>
+                    <demixAlways>CygA,CasA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPT.inst.dps</name>
+                      <topology>B0.1.CPT.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPT.uv.dps</name>
+                      <topology>B0.1.CPT.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT0</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPT</predecessor_topology>
+                    <name>HD156279/1.0/TP</name>
+                    <description>HD156279/1.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>LBAdefault</flaggingStrategy>
+                      <duration>43200</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>8</averagingFreqStep>
+                        <averagingTimeStep>1</averagingTimeStep>
+                        <demixFreqStep>8</demixFreqStep>
+                        <demixTimeStep>1</demixTimeStep>
+                        <demixAlways>CygA,CasA</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                          <name>B0.1.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPT.inst.dps">
+                          <name>B0.1.CPT.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT0.uv.dps</name>
+                            <topology>B0.1.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/input.xml b/SAS/XML_generator/test/test_regression.in_data/xml/input.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/lc4_019_1.xml b/SAS/XML_generator/test/test_regression.in_data/xml/lc4_019_1.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5a7615b9459a686a1a88a8255d1c1220ef71fd92
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/lc4_019_1.xml
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>LC4_019</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>20150513</name>
+              <description>HBA Coherent Stokes</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>B0031-07</name>
+                <description> (Pulsar)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>PSR_B0031-07/1/TO</name>
+                  <description>PSR_B0031-07/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>PSR_B0031-07/1/TO</name>
+                    <projectName>LC4_019</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>false</correlatedData>
+                      <coherentStokesData>true</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>32</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>20</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>32</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>1</stokesDownsamplingStepsCS>
+                        <whichCS>XXYY</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2015-05-13T06:00:00</startTime>
+                      <endTime>2015-05-13T10:00:00</endTime>
+                      <duration>14400</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>PSR_B0031-07</name>
+                        <description>PSR_B0031-07</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>PSR_B0031-07</targetName>
+                            <ra>8.53691666667</ra>
+                            <dec>-7.36472222222</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>51..450</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>0.148997303802</angle1>
+                <angle2>-0.128538651273</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP000.cs</name>
+                    <topology>B0.1.T.SAP000.cs</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>PSR_B0031-07/1.0/PP</name>
+                <description>PSR_B0031-07/1.0/PP (Pulsar Pipeline)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Pulsar Pipeline</defaultTemplate>
+                  <duration>28800</duration>
+                  <_2bf2fitsExtraOpts></_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma></_8bitConversionSigma>
+                  <decodeNblocks></decodeNblocks>
+                  <decodeSigma></decodeSigma>
+                  <digifilExtraOpts></digifilExtraOpts>
+                  <dspsrExtraOpts>"-U minX1"</dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage></dynamicSpectrumTimeAverage>
+                  <nofold></nofold>
+                  <nopdmp></nopdmp>
+                  <norfi></norfi>
+                  <prepdataExtraOpts></prepdataExtraOpts>
+                  <prepfoldExtraOpts></prepfoldExtraOpts>
+                  <prepsubbandExtraOpts></prepsubbandExtraOpts>
+                  <pulsar>B0031-07</pulsar>
+                  <rawTo8bit></rawTo8bit>
+                  <rfifindExtraOpts></rfifindExtraOpts>
+                  <rrats></rrats>
+                  <singlePulse></singlePulse>
+                  <skipDsps></skipDsps>
+                  <skipDynamicSpectrum></skipDynamicSpectrum>
+                  <skipPrepfold></skipPrepfold>
+                  <tsubint></tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="B0.1.T.SAP000.cs">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>B0.1.PT0.pu.dps</name>
+                      <topology>B0.1.PT0.pu.dps</topology>
+                      <status>no_data</status>
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/pulsar_pipe_test.xml b/SAS/XML_generator/test/test_regression.in_data/xml/pulsar_pipe_test.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/test_LB.xml b/SAS/XML_generator/test/test_regression.in_data/xml/test_LB.xml
new file mode 100644
index 0000000000000000000000000000000000000000..99bf4a105b1f90c8960658ae30d80330a9f3e4a4
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/test_LB.xml
@@ -0,0 +1,759 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>test-lofar</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="false">
+              <name>LB test</name>
+              <description>Long-Baseline Observing setup test</description>
+              <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>LB_Test2014_10_24</name>
+                <description>Long Baseline test 2014_10_24 (LongBaseline)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>LBtest/3C295/1/CO</name>
+                  <description>LBtest/3C295/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>LBtest/3C295/1/CO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS002,RS106,RS205</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime></startTime>
+                      <endTime></endTime>
+                      <duration>60</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>212.833541667</ra>
+                            <dec>52.2027777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>77..80</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>LBtest/3C295/1/CPC</name>
+                <description>LBtest/3C295/1/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>60</duration>
+                  <skyModelDatabase>3C295</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPC.inst.dps</name>
+                      <topology>B0.1.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>LBtest/3C380/1/TO</name>
+                  <description>LBtest/3C380/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>LBtest/3C380/1/TO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS002,RS106,RS205</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime></startTime>
+                      <endTime></endTime>
+                      <duration>300</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380</name>
+                        <description>3C380</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380</targetName>
+                            <ra>277.382416667</ra>
+                            <dec>48.7461388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>77..80</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT0</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPC</predecessor_topology>
+                    <name>LBtest/3C380/1.0/TP</name>
+                    <description>LBtest/3C380/1.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>0</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>16</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways></demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                          <name>B0.1.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPC.inst.dps">
+                          <name>B0.1.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT0.uv.dps</name>
+                            <topology>B0.1.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB0</topology>
+                <predecessor_topology>B0.1.PT0</predecessor_topology>
+                <name>LBtest/3C380/1.0/PP</name>
+                <description>LBtest/3C380/1.0/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>0</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB0.uv.dps</name>
+                      <topology>B0.1.PTLB0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP0</topology>
+                <predecessor_topology>B0.1.PTLB0</predecessor_topology>
+                <name>LBtest/3C380/1.0/LBP</name>
+                <description>LBtest/3C380/1.0/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>0</duration>
+                  <subbandsPerSubbandGroup>2</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>2</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP0.uv.dps</name>
+                      <topology>B0.1.LBP0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>LBtest/3C295/2/CO</name>
+                  <description>LBtest/3C295/2/CO (Calibration Observation)</description>
+                  <topology>B0.2.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>LBtest/3C295/2/CO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS002,RS106,RS205</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime></startTime>
+                      <endTime></endTime>
+                      <duration>60</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B0.2.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>212.833541667</ra>
+                            <dec>52.2027777778</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>77..80</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.C.SAP000.uv.dps</name>
+                    <topology>B0.2.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.2.CPC</topology>
+                <predecessor_topology>B0.2.C</predecessor_topology>
+                <name>LBtest/3C295/2/CPC</name>
+                <description>LBtest/3C295/2/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>60</duration>
+                  <skyModelDatabase>3C295</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.2.CPC.inst.dps</name>
+                      <topology>B0.2.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.CPC.uv.dps</name>
+                      <topology>B0.2.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>LBtest/3C380/2/TO</name>
+                  <description>LBtest/3C380/2/TO (Target Observation)</description>
+                  <topology>B0.2.T</topology>
+                  <predecessor_topology>B0.2.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>LBtest/3C380/2/TO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>true</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>false</incoherentStokesData>
+                      <antenna>HBA Dual Inner</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>64</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS></subbandsPerFileCS>
+                        <numberCollapsedChannelsCS></numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS></stokesDownsamplingStepsCS>
+                        <whichCS></whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS002,RS106,RS205</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime></startTime>
+                      <endTime></endTime>
+                      <duration>300</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C380</name>
+                        <description>3C380</description>
+                        <topology>B0.2.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>3C380</targetName>
+                            <ra>277.382416667</ra>
+                            <dec>48.7461388889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>77..80</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.T.SAP000.uv.dps</name>
+                    <topology>B0.2.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.2.PT0</topology>
+                    <predecessor_topology>B0.2.T,B0.2.CPC</predecessor_topology>
+                    <name>LBtest/3C380/2.0/TP</name>
+                    <description>LBtest/3C380/2.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>0</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>16</averagingFreqStep>
+                        <averagingTimeStep>2</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways></demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.2.T.SAP000.uv.dps">
+                          <name>B0.2.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.2.CPC.inst.dps">
+                          <name>B0.2.CPC.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.2.PT0.uv.dps</name>
+                            <topology>B0.2.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.2.PTLB0</topology>
+                <predecessor_topology>B0.2.PT0</predecessor_topology>
+                <name>LBtest/3C380/2.0/PP</name>
+                <description>LBtest/3C380/2.0/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>0</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>16</averagingFreqStep>
+                    <averagingTimeStep>2</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways></demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PT0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.PTLB0.uv.dps</name>
+                      <topology>B0.2.PTLB0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.2.LBP0</topology>
+                <predecessor_topology>B0.2.PTLB0</predecessor_topology>
+                <name>LBtest/3C380/2.0/LBP</name>
+                <description>LBtest/3C380/2.0/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>0</duration>
+                  <subbandsPerSubbandGroup>2</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>2</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.2.PTLB0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.2.LBP0.uv.dps</name>
+                      <topology>B0.2.LBP0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+</children>
+    </lofar:folder>
+    </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/test_input.xml b/SAS/XML_generator/test/test_regression.in_data/xml/test_input.xml
new file mode 100644
index 0000000000000000000000000000000000000000..da663f615cb82aa21018d9d4b7e34d14c37b2a11
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/test_input.xml
@@ -0,0 +1,325 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.6.0</version>
+          <template version="2.6.0" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.6.0</description>
+          </template>
+          <name>test_lofar</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>alwin1</name>
+                <description>example template (Pulsar)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Crab test/1/TO</name>
+                  <description>Crab test/1/TO (Target Observation)</description>
+                  <topology>B0.1.T.0</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Crab test/1/TO</name>
+                    <projectName>test_lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:00:00</startTime>
+                      <endTime>2014-07-07T12:10:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Crab test</name>
+                        <description>Crab test</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Crab test</targetName>
+                            <ra>83.7164166667</ra>
+                            <dec>22.0145</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..297</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP000.is</name>
+                    <topology>B0.1.T.SAP000.is</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>Crab test/1.0/PP</name>
+                <description>Crab test/1.0/PP (Pulsar Pipeline)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Pulsar Pipeline</defaultTemplate>
+                  <duration>600</duration>
+                  <_2bf2fitsExtraOpts></_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma></_8bitConversionSigma>
+                  <decodeNblocks></decodeNblocks>
+                  <decodeSigma></decodeSigma>
+                  <digifilExtraOpts></digifilExtraOpts>
+                  <dspsrExtraOpts></dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage></dynamicSpectrumTimeAverage>
+                  <nofold></nofold>
+                  <nopdmp></nopdmp>
+                  <norfi></norfi>
+                  <prepdataExtraOpts></prepdataExtraOpts>
+                  <prepfoldExtraOpts></prepfoldExtraOpts>
+                  <prepsubbandExtraOpts></prepsubbandExtraOpts>
+                  <pulsar></pulsar>
+                  <rawTo8bit></rawTo8bit>
+                  <rfifindExtraOpts></rfifindExtraOpts>
+                  <rrats></rrats>
+                  <singlePulse></singlePulse>
+                  <skipDsps></skipDsps>
+                  <skipDynamicSpectrum></skipDynamicSpectrum>
+                  <skipPrepfold></skipPrepfold>
+                  <tsubint></tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="B0.1.T.SAP000.is">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>B0.1.PT0.pu.dps</name>
+                      <topology>B0.1.PT0.pu.dps</topology>
+                      <status>no_data</status>
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>Crab test/2/TO</name>
+                  <description>Crab test/2/TO (Target Observation)</description>
+                  <topology>B0.2.T.0</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Crab test/2/TO</name>
+                    <projectName>test_lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:11:00</startTime>
+                      <endTime>2014-07-07T12:21:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Crab test</name>
+                        <description>Crab test</description>
+                        <topology>B0.2.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Crab test</targetName>
+                            <ra>83.7164166667</ra>
+                            <dec>22.0145</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..297</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.T.SAP000.uv.dps</name>
+                    <topology>B0.2.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.2.T.SAP000.is</name>
+                    <topology>B0.2.T.SAP000.is</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>B0.2.PT0</topology>
+                <predecessor_topology>B0.2.T</predecessor_topology>
+                <name>Crab test/2.0/PP</name>
+                <description>Crab test/2.0/PP (Pulsar Pipeline)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Pulsar Pipeline</defaultTemplate>
+                  <duration>600</duration>
+                  <_2bf2fitsExtraOpts></_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma></_8bitConversionSigma>
+                  <decodeNblocks></decodeNblocks>
+                  <decodeSigma></decodeSigma>
+                  <digifilExtraOpts></digifilExtraOpts>
+                  <dspsrExtraOpts></dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage></dynamicSpectrumTimeAverage>
+                  <nofold></nofold>
+                  <nopdmp></nopdmp>
+                  <norfi></norfi>
+                  <prepdataExtraOpts></prepdataExtraOpts>
+                  <prepfoldExtraOpts></prepfoldExtraOpts>
+                  <prepsubbandExtraOpts></prepsubbandExtraOpts>
+                  <pulsar></pulsar>
+                  <rawTo8bit></rawTo8bit>
+                  <rfifindExtraOpts></rfifindExtraOpts>
+                  <rrats></rrats>
+                  <singlePulse></singlePulse>
+                  <skipDsps></skipDsps>
+                  <skipDynamicSpectrum></skipDynamicSpectrum>
+                  <skipPrepfold></skipPrepfold>
+                  <tsubint></tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="B0.2.T.SAP000.is">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>B0.2.PT0.pu.dps</name>
+                      <topology>B0.2.PT0.pu.dps</topology>
+                      <status>no_data</status>
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/test_input_cep4.xml b/SAS/XML_generator/test/test_regression.in_data/xml/test_input_cep4.xml
new file mode 100644
index 0000000000000000000000000000000000000000..a3a0f4589de04f3e540a0911be7deb4b0f8e5006
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/test_input_cep4.xml
@@ -0,0 +1,369 @@
+<?xml version="1.0" encoding="UTF-8"?>
+  <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+  <version>2.15.0</version>
+  <template version="2.15.0" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+  <description>XML Template generator version 2.15.0</description>
+  </template>
+  <name>test_lofar</name>
+  <children>
+   <item index="0">
+        <lofar:folder topology_parent="true">
+          <topology>0</topology>
+          <name>alwin1</name>
+          <description>example template (Pulsar)</description>
+          <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>Crab test/1/TO</name>
+                  <description>Crab test/1/TO (Target Observation)</description>
+                  <topology>B0.1.T.0</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Crab test/1/TO</name>
+                    <projectName>test_lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:00:00</startTime>
+                      <endTime>2014-07-07T12:10:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Crab test</name>
+                        <description>Crab test</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Crab test</targetName>
+                            <ra>83.7164166667</ra>
+                            <dec>22.0145</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..297</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:uvDataProduct>
+                  </item>
+                                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP000.is</name>
+                    <topology>B0.1.T.SAP000.is</topology>
+                    <status>no_data</status>
+                    <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>B0.1.PT0</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>Crab test/1.0/PP</name>
+                <description>Crab test/1.0/PP (Pulsar Pipeline)</description>
+  <processingCluster>
+                    <name>CEP4</name>
+                    <partition>/data</partition>
+                    <numberOfTasks>244</numberOfTasks>
+                    <minRAMPerTask unit="byte">1000000000</minRAMPerTask>
+                    <minScratchPerTask unit="byte">100000000</minScratchPerTask>    
+                    <maxDurationPerTask>PT600S</maxDurationPerTask>
+                    <numberOfCoresPerTask>20</numberOfCoresPerTask>
+                    <runSimultaneous>true</runSimultaneous>
+                  </processingCluster>
+                <pipelineAttributes>
+                  <defaultTemplate>Pulsar Pipeline</defaultTemplate>
+                  <duration>600</duration>
+                  <_2bf2fitsExtraOpts></_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma></_8bitConversionSigma>
+                  <decodeNblocks></decodeNblocks>
+                  <decodeSigma></decodeSigma>
+                  <digifilExtraOpts></digifilExtraOpts>
+                  <dspsrExtraOpts></dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage></dynamicSpectrumTimeAverage>
+                  <nofold></nofold>
+                  <nopdmp></nopdmp>
+                  <norfi></norfi>
+                  <prepdataExtraOpts></prepdataExtraOpts>
+                  <prepfoldExtraOpts></prepfoldExtraOpts>
+                  <prepsubbandExtraOpts></prepsubbandExtraOpts>
+                  <pulsar></pulsar>
+                  <rawTo8bit></rawTo8bit>
+                  <rfifindExtraOpts></rfifindExtraOpts>
+                  <rrats></rrats>
+                  <singlePulse></singlePulse>
+                  <skipDsps></skipDsps>
+                  <skipDynamicSpectrum></skipDynamicSpectrum>
+                  <skipPrepfold></skipPrepfold>
+                  <tsubint></tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="B0.1.T.SAP000.is">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>B0.1.PT0.pu.dps</name>
+                      <topology>B0.1.PT0.pu.dps</topology>
+                      <status>no_data</status>
+                      <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>Crab test/2/TO</name>
+                  <description>Crab test/2/TO (Target Observation)</description>
+                  <topology>B0.2.T.0</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Crab test/2/TO</name>
+                    <projectName>test_lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:11:00</startTime>
+                      <endTime>2014-07-07T12:21:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Crab test</name>
+                        <description>Crab test</description>
+                        <topology>B0.2.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Crab test</targetName>
+                            <ra>83.7164166667</ra>
+                            <dec>22.0145</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..297</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                              
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                                          <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.2.T.SAP000.uv.dps</name>
+                    <topology>B0.2.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:uvDataProduct>
+                  </item>
+                                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.2.T.SAP000.is</name>
+                    <topology>B0.2.T.SAP000.is</topology>
+                    <status>no_data</status>
+                    <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:PulsarPipelineType">
+                <topology>B0.2.PT0</topology>
+                <predecessor_topology>B0.2.T</predecessor_topology>
+                <name>Crab test/2.0/PP</name>
+                <description>Crab test/2.0/PP (Pulsar Pipeline)</description>
+  <processingCluster>
+                    <name>CEP4</name>
+                    <partition>/data</partition>
+                    <numberOfTasks>244</numberOfTasks>
+                    <minRAMPerTask unit="byte">1000000000</minRAMPerTask>
+                    <minScratchPerTask unit="byte">100000000</minScratchPerTask>    
+                    <maxDurationPerTask>PT600S</maxDurationPerTask>
+                    <numberOfCoresPerTask>20</numberOfCoresPerTask>
+                    <runSimultaneous>true</runSimultaneous>
+                  </processingCluster>
+                <pipelineAttributes>
+                  <defaultTemplate>Pulsar Pipeline</defaultTemplate>
+                  <duration>600</duration>
+                  <_2bf2fitsExtraOpts></_2bf2fitsExtraOpts>
+                  <_8bitConversionSigma></_8bitConversionSigma>
+                  <decodeNblocks></decodeNblocks>
+                  <decodeSigma></decodeSigma>
+                  <digifilExtraOpts></digifilExtraOpts>
+                  <dspsrExtraOpts></dspsrExtraOpts>
+                  <dynamicSpectrumTimeAverage></dynamicSpectrumTimeAverage>
+                  <nofold></nofold>
+                  <nopdmp></nopdmp>
+                  <norfi></norfi>
+                  <prepdataExtraOpts></prepdataExtraOpts>
+                  <prepfoldExtraOpts></prepfoldExtraOpts>
+                  <prepsubbandExtraOpts></prepsubbandExtraOpts>
+                  <pulsar></pulsar>
+                  <rawTo8bit></rawTo8bit>
+                  <rfifindExtraOpts></rfifindExtraOpts>
+                  <rrats></rrats>
+                  <singlePulse></singlePulse>
+                  <skipDsps></skipDsps>
+                  <skipDynamicSpectrum></skipDynamicSpectrum>
+                  <skipPrepfold></skipPrepfold>
+                  <tsubint></tsubint>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:bfDataProduct topology="B0.2.T.SAP000.is">
+                    </lofar:bfDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:pulsarDataProduct>
+                      <name>B0.2.PT0.pu.dps</name>
+                      <topology>B0.2.PT0.pu.dps</topology>
+                      <status>no_data</status>
+                      <storageCluster>
+                      <name>CEP4</name>
+                      <partition>/data</partition>
+                    </storageCluster>
+                    </lofar:pulsarDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+  </lofar:folder>
+  </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.in_data/xml/test_input_long_baseline_pipeline.xml b/SAS/XML_generator/test/test_regression.in_data/xml/test_input_long_baseline_pipeline.xml
new file mode 100644
index 0000000000000000000000000000000000000000..07e3c39f28dd17ae242496b03ff54829695a444c
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.in_data/xml/test_input_long_baseline_pipeline.xml
@@ -0,0 +1,508 @@
+<?xml version="1.0" encoding="UTF-8"?>
+          <lofar:project xmlns:lofar="http://www.astron.nl/MoM2-Lofar" xmlns:mom2="http://www.astron.nl/MoM2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.astron.nl/MoM2-Lofar http://lofar.astron.nl:8080/mom3/schemas/LofarMoM2.xsd http://www.astron.nl/MoM2 http://lofar.astron.nl:8080/mom3/schemas/MoM2.xsd ">
+          <version>2.10.3</version>
+          <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+          <description>XML Template generator version 2.10.3</description>
+          </template>
+          <name>test-lofar</name>
+          <children>
+   <item index="0">
+              <lofar:folder topology_parent="true">
+                <topology>0</topology>
+                <name>Testing xmlgen-2.6.0</name>
+                <description>Testing XML-Generator 2.6.0 - LongBaseline (LongBaseline)</description>
+                <children>
+          <item index="0">
+                <lofar:observation>
+                  <name>3C295/1/CO</name>
+                  <description>3C295/1/CO (Calibration Observation)</description>
+                  <topology>B0.1.C</topology>
+                  <predecessor_topology></predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>3C295/1/CO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:00:00</startTime>
+                      <endTime>2014-07-07T12:02:00</endTime>
+                      <duration>120</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B0.1.C.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>299.868125</ra>
+                            <dec>40.7338888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..330,341,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>1.4611271088</angle1>
+                <angle2>0.38422550818</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.C.SAP000.uv.dps</name>
+                    <topology>B0.1.C.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.C.SAP000.is</name>
+                    <topology>B0.1.C.SAP000.is</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPC</topology>
+                <predecessor_topology>B0.1.C</predecessor_topology>
+                <name>3C295/1/CPC</name>
+                <description>3C295/1/CPC (Cal Pipe Calibrator)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>60</duration>
+                  <skyModelDatabase>3C295</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>10</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>CasA,CygA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.C.SAP000.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPC.inst.dps</name>
+                      <topology>B0.1.CPC.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPC.uv.dps</name>
+                      <topology>B0.1.CPC.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+          <item index="0">
+                <lofar:observation>
+                  <name>Crab test/1/TO</name>
+                  <description>Crab test/1/TO (Target Observation)</description>
+                  <topology>B0.1.T</topology>
+                  <predecessor_topology>B0.1.C</predecessor_topology>
+                  <currentStatus>
+                    <mom2:openedStatus/>
+                  </currentStatus>
+                  <lofar:observationAttributes>
+                    <observationId>
+                    </observationId>
+                    <name>Crab test/1/TO</name>
+                    <projectName>test-lofar</projectName>
+                    <instrument>Beam Observation</instrument>
+                    <defaultTemplate>BeamObservation</defaultTemplate>
+                    <tbbPiggybackAllowed>true</tbbPiggybackAllowed>
+                    <aartfaacPiggybackAllowed>false</aartfaacPiggybackAllowed>
+                    <userSpecification>
+                      <correlatedData>true</correlatedData>
+                      <coherentStokesData>false</coherentStokesData>
+                      <incoherentStokesData>true</incoherentStokesData>
+                      <antenna>HBA Dual</antenna>
+                      <clock mode="200 MHz"/>
+                      <instrumentFilter>110-190 MHz</instrumentFilter>
+                      <integrationInterval>1.0</integrationInterval>
+                      <channelsPerSubband>16</channelsPerSubband>
+                      <coherentDedisperseChannels>false</coherentDedisperseChannels>
+                      <tiedArrayBeams>
+                        <flyseye>false</flyseye>
+                      </tiedArrayBeams>
+                      <stokes>
+                        <integrateChannels>false</integrateChannels>
+                        <subbandsPerFileCS>512</subbandsPerFileCS>
+                        <numberCollapsedChannelsCS>16</numberCollapsedChannelsCS>
+                        <stokesDownsamplingStepsCS>128</stokesDownsamplingStepsCS>
+                        <whichCS>IQUV</whichCS>
+                        <subbandsPerFileIS></subbandsPerFileIS>
+                        <numberCollapsedChannelsIS></numberCollapsedChannelsIS>
+                        <stokesDownsamplingStepsIS></stokesDownsamplingStepsIS>
+                        <whichIS></whichIS>
+                      </stokes>
+                      <stationSet>Custom</stationSet>
+                      <stations>CS001,CS002,CS003,CS004,CS005,CS006,CS007,CS011,CS013,CS017,CS021,CS024,CS026,CS028,CS030,CS031,CS032,CS101,CS103,CS201,CS301,CS302,CS401,CS501,RS106,RS205,RS208,RS210,RS305,RS306,RS307,RS310,RS406,RS407,RS409,RS503,RS508,RS509</stations>
+                      <timeFrame>UT</timeFrame>
+                      <startTime>2014-07-07T12:03:00</startTime>
+                      <endTime>2014-07-07T12:13:00</endTime>
+                      <duration>600</duration>
+                      <bypassPff>false</bypassPff>
+                      <enableSuperterp>false</enableSuperterp>
+                      <numberOfBitsPerSample>8</numberOfBitsPerSample>
+                    </userSpecification>
+                  </lofar:observationAttributes>
+                  <children>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>Crab test</name>
+                        <description>Crab test</description>
+                        <topology>B0.1.T.SAP000</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Target</measurementType>
+                          <specification>
+                            <targetName>Crab test</targetName>
+                            <ra>83.7164166667</ra>
+                            <dec>22.0145</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>54..293</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings>0</nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP000.uv.dps</name>
+                    <topology>B0.1.T.SAP000.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP000.is</name>
+                    <topology>B0.1.T.SAP000.is</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+<item index="0">
+                      <lofar:measurement xsi:type="lofar:BFMeasurementType">
+                        <name>3C295</name>
+                        <description>3C295</description>
+                        <topology>B0.1.T.SAP001</topology>
+                        <currentStatus>
+                          <mom2:openedStatus/>
+                        </currentStatus>
+                        <lofar:bfMeasurementAttributes>
+                          <measurementType>Calibration</measurementType>
+                          <specification>
+                            <targetName>3C295</targetName>
+                            <ra>299.868125</ra>
+                            <dec>40.7338888889</dec>
+                            <equinox>J2000</equinox>
+                            <duration>0</duration>
+                            <subbandsSpecification>
+                              <subbands>104..330,341,349,364,372,380,388,396,404,413,421,430,438,447</subbands>
+                            </subbandsSpecification>
+                          <tiedArrayBeams>
+                            <flyseye>false</flyseye>
+                          <nrTabRings></nrTabRings>
+                          <tabRingSize></tabRingSize>
+                            <tiedArrayBeamList>
+                            <tiedArrayBeam>
+                <coherent>true</coherent>
+                <angle1>1.4611271088</angle1>
+                <angle2>0.38422550818</angle2>
+                </tiedArrayBeam>
+                            </tiedArrayBeamList>
+                          </tiedArrayBeams>
+                          </specification>
+                        </lofar:bfMeasurementAttributes>
+                        <resultDataProducts>
+                        <item>
+                    <lofar:uvDataProduct>
+                    <name>B0.1.T.SAP001.uv.dps</name>
+                    <topology>B0.1.T.SAP001.uv.dps</topology>
+                    <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                  <item>
+                    <lofar:bfDataProduct>
+                    <name>B0.1.T.SAP001.is</name>
+                    <topology>B0.1.T.SAP001.is</topology>
+                    <status>no_data</status>
+                    </lofar:bfDataProduct>
+                  </item>
+                        </resultDataProducts>   
+                      </lofar:measurement>
+                    </item>
+</children>
+                </lofar:observation>
+                </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                <topology>B0.1.CPT</topology>
+                <predecessor_topology>B0.1.T</predecessor_topology>
+                <name>3C295/1/CPT</name>
+                <description>3C295/1/CPT (Cal Pipe Target)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Calibrator Pipeline (no export)</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>60</duration>
+                  <skyModelDatabase>3C295</skyModelDatabase>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>10</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>CasA,CygA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                  <bbsParameters>
+                    <baselines></baselines>
+                    <correlations></correlations>
+                    <beamModelEnable>true</beamModelEnable>
+                    <solveParms></solveParms>
+                    <solveUVRange></solveUVRange>
+                    <strategyBaselines></strategyBaselines>
+                    <strategyTimeRange></strategyTimeRange>
+                  </bbsParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.T.SAP001.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:instrumentModelDataProduct>
+                      <name>B0.1.CPT.inst.dps</name>
+                      <topology>B0.1.CPT.inst.dps</topology>
+                      <status>no_data</status>
+                    </lofar:instrumentModelDataProduct>
+                  </item>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.CPT.uv.dps</name>
+                      <topology>B0.1.CPT.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+<item index="0">
+                  <lofar:pipeline xsi:type="lofar:CalibrationPipelineType">
+                    <topology>B0.1.PT0</topology>
+                    <predecessor_topology>B0.1.T,B0.1.CPT</predecessor_topology>
+                    <name>Crab test/1.0/TP</name>
+                    <description>Crab test/1.0/TP (Target Pipeline)</description>
+                    <pipelineAttributes>
+                      <defaultTemplate>Calibration Pipeline Target</defaultTemplate>
+                      <flaggingStrategy>HBAdefault</flaggingStrategy>
+                      <duration>600</duration>
+                      <demixingParameters>
+                        <averagingFreqStep>64</averagingFreqStep>
+                        <averagingTimeStep>10</averagingTimeStep>
+                        <demixFreqStep>64</demixFreqStep>
+                        <demixTimeStep>10</demixTimeStep>
+                        <demixAlways>CasA,CygA</demixAlways>
+                        <demixIfNeeded></demixIfNeeded>
+                        <ignoreTarget></ignoreTarget>
+                      </demixingParameters>
+                      <bbsParameters>
+                        <baselines></baselines>
+                        <correlations></correlations>
+                        <beamModelEnable>true</beamModelEnable>
+                        <solveParms></solveParms>
+                        <solveUVRange></solveUVRange>
+                        <strategyBaselines></strategyBaselines>
+                        <strategyTimeRange></strategyTimeRange>
+                      </bbsParameters>
+                    </pipelineAttributes>
+                    <usedDataProducts>
+                      <item>
+                        <lofar:uvDataProduct topology="B0.1.T.SAP000.uv.dps">
+                          <name>B0.1.T.SAP000.uv.dps</name>
+                        </lofar:uvDataProduct>
+                      </item>
+                      <item>
+                        <lofar:instrumentModelDataProduct topology="B0.1.CPT.inst.dps">
+                          <name>B0.1.CPT.inst.dps</name>
+                        </lofar:instrumentModelDataProduct>
+                      </item>
+                    </usedDataProducts>
+                    <resultDataProducts>
+                        <item>
+                          <lofar:uvDataProduct>
+                            <name>B0.1.PT0.uv.dps</name>
+                            <topology>B0.1.PT0.uv.dps</topology>
+                            <status>no_data</status>
+                          </lofar:uvDataProduct>
+                        </item> 
+                    </resultDataProducts>               
+                    </lofar:pipeline>
+                  </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:AveragingPipelineType">
+                <topology>B0.1.PTLB0</topology>
+                <predecessor_topology>B0.1.PT0</predecessor_topology>
+                <name>Crab test/1.0/PP</name>
+                <description>Crab test/1.0/PP (Phaseshift + adding CS stations)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Preprocessing LB</defaultTemplate>
+                  <flaggingStrategy>HBAdefault</flaggingStrategy>
+                  <duration>600</duration>
+                  <demixingParameters>
+                    <averagingFreqStep>64</averagingFreqStep>
+                    <averagingTimeStep>10</averagingTimeStep>
+                    <demixFreqStep>64</demixFreqStep>
+                    <demixTimeStep>10</demixTimeStep>
+                    <demixAlways>CasA,CygA</demixAlways>
+                    <demixIfNeeded></demixIfNeeded>
+                    <ignoreTarget></ignoreTarget>
+                  </demixingParameters>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PT0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.PTLB0.uv.dps</name>
+                      <topology>B0.1.PTLB0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+        <item index="0">
+              <lofar:pipeline xsi:type="lofar:LongBaselinePipelineType">
+                <topology>B0.1.LBP0</topology>
+                <predecessor_topology>B0.1.PTLB0</predecessor_topology>
+                <name>Crab test/1.0/LBP</name>
+                <description>Crab test/1.0/LBP (Long-Baseline Concat)</description>
+                <pipelineAttributes>
+                  <defaultTemplate>Long-Baseline Pipeline</defaultTemplate>
+                  <duration>600</duration>
+                  <subbandsPerSubbandGroup>8</subbandsPerSubbandGroup>
+                  <subbandGroupsPerMS>8</subbandGroupsPerMS>
+                </pipelineAttributes>
+                <usedDataProducts>
+                  <item>
+                    <lofar:uvDataProduct topology="B0.1.PTLB0.uv.dps">
+                    </lofar:uvDataProduct>
+                  </item>
+                </usedDataProducts>
+                <resultDataProducts>
+                  <item>
+                    <lofar:uvDataProduct>
+                      <name>B0.1.LBP0.uv.dps</name>
+                      <topology>B0.1.LBP0.uv.dps</topology>
+                      <status>no_data</status>
+                    </lofar:uvDataProduct>
+                  </item>
+                </resultDataProducts>
+              </lofar:pipeline>
+            </item>
+</children>
+        </lofar:folder>
+        </item>
+          </children>
+  </lofar:project>
diff --git a/SAS/XML_generator/test/test_regression.py b/SAS/XML_generator/test/test_regression.py
new file mode 100755
index 0000000000000000000000000000000000000000..427789a190b8346dc5e383e31119286074773e40
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.py
@@ -0,0 +1,72 @@
+#! /usr/bin/env python
+import sys, os, subprocess, difflib
+
+# diff should only be something like:
+# 3,5c3,5
+# <           <version>2.10.3</version>
+# <           <template version="2.10.3" author="Alwin de Jong" changedBy="Alwin de Jong">
+# <           <description>XML Template generator version 2.10.3</description>
+# ---
+# >   <version>2.12.0</version>
+# >   <template version="2.12.0" author="Alwin de Jong,Adriaan Renting" changedBy="Adriaan Renting">
+# >   <description>XML Template generator version 2.12.0</description>
+def checkDiff(diff):
+  if len(diff) == 8 or len(diff) == 0:
+    return True
+  return False
+
+def main():
+  os.chdir('test_regression.in_data')
+  infiles = os.listdir("txt")
+  results = []
+  for infile in infiles:
+    if infile.startswith("old") or infile.startswith("."):
+      continue # pre 2.6 files that no longer have valid syntax
+    name, ext = os.path.splitext(infile)
+    outfile = name + ".xml"
+    print "\n"
+    print "*** Processing %s ***" % infile
+    cmd  = ["xmlgen", "-i", "./txt/%s" % infile, "-o", "test.xml"]
+    p    = subprocess.Popen(cmd, stdin=open('/dev/null'), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    logs = p.communicate()[0].splitlines()  #stdout
+    print "xmlgen ran with return code: %s" % p.returncode
+    xmlgen = p.returncode
+    if p.returncode:
+      for l in logs: print l
+      results.append((infile, xmlgen, -1, False))
+      continue
+    else:
+      #import fileinput
+      #for line in fileinput.FileInput("test.xml",inplace=1):
+      #  if line.rstrip():
+      #    print line,
+      #cmd   = ["sed", "-i", "'/^$/d'", "test.xml"]
+      #p     = subprocess.Popen(cmd, stdin=open('/dev/null'), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+      cmd   = ["diff", "-w", "-I", r"^[[:space:]]*$", "./xml/%s.xml" % name, "test.xml"]
+      #cmd   = ["diff -w -I '^[[:space:]]*$' ./xml/%s.xml test.xml" % name]
+      ## -w ignores differences in whitespace
+      ## -I '^[[:space:]]*$' because -B doesn't work for blank lines (on OSX?)
+      p     = subprocess.Popen(cmd, stdin=open('/dev/null'), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+      logs  = p.communicate()
+      diffs = logs[0].splitlines() #stdout
+      print "diff reply was %i lines long" % len(diffs)
+      check = checkDiff(diffs) and len(logs[1]) == 0
+      if not check:
+        for l in diffs: print l
+        print logs[1]
+      results.append((infile, xmlgen, p.returncode, check))
+    os.remove("test.xml")
+  print "\nResults:"
+  success = True
+  for r in results:
+    print "%s: xmlgen: %i diff: %i, %s" % r
+    success = success and r[3]
+  if success:
+    print "success"
+    return 0
+  else:
+    print "failure"
+    return 1
+
+if __name__ == "__main__":
+  sys.exit(main())
diff --git a/SAS/XML_generator/test/test_regression.sh b/SAS/XML_generator/test/test_regression.sh
new file mode 100755
index 0000000000000000000000000000000000000000..1979a03c3ca9ba7ad20ddd06a27f9481f5da4302
--- /dev/null
+++ b/SAS/XML_generator/test/test_regression.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+./runctest.sh test_regression