remove even more namespace prefixes ... take THAT, IE!
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jul 2010 20:27:45 +0000 (20:27 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jul 2010 20:27:45 +0000 (20:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16924 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm

index 0690a90..cd11a75 100644 (file)
@@ -439,8 +439,8 @@ sub new {
        my $class = shift;
        my $xml = shift;
        my $self = $class->SUPER::build($xml);
-       $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef);
        $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', 'mods');
+       $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef, 1);
        $self->{type} = 'application/xml';
        $self->{holdings_xpath} = '/mods:mods';
        return $self;
@@ -491,8 +491,8 @@ sub new {
        my $class = shift;
        my $xml = shift;
        my $self = $class->SUPER::build($xml);
-       $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef);
        $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', 'mods');
+       $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef, 1);
        $self->{type} = 'application/xml';
        $self->{holdings_xpath} = '/mods:mods';
        return $self;