How To Install xsd on CentOS 7

In this tutorial we learn how to install xsd on CentOS 7. xsd is W3C XML schema to C++ data binding compiler

Introduction

In this tutorial we learn how to install xsd on CentOS 7.

What is xsd

CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to C++ data binding compiler. Provided with an XML instance specification (XML Schema), it generates C++ classes that represent the given vocabulary as well as parsing and serialization code. You can then access the data stored in XML using types and functions that semantically correspond to your application domain rather than dealing with intricacies of reading and writing XML.

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

Install xsd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xsd using yum by running the following command:

sudo yum -y install xsd

Install xsd 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 xsd using dnf by running the following command:

sudo dnf -y install xsd

How To Uninstall xsd on CentOS 7

To uninstall only the xsd package we can use the following command:

sudo dnf remove xsd

References

Summary

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