---
name: "xml2marc"
section: "1p"
platform: "linux"
package: "libmarc-xml-perl"
version: "1.0.5-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/xml2marc"
---

# xml2marc(1p)

convert LC SlimSchema XML to MARC21

## NAME

xml2marc - convert LC SlimSchema XML to MARC21

## SYNOPSIS

```
    # convert a file
    % xml2marc marc.xml > marc.dat.
    # or use in a pipeline
    % cat marc.xml | xml2marc > marc.dat
```

## DESCRIPTION

xml2marc is a command line utility for converting XML that uses the Library of Congress Slim Schema to MARC21 bibliographic data. Conversion is handled using the MARC::Record and MARC::File::XML packages.
