develooper Front page | perl.perl4lib | Postings from June 2008

RE: Can't parse MARC Authority XML files with mx: prefixes in theirtags

Thread Previous | Thread Next
From:
Christopher Morgan
Date:
June 10, 2008 10:51
Subject:
RE: Can't parse MARC Authority XML files with mx: prefixes in theirtags
Mike,

Many thanks. My apologies, but I've never applied a Perl patch before, so
I'm not sure of the correct procedure. I did locate the SAX.pm file.

- Chris  

-----Original Message-----
From: Mike Rylander [mailto:mrylander@gmail.com] 
Sent: Tuesday, June 10, 2008 11:57 AM
To: Christopher Morgan
Cc: jtgorman@uiuc.edu; perl4lib@perl.org
Subject: Re: Can't parse MARC Authority XML files with mx: prefixes in their
tags

On Mon, Jun 9, 2008 at 5:39 PM, Christopher Morgan <morgan@acm.org> wrote:
> Jonathan,
>
> Many thanks. I get no errors on the command line or in the error log 
> when I run the script. The file just executes with no output. If you 
> have the time to run it, I've included the scriupt below, and have 
> attached the name authority record it tries to process:

The problem is that the SAX parser is looking for the element Name instead
of LocalName.  I've attached a patch that tests both LocalName and
NamespaceURI.  If you could apply this to your version of MARC/File/SAX.pm
and give it a test, and it works for you, I'll commit it to the CVS repo.

--miker


Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About