In computing, Xerces is Apache's collection of software libraries for parsing, validating, serializing and manipulating XML. The library implements a number of standard APIs for XML parsing, including DOM, SAX and SAX2. The implementation is available in the Java, C++ and Perl programming languages.

The name "Xerces" is believed to commemorate the extinct Xerces blue butterfly (Glaucopsyche xerces).

Xerces language versions

There are several language versions of the Xerces parser:

  • Xerces2 Java, the Java reference implementation
  • Xerces C++, a C++ implementation
  • Xerces Perl, a Perl implementation. This implementation is a wrapper around the C++ API.

{| class="wikitable"

|-

!width=60| Language

!width=110| Release Date

!width=60| Version

|-

|Java||2022-01-24||2.12.2

|-

|C++||2020-04-10||3.2.3

|-

|Perl||2014-04-30||2.7.0

|-

|}

Features

The features supported by Xerces depend on the language, the Java version having the most features.

{| class="wikitable" style="width:90%;"

|-

! style="width:40%;"|Feature !! style="width:20%;"|Java !! style="width:20%;"|C++ !! style="width:20%;"|Perl

|-

| eXtensible Markup Language (XML) 1.0 Fourth Edition Recommendation || || ||

|-

| eXtensible Markup Language (XML) 1.1 Second Edition Recommendation || || ||

|-

| Namespaces in XML 1.1 Second Edition Recommendation || || ||

|-

| Namespaces in XML 1.0 Second Edition Recommendation || || ||

|-

| XML Inclusions (XInclude) Version 1.0 Second Edition Recommendation || || ||

|-

| Simple API for XML (SAX) || || ||

|-

| Streaming API For XML (StAX) || || ||

|-

| DOM Level 2 Core Specification || || ||

|-

| DOM Level 2 Traversal and Range Specification || || ||

|-

| Document Object Model (DOM) Level 3 Core, Load and Save || || ||

|-

| Element Traversal Specification || || ||

|-

| XML Schema 1.0 Structures and Datatypes || || ||

|-

| XML Schema 1.1 Structures and Datatypes || || ||

|-

| XML Schema Definition Language (XSD): Component Designators (SCD) || || ||

|-

| Java APIs for XML Processing (JAXP) 1.4 || || ||

|}

See also

  • Apache License
  • Java XML
  • Apache Xalan

References

Notes

  • Implemented third edition.
  • Implemented second edition. Section 2.13 Normalization Checking has not been implemented.
  • Implemented first edition.
  • Implemented first edition.
  • [//xerces.apache.org/ Apache Xerces Project home]