Re: Can't parse MARC Authority XML files with mx: prefixes in their tags

[email protected] ("Mike Rylander")
Newsgroups perl.perl4lib
Message-ID <[email protected]>
On Wed, Jun 18, 2008 at 1:12 PM, Christopher Morgan <[email protected]> wrote:
> Mike,
>
> I tried both of your suggested fixes (changing Name to LocalName, and
> running the updated patch), but no luck. I still get no error messages in
> the error log, but the program silently fails to print a report. If I
> manually remove the "mx:" namespace strings from all the tags, I can process
> the files with no problem. (So one quick fix would be to simply run these
> records through a quick search and replace routine.)
>
> Regarding the problem name authority files. They're all available on the web
> from OCLC's experimental name authority service, at
> http://alcme.oclc.org/eprintsUK/index.html
>
> You enter an author name (I entered "Robert Benchley"). Then I clicked on
> the first link at http://errol.oclc.org/laf/n50-7168.html
>
> Finally, I clicked on the second link ("XML Record") to get this link:
> http://errol.oclc.org/laf/n50-7168.MarcXML All of these have the "mx:"
> namespace notation in their tags.

Thanks.  I will see if I can fix this on my installation, but since
the LocalName (only) change did not work for you I have suspicions
about the particular XML parser that's being chosen for the SAX part
on your system.  The pure-perl parser (in some versions) did not
support namespaces well, and expat can be quirky as well.

I'll let you know what I find, and thanks for testing.

-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone: 1-877-OPEN-ILS (673-6457)
 | email: [email protected]
 | web: http://www.esilibrary.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.