RE: Can't parse MARC Authority XML files with mx: prefixes in their tags
[email protected] ("Christopher Morgan")
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <004301c8cb1a$27d6dcc0$2e01a8c0@DellMain> |
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]; [email protected] 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