From ad329a0a6b0b77ea8b8ea21993b8a643296981da Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 29 Jan 2008 21:30:43 +0000 Subject: [PATCH] use default namespaces ... easier to work with anyway, and newer libxmls avoid stripping them git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8531 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm index 76f8a6a09f..12f7e7643f 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat/Feed.pm @@ -290,7 +290,7 @@ sub new { my $class = shift; my $xml = shift; my $self = $class->SUPER::build($xml); - $self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', 'atom'); + $self->{doc}->documentElement->setNamespace('http://www.w3.org/2005/Atom', undef); $self->{item_xpath} = '/atom:entry'; $self->{holdings_xpath} = '/atom:entry'; $self->{type} = 'application/xml'; @@ -389,7 +389,7 @@ sub new { my $class = shift; my $xml = shift; my $self = $class->SUPER::build($xml); - $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', 'mods'); + $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/', undef); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/mods:mods'; return $self; @@ -441,7 +441,7 @@ sub new { my $class = shift; my $xml = shift; my $self = $class->SUPER::build($xml); - $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', 'mods'); + $self->{doc}->documentElement->setNamespace('http://www.loc.gov/mods/v3', undef); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/mods:mods'; return $self; @@ -509,7 +509,7 @@ sub new { my $xml = shift; my $self = $class->SUPER::build($xml); return undef unless $self; - $self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', 'marc'); + $self->{doc}->documentElement->setNamespace('http://www.loc.gov/MARC21/slim', undef); $self->{type} = 'application/xml'; $self->{holdings_xpath} = '/marc:record'; return $self; -- 2.11.0