Skip to content

Instantly share code, notes, and snippets.

@anarchivist
anarchivist / marc2xml-at.py
Created December 31, 2009 04:36
create individual MARCXML files for archivists toolkit from a MARC21 file
"""creates individual MARCXML files for archivists toolkit from a MARC21 file"""
import pymarc
import os
import sys
header = u"""<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="MARC21slim2HTML.xsl" ?>
<collection xmlns="http://www.loc.gov/MARC21/slim"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"