XML

Working with XML in Scala

Reading Time: 2 minutes In this blog, we will talk about how we can work with XML using Scala. Scala treats XML as the first-class citizen. So, instead of embedding XML documents into strings. , you can place them inline in your code like you place an int or double value. For example scala> val xml = Hello xml: scala.xml.Elem = Hello scala> xml.getClass res2: Class[_ <: scala.xml.Elem] = Continue Reading

Introduction to JAXB 2.0

Reading Time: 2 minutes JAXB stands for Java Architecture for XML Binding. It provides mechanism to write java objects into XML and read XML into object. Simply, you can say it is used to convert java object into XML and vice-versa. JAXB provides a fast and convenient way to bind XML schemas and Java representations, making it easy for Java developers to incorporate XML data and processing functions in Continue Reading