# Install xerces-c with Homebrew, apk, apt, dnf, pacman, zypper

Validating XML parser. Version 3.3.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:xerces-c
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install xerces-c
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add xerces-c
```

  Evidence: Alpine Linux edge package indexes: xerces-c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libxerces-c-dev
```

  Evidence: Debian stable package indexes: libxerces-c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mingw32-xerces-c
```

  Evidence: Fedora Rawhide package metadata: mingw32-xerces-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S xerces-c
```

  Evidence: Arch Linux sync databases: xerces-c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libxerces-c-3_3
```

  Evidence: openSUSE Tumbleweed package metadata: libxerces-c-3_3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:xerces-c
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/xerces-c>
- **Version:** 3.3.0
- **Source summary:** Validating XML parser
- **Homepage:** <https://xerces.apache.org/xerces-c/>
- **Repository:** <https://github.com/apache/xerces-c>
- **Upstream docs:** <https://xerces.apache.org/xerces-c>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=xerces/c/3/sources/xerces-c-3.3.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- CreateDOMDocument (cli)
- DOMCount (cli)
- DOMPrint (cli)
- EnumVal (cli)
- PParse (cli)
- PSVIWriter (cli)
- Redirect (cli)
- SAX2Count (cli)
- SAX2Print (cli)
- SAXCount (cli)
- SAXPrint (cli)
- SCMPrint (cli)
- SEnumVal (cli)
- StdInParse (cli)
- XInclude (cli)
- CreateDOMDocument (alias)
- DOMCount (alias)
- DOMPrint (alias)
- EnumVal (alias)
- PParse (alias)
- PSVIWriter (alias)
- Redirect (alias)
- SAX2Count (alias)
- SAX2Print (alias)
- SAXCount (alias)
- SAXPrint (alias)
- SCMPrint (alias)
- SEnumVal (alias)
- StdInParse (alias)
- XInclude (alias)

## Build dependencies

- cmake

## Uses from macOS

- curl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.3.0
- Local data: ok
- Upstream repository: https://xerces.apache.org/xerces-c/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Xerces-C++ is Apache Xerces' portable C++ validating XML parser library. It packages DOM, SAX, SAX2, XML Schema, namespace, XInclude, catalog, encoding, and validation machinery for C and C++ applications that need standards-oriented XML processing.

### Project history

Apache's Xerces charter records that the code base forming both Xerces-Java and Xerces-C++ was donated to Apache by IBM in 1999. Xerces-C++ then matured as a subproject of the Apache XML Project before Apache Xerces became a top-level Apache Software Foundation project in late 2004.

The C++ distribution reflects the XML infrastructure era of the late 1990s and early 2000s: a shared parsing library, extensive sample programs, API documentation, and command-line utilities for counting, printing, validating, DOM traversal, schema component model inspection, and XInclude processing.

Modern Xerces-C++ remains important but more conservative. The project page identifies version 3.3.0, notes that older 2.8.0 and earlier releases are unsupported, and warns that the C++ project currently lacks active maintainers, which is important context for security-sensitive packagers.

### Adoption history

Xerces-C++ was adopted wherever C++ applications needed a full XML parser with validation rather than a lightweight tokenizer: enterprise middleware, document-processing systems, XML-aware servers, schema-validating tools, and platform ports. Apache describes use cases including XML-savvy web servers, vertical applications using XML as a data format, on-the-fly validation for XML editors, e-business data integrity, and internationalized XML applications.

Its package-manager footprint is that of a development library rather than a single CLI. Distributions ship headers, a shared library, pkg-config metadata, and sample executables because downstream C++ packages link against Xerces-C++ to parse or validate XML in-process.

### How it is used

Developers use Xerces-C++ through DOM, SAX, and SAX2 APIs to parse, generate, manipulate, and validate XML documents. The packaged sample tools are useful for smoke tests, examples, and direct XML inspection: commands such as DOMCount, DOMPrint, SAX2Count, SAX2Print, PParse, StdInParse, and XInclude expose library features from the shell.

For package maintainers, Xerces-C++ often appears as a transitive build and runtime dependency for software with XML configuration, metadata exchange, geospatial formats, document standards, or schema validation requirements.

### Why package nerds care

Xerces-C++ is a classic example of infrastructure hiding in plain sight. A user may never type a Xerces command, but the installed library can be the XML engine behind larger applications, so ABI compatibility, headers, sample binaries, and security maintenance all matter.

It also captures a packaging lesson from mature standards libraries: old XML stacks do not disappear just because the hype moves on. They become quiet dependencies, and their maintainer status and supported release lines become part of responsible curation.

### Timeline

- 1999: IBM donates the code base that becomes the foundation for Xerces-Java and Xerces-C++.
- Late 2004: Apache Xerces becomes a top-level Apache Software Foundation project.
- 2009-2010: The 3.1.0 release archive records active schema, portability, performance, and API maintenance work.
- 2020s: Apache documents Xerces-C++ 3.3.0, unsupported old 2.x releases, and lack of active maintainers.

### Related projects

- Xerces-Java is the Java parser from the same Apache Xerces family.
- Xerces-Perl is the Perl parser subproject that followed after the C++ community matured.
- Apache Xalan is a related XML transformation project often seen near Xerces in older XML stacks.
- libxml2 is a common C-library alternative for XML parsing and validation.

### Sources

- <https://github.com/apache/xerces-c>
- <https://xerces.apache.org/xerces-c/>
- <https://xerces.apache.org/xerces-c/charter.html>
- <https://xerces.apache.org/xerces-c/releases.html>
- <https://xerces.apache.org/xerces-c/releases_archive.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xerces-c
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libxerces-c-dev - 3.2.4+debian-1.3+b2: normalized package name match | Debian stable package indexes: libxerces-c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating XML parser library for C++ (development files) | https://xerces.apache.org/xerces-c/
- Debian apt - libxerces-c-doc - 3.2.4+debian-1.3: normalized package name match | Debian stable package indexes: libxerces-c-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating XML parser library for C++ (documentation) | https://xerces.apache.org/xerces-c/
- Debian apt - libxerces-c-samples - 3.2.4+debian-1.3+b2: normalized package name match | Debian stable package indexes: libxerces-c-samples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating XML parser library for C++ (compiled samples) | https://xerces.apache.org/xerces-c/
- Debian apt - libxerces-c3.2t64 - 3.2.4+debian-1.3+b2: normalized package name match | Debian stable package indexes: libxerces-c3.2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating XML parser library for C++ | https://xerces.apache.org/xerces-c/
- Ubuntu apt - libxerces-c-dev - 3.2.4+debian-1.2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxerces-c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating XML parser library for C++ (development files) | https://xerces.apache.org/xerces-c/
- Ubuntu apt - libxerces-c-doc - 3.2.4+debian-1.2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxerces-c-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating XML parser library for C++ (documentation) | https://xerces.apache.org/xerces-c/
- Ubuntu apt - libxerces-c-samples - 3.2.4+debian-1.2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxerces-c-samples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating XML parser library for C++ (compiled samples) | https://xerces.apache.org/xerces-c/
- Ubuntu apt - libxerces-c3.2t64 - 3.2.4+debian-1.2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxerces-c3.2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating XML parser library for C++ | https://xerces.apache.org/xerces-c/
- apk - xerces-c - 3.2.5-r4: normalized package name match | Alpine Linux edge package indexes: xerces-c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A validating XML parser written in a portable subset of C++ | https://xerces.apache.org/index.html
- apk - xerces-c-dev - 3.2.5-r4: normalized package name match | Alpine Linux edge package indexes: xerces-c-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A validating XML parser written in a portable subset of C++ (development files) | https://xerces.apache.org/index.html
- apk - xerces-c-doc - 3.2.5-r4: normalized package name match | Alpine Linux edge package indexes: xerces-c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A validating XML parser written in a portable subset of C++ (documentation) | https://xerces.apache.org/index.html
- apk - xerces-c-samples - 3.2.5-r4: normalized package name match | Alpine Linux edge package indexes: xerces-c-samples from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A validating XML parser written in a portable subset of C++ (compiled samples) | https://xerces.apache.org/index.html
- dnf - mingw32-xerces-c - 3.3.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: mingw32-xerces-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MingGW x86 Windows validating XML parser | https://xerces.apache.org/xerces-c/
- dnf - mingw64-xerces-c - 3.3.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: mingw64-xerces-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | MingGW x64 Windows validating XML parser | https://xerces.apache.org/xerces-c/
- dnf - xerces-c - 3.3.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: xerces-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Validating XML Parser | https://xerces.apache.org/xerces-c/
- dnf - xerces-c-devel - 3.3.0-9.fc44: normalized package name match | Fedora Rawhide package metadata: xerces-c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Header files, libraries and development documentation for xerces-c | https://xerces.apache.org/xerces-c/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [blahtexml](https://www.automicvault.com/pkg/brew/blahtexml/) - Popular package that depends on this formula.
- [dbxml](https://www.automicvault.com/pkg/brew/dbxml/) - Popular package that depends on this formula.
- [enigma](https://www.automicvault.com/pkg/brew/enigma/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Popular package that depends on this formula.
- [opensaml](https://www.automicvault.com/pkg/brew/opensaml/) - Popular package that depends on this formula.
- [pdal](https://www.automicvault.com/pkg/brew/pdal/) - Popular package that depends on this formula.
- [pktanon](https://www.automicvault.com/pkg/brew/pktanon/) - Popular package that depends on this formula.
- [leveldb](https://www.automicvault.com/pkg/brew/leveldb/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [libgrape-lite](https://www.automicvault.com/pkg/brew/libgrape-lite/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [libmemcached](https://www.automicvault.com/pkg/brew/libmemcached/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [xapian](https://www.automicvault.com/pkg/brew/xapian/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [zxing-cpp](https://www.automicvault.com/pkg/brew/zxing-cpp/) - Shares av.db curated category or tags: c-plus-plus, cli, data, library.
- [bagit](https://www.automicvault.com/pkg/brew/bagit/) - Shares av.db curated category or tags: cli, data, validation.
- [basex](https://www.automicvault.com/pkg/brew/basex/) - Shares av.db curated category or tags: cli, data, xml.

## Combined YAML source

View the package source record on GitHub. [combined/xerces-c.yml](https://github.com/automic-vault/db/blob/main/combined/xerces-c.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
