Home / Articles / Adobe InDesign / Nine Rules for Creating Good XML

Nine Rules for Creating Good XML

Article Description

HTML allows you to be a little lax, but XML is a sterner taskmaster. James J. Maivald and Cathy Palmer have come up with nine simple rules that will help you to create well-formed XML every time.

Rule 5: Tag Names Are Case Sensitive

Uppercase and lowercase matter in XML. Opening and closing tags must match exactly. For example, <ROOT>, <Root>, and <root> are three different tags.

Wrong:

<author>Hemingway</AUTHOR>
<Author>Hemingway</aUTHOR>

Right:

<author>Hemingway</author>
<AUTHOR>Hemingway</AUTHOR>
6. Rule 6: Tag Names Cannot Contain Spaces | Next Section Previous Section