- Rule 1: All XML Must Have a Root Element
- Rule 2: All Tags Must Be Closed
- Rule 3: All Tags Must Be Properly Nested
- Rule 4: Tag Names Have Strict Limits
- Rule 5: Tag Names Are Case Sensitive
- Rule 6: Tag Names Cannot Contain Spaces
- Rule 7: Attribute Values Must Appear Within Quotes
- Rule 8: White Space Is Preserved
- Rule 9: Avoid HTML Tags (Optional)
Rule 9: Avoid HTML Tags (Optional)
Because you can name tags anything you want, you could use tags reserved for HTML markup, such as <h1>, <p>, <li>, and so on. Although permissible in XML, avoid using such tag names unless you want the data to be formatted that way when it’s viewed in a browser window.
Editor's Note: For more great books on using InDesign CS3, check out the following titles:
Instant InDesign: Designing Templates for Fast and Efficient Page Layout
InDesign CS3 for Macintosh and Windows: Visual QuickStart Guide