From bc0d5b41ce9ca3528c589563d12142b7d1de200f Mon Sep 17 00:00:00 2001 From: "www@jspc55" Date: Mon, 30 Jun 2014 13:39:14 +0200 Subject: [PATCH] parsing of setup xml files: renamed node to to reduce ambiguity --- tools/run.pl | 2 +- tools/testgui.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/run.pl b/tools/run.pl index 42d1e2f..a1f6b4c 100755 --- a/tools/run.pl +++ b/tools/run.pl @@ -30,7 +30,7 @@ if( $q->param('runtime') ) { #print "Loading detector setup from $setupFile\n"; my $parser = XML::LibXML->new(line_numbers => 1); my $db = $parser->parse_file($setupFile); -my $systemName = $db->findvalue("/DetectorSetup/readoutsystem/\@name"); +my $systemName = $db->findvalue("/DetectorSetup/system/\@name"); #print "Loading system description from $systemName\n"; my $systemFile = SYSTEMDIR."/".$systemName.".xml"; $db = $parser->parse_file($systemFile); diff --git a/tools/testgui.pl b/tools/testgui.pl index cc82c78..89f2ae0 100755 --- a/tools/testgui.pl +++ b/tools/testgui.pl @@ -237,7 +237,7 @@ sub print_setupStructure { unless(defined($setup)) { die "did not find DetectorSetup node in setup file!\n";} my $setupDesc = $setup->findvalue("./description"); my $setupName = $setup->findvalue("./\@name"); - $systemName = $setup->findvalue("/DetectorSetup/readoutsystem/\@name"); + $systemName = $setup->findvalue("/DetectorSetup/system/\@name"); print h2("Setup: $setupName"); print "

description: $setupDesc

"; -- 2.43.0