XML was designed to describe data and to focus on what data is.
HTML was designed to display data and to focus on how data looks.
The syntax rules of XML are very simple and very strict.
* XML documents must have a root element
* XML elements must have a closing tag
* XML tags are case sensitive
* XML elements must be properly nested
* XML attribute values must always be quoted
Comments in XML
With XML, CR / LF is Converted to LF
XML Elements are Extensible
XML Elements have Relationships
What I am trying to say here is that metadata (data about data) should be stored as attributes, and that data itself should be stored as elements.
DTD - document Type Definition
XML Schema
Well Formed XML Documents
Valid XML Documents
Monday, May 7, 2007
Subscribe to:
Posts (Atom)