From: Andreas Neiser Date: Tue, 20 May 2014 11:48:03 +0000 (+0200) Subject: Make the cache Spi aware (save name of document node) X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=bf7bb3c43a23e9d1e4cc88c02970bf395d63422d;p=daqtools.git Make the cache Spi aware (save name of document node) --- diff --git a/xml-db/xml-db.pl b/xml-db/xml-db.pl index b780706..c64c9f5 100755 --- a/xml-db/xml-db.pl +++ b/xml-db/xml-db.pl @@ -110,6 +110,10 @@ sub WorkOnDoc { my $doc = shift; my $db = {}; + # add the name of the entity as some special key (starting with §) + # this is later on needed by get.pl to determine how to obtain data + $db->{'§EntityType'} = $doc->getDocumentElement->nodeName; + # we populate first the db. then we can check when adding the # children that they exist, and we can also handle the special case # when a node has the same name as the single field it contains