Re: marcxml to mrc

From: Galen Charlton <gmc_at_nyob>
Date: Thu, 27 Aug 2015 09:52:33 -0400
To: CODE4LIB_at_LISTSERV.ND.EDU
Hi,

On Thu, Aug 27, 2015 at 9:41 AM, Sergio Letuche <code4libuserx_at_gmail.com> wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <collection  xmlns="http://www.loc.gov/MARC21/slim">
> <record>

OK, that's what I'd expect from a MARC21slim MARCXML file.  Since you
say the file is valid, try comparing it against the schema.  This
could be done like this:

curl http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd > MARC21slim.xsd
xmllint --noout --schema MARC21slim.xsd INPUTFILE

Regards,

Galen
-- 
Galen Charlton
Infrastructure and Added Services Manager
Equinox Software, Inc. / The Open Source Experts
email:  gmc_at_esilibrary.com
direct: +1 770-709-5581
cell:   +1 404-984-4366
skype:  gmcharlt
web:    http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org &
http://evergreen-ils.org
Received on Thu Aug 27 2015 - 09:52:44 EDT