Apache Xerces

Last updated
Apache Xerces
Developer Apache Software Foundation
Stable release
2.12.2 (Xerces J)
3.2.3 (Xerces C++) / 24 January 2022 (Xerces J)
10 April 2020 (Xerces C++)
Operating system Cross-platform
Type XML parser library
License Apache License 2.0
Website xerces.apache.org

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.

Contents

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

Xerces language versions

There are several language versions of the Xerces parser:

LanguageRelease DateVersion
Java2022-01-242.12.2
C++2020-04-103.2.3
Perl2014-04-302.7.0

Features

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

FeatureJava [3] C++ [4] Perl
eXtensible Markup Language (XML) 1.0 Fourth Edition RecommendationYesPartial Partial
eXtensible Markup Language (XML) 1.1 Second Edition RecommendationYesPartial Partial
Namespaces in XML 1.1 Second Edition RecommendationYesPartial Partial
Namespaces in XML 1.0 Second Edition RecommendationYesPartial Partial
XML Inclusions (XInclude) Version 1.0 Second Edition RecommendationYesYesYes
Simple API for XML (SAX) YesYesYes
Streaming API For XML (StAX) YesNoNo
DOM Level 2 Core SpecificationYesYesYes
DOM Level 2 Traversal and Range SpecificationYesYesYes
Document Object Model (DOM) Level 3 Core, Load and SaveYesYesYes
Element Traversal SpecificationYesYesYes
XML Schema 1.0 Structures and DatatypesYesYesYes
XML Schema 1.1 Structures and DatatypesYesNoNo
XML Schema Definition Language (XSD): Component Designators (SCD)YesNoNo
Java APIs for XML Processing (JAXP) 1.4YesNoNo

See also

References

  1. Benz, Brian; Durant, John (7 May 2004). XML Programming Bible. John Wiley & Sons (published 2004). p. 87. ISBN   9780764555763 . Retrieved 2014-10-01. Apparently, the parser was named after the now extinct Xerces blue butterfly, a native of the San Francisco peninsula.
  2. "Apache Xerces Perl". xerces.apache.org. Retrieved 2019-12-08. XML::Xerces is the Perl API to the Apache project's Xerces XML parser. It is implemented using the Xerces C++ API, and it provides access to most of the C++ API from Perl.
  3. "Features". xerces.apache.org. Retrieved 2019-12-08.
  4. "Features". xerces.apache.org. Retrieved 2019-12-08.

Notes