How To Install xerces-j2 on CentOS 7

In this tutorial we learn how to install xerces-j2 on CentOS 7. xerces-j2 is Java XML parser

Introduction

In this tutorial we learn how to install xerces-j2 on CentOS 7.

What is xerces-j2

Welcome to the future! Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, and parsers can be written using the Xerces Native Interface. For complete design and implementation documents, refer to the XNI Manual. Xerces2 is a fully conforming XML Schema processor. For more information, refer to the XML Schema page. Xerces2 also provides a complete implementation of the Document Object Model Level 3 Core and Load/Save W3C Recommendations and provides a complete implementation of the XML Inclusions (XInclude) W3C Recommendation. It also provides support for OASIS XML Catalogs v1.1. Xerces2 is able to parse documents written according to the XML 1.1 Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles name spaces according to the XML Namespaces 1.1 Recommendation, and will correctly serialize XML 1.1 documents if the DOM level 3 load/save APIs are in use.

We can use yum or dnf to install xerces-j2 on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install xerces-j2.

Install xerces-j2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xerces-j2 using yum by running the following command:

sudo yum -y install xerces-j2

Install xerces-j2 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install xerces-j2 using dnf by running the following command:

sudo dnf -y install xerces-j2

How To Uninstall xerces-j2 on CentOS 7

To uninstall only the xerces-j2 package we can use the following command:

sudo dnf remove xerces-j2

References

Summary

In this tutorial we learn how to install xerces-j2 on CentOS 7 using yum and dnf.