From the course: Learn API Documentation with JSON and XML

Unlock the full course today

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

XML basics

XML basics

From the course: Learn API Documentation with JSON and XML

Start my 1-month free trial

XML basics

- [Instructor] Now let's take a look at the data format known as XML, which stands for Extensible Markup Language. XML has its origins in HTML. HTML as you may know, stands for Hypertext Markup Language. And it's the format that browsers use to display web pages. XML is like HTML except that instead of being used to capture data for a website, it's used to capture any kind of structured data. A quick caveat, there are entire books written about XML. It can be a very complex and sophisticated language, but the basics of XML can be learned very quickly. Here we'll focus on giving you enough information to be able to document the files. XML has two ways of handling data called tags and attributes. We'll start with tags. Tags have angle brackets on each side. Starting tags are just angle brackets and ending tags have a slash after the first angle bracket. Start and end tags must match. Meaning that for every starting tag, you should have an end tag later on that has the same text inside…

Contents