From bf7bb3c43a23e9d1e4cc88c02970bf395d63422d Mon Sep 17 00:00:00 2001 From: Andreas Neiser Date: Tue, 20 May 2014 13:48:03 +0200 Subject: [PATCH] Make the cache Spi aware (save name of document node) --- xml-db/xml-db.pl | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.43.0