O'Reilly logo

Real World XML by Steven Holzner

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

Chapter 2. Creating Well-Formed XML Documents

In the previous chapter, we got our start in XML and got an overview of how XML lets you structure your own documents, what XML is all about, and some of the uses you can make of it. It's time to take a look at XML in more depth and to sharpen our XML understanding until it's crystal clear.

In HTML, about 100 elements already are defined. Browsers can check the HTML in a Web page and display that page as they see fit. In XML, you have more freedom—and so more responsibility. In XML, you define your own elements, and it's up to you to decide how they should be used. Despite their apparently free-form nature, XML documents are subject to a number of rules that allow them to be handled in a useful and ...

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