How To Install xmlstreambuffer on CentOS 7

In this tutorial we learn how to install xmlstreambuffer on CentOS 7. xmlstreambuffer is XML Stream Buffer

Introduction

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

What is xmlstreambuffer

A stream buffer is a stream-based representation of an XML info-set in Java. Stream buffers are designed to very efficient stream-based memory representations of XML info-sets; and be created and processed using any Java-based XML API. Conceptually a stream buffer is similar to the representation used in the Xerces deferred DOM implementation, with the crucial difference that a stream buffer does not store hierarchical information like parent and sibling information. The deferred DOM implementation reduces memory usage when large XML documents are parsed but only a subset of the document needs to be processed. (Note that using deferred DOM will be more expensive than non-deferred DOM in terms of memory and processing if all the document is traversed.) Stream buffers may be used as an efficient alternative to DOM where * most or all of an XML info-set will eventually get traversed; and/or * targeted access to certain parts of an XML info-set are required and need to be efficiently processed using stream-based APIs like SAX or StAX.

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

Install xmlstreambuffer on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install xmlstreambuffer

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

sudo dnf -y install xmlstreambuffer

How To Uninstall xmlstreambuffer on CentOS 7

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

sudo dnf remove xmlstreambuffer

References

Summary

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