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 7: Attribute Values Must Appear Within Quotes

Attribute values modify a tag or help identify the type of information being tagged. If you’re a web designer, you may be used to the flexibility of HTML, in which some attributes don’t require quotes. In XML, all attribute values must appear within quotes. For example:

<chapter number="1">
<artist title="author" nationality="USA">
8. Rule 8: White Space Is Preserved | Next Section Previous Section