From the course: Learning Apache Tomcat

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding XML

Understanding XML - Tomcat Tutorial

From the course: Learning Apache Tomcat

Start my 1-month free trial

Understanding XML

- If you're going to be working with Java apps, including Tomcat, you're going to have to deal with XML. XML or Extensible Markup Language is used as a configuration language in a lot of Java projects. If you're familiar with JSON or YAML, XML can be quite a challenge. Personally, I'm not a fan of XML because it doesn't seem like it was designed with humans in mind. Even properly-formatted XML can be really hard to read and without formatting it just makes my eyes hurt. Despite not being very easy to read, XML is pretty simple. It's a lot like HTML, in fact HTML code is valid XML. XML documents are made up of combining opening and closing tags. That looks like this. There's the name of a tag surrounded by angle brackets then whatever the tag contains then another pair of angle brackets with a slash followed by the tag name. This whole thing together is called an XML element. An element can also contain attributes, like in this example. Attributes are individual bits of data associated…

Contents