O'Reilly logo

Scientific Computing with Scala by Vytautas Jančauskas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading and writing XML files

XML or Extensible Markup Language is a popular markup language. It was designed to be both human- and machine-readable, but with an apparent emphasis on the later. XML is very widely supported and commonly used for file formats of various programs. For example, the popular Open Document Format is XML-based. The popularity of XML is mostly due to its historical use and support. It is often replaced by lighter languages such as JSON because of XML's relative verbosity and complexity. We will assume that the reader has a basic working knowledge of XML. However, to recap the basics, XML consists of tags and text. Tags are the start and end varieties. Start tags look like this: <tag>, while end tags look like this:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required