From 6b2afd9beb8a42f1ab7cb57a09220f1b7cdb1fd8 Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Thu, 11 Jul 2013 15:51:31 +0200 Subject: [PATCH] I'm trying to cleanup jtageditor, xml2ini and ini2xml. All jtag xml file parsing and editing should be modularized --- tools/xml2ini.pl | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tools/xml2ini.pl b/tools/xml2ini.pl index 82be1ce..18dbb85 100755 --- a/tools/xml2ini.pl +++ b/tools/xml2ini.pl @@ -139,22 +139,10 @@ print VERBOSE "specFileName: $specFileName\n specDir: $specDir\n"; -# written beforrrrrreeeeeeee - -# # initialize the xml parser -# my $parser = XML::LibXML->new(); -# read in the JTAG specification file -# print VERBOSE "parsing specifications file...\n"; -# my $specTree = $parser->parse_file($specFile); -# my $configTree = $parser->parse_file($configFile); + my $specMaps = $specTree->findnodes("/MAPS")->shift(); my $configMaps = $configTree->findnodes("/MAPS")->shift(); -# -# # perform compatibility checks -# -# $specFile =~ m/([^\/]+\.xml)$/; -# my $specFileName = $1; -# + my $configSpecDbFileName = $configMaps->findvalue("./\@specDbFile"); unless ($configSpecDbFileName eq $specFileName) { die "given specification file name does not match the specDbFile tag in the config file!\n"; -- 2.43.0