-#use XML::Simple qw(:strict);
-#my %attr = (KeyAttr => [], KeepRoot => 1);
-#my $config = XMLin("foo.xml", %attr, ForceArray => 1, ForceContent => 1);
-#print XMLout($config, %attr);
+sub _empty_zeerex_record {
+ my($target) = @_;
+
+ ### Doesn't recognise SRU/SRW URLs
+ my($host, $port, $db) = ZOOM::IRSpy::_parse_target_string($target);
+
+ return <<__EOT__;
+<explain xmlns="http://explain.z3950.org/dtd/2.0/">
+ <serverInfo protocol="Z39.50" version="1995">
+ <host>$host</host>
+ <port>$port</port>
+ <database>$db</database>
+ </serverInfo>
+</explain>
+__EOT__
+}