Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

What is XML?

Okay, we’re going to take a big step back, for a page or two, and look at XML (not to be confused with XHTML). This is going to be a fast ride, so hang on...

Let’s use HTML for comparison. With HTML you’re basically told what elements you can and can’t use, right? So, if you want to just make up an element, like <cool>, to wrap around content, you can’t do it, can you? Ah, but with XML, you can. If fact, you can invent totally new markup languages using XML. Let’s look at an example:

image with no caption

Brain Power

Think about how you would create a Web page using HTML to represent the recipe. How would that be different from using XML?


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial