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:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2008 11:57 AM
To: Christopher Morgan
Cc: [EMAIL PROTECTED]; 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 <[EMAIL PROTECTED]> 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

Reply via email to