XML Serialization in Java with XStream

Xstream is an old but still a good framework for serialization. Definitely, there are faster libraries however Xstream still lightweight and relevant if you need to deal with XML. There are other formats like YAML, JSON, and so many others. For configurations, I definitely favor java properties file format which is just a key/value format. Generally, I would favor JSON for configs over YAML. So why XML in 2021? I'm not arguing XML is the way. Just saying sometimes you need to deal with old services or old systems and for that case, you might be constrained with whatever format is there. You might consider creating a wrapper service to abstract an old API and old format but eventually, complexity needs to live somewhere. So I made some POC showing some of the capabilities that Xstream has. Let's get started!

The Video

The Code



Diego Pacheco

Popular posts from this blog

Podman in Linux

Java Agents

HMAC in Java