# check all substitutions to see if we found anything
# appropriate
for my $key (keys %$obj) {
- if (($key =~ /^\Q$tag\E\.(.*)$/) ||
- (defined($id) && $key =~ /^#\Q$id\E\.(.*)$/)) {
+ if (($key =~ /^\Q$tag\E\/(.*)$/) ||
+ (defined($id) && $key =~ /^#\Q$id\E\/(.*)$/)) {
$child->setAttribute($1, $obj->{$key});
}