XML vs. HTML: An Example

You can create your own tags in XML. This is such a powerful, vital part of XML that it bears further discussion. If you're used to working in HTML, this concept is probably very foreign to you since HTML does not allow you to define your own tags. Though various browser vendors have extended HTML with their own custom tags, you still can't create your own—you have to use the tags provided to you by your browser.

So how do you define a new tag in XML? The simplest answer is: you don't have to. You just use it. You can control what tags are valid in an XML document by using DTD documents and XML schemas (we'll talk about each of these later), but, the bottom line is this: You simply use a tag to define it in XML. There ...

Get Guru's Guide to SQL Server Architecture and Internals, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.