TYPE THE DOCUMENT TITLE 10 An Example XML Document ................................................................................ XML Documents Form a Tree Structure ............................................................... Example ................................................................................................................ XML Syntax Rules .................................................................................................... All XML Elements Must Have a Closing Tag. XML Tags are Case Sensitive. XML Elements Must be Properly Nested .............................................................. XML Documents Must Have a Root Element ....................................................... XML Attribute Values Must be Quoted ................................................................ Entity References ................................................................................................... Comments in XML ................................................................................................ With XML, White Space is Preserved ................................................................... XML Stores New Line as LF ................................................................................. XML Elements ........................................................................................................... What is an XML Element .................................................................................... XML Naming Rules ............................................................................................... Best Naming Practices ........................................................................................... XML Elements are Extensible ............................................................................... XML Attributes .......................................................................................................... XML Attributes ...................................................................................................... XML Attributes Must be Quoted ........................................................................... XML Elements vs. Attributes ................................................................................ My Favorite Way ................................................................................................... Avoid XML Attributes ......................................................................................... XML Attributes for Metadata ................................................................................ XML Validation ......................................................................................................... Well Formed XML Documents ............................................................................. Valid XML Documents. XML DTD ............................................................................................................. XML Schema ......................................................................................................... A General XML Validator ..................................................................................... XML Validator........................................................................................................... XML Errors Will Stop You ................................................................................... 203
Syntax-Check Your XML ...................................................................................... 203
Syntax-Check an XML File ................................................................................... Validate Your XML Against a DTD ..................................................................... Viewing XML Files ................................................................................................... 205