Posts

Showing posts from November, 2010

XML Syntax Rules

XML Syntax Rules The syntax rules of XML are very simple and logical. The rules are easy to learn, and easy to use. 1.      All XML Elements Must Have a Closing Tag In XML, it is illegal to omit the closing tag. All elements must have a closing tag: <p>This is a paragraph</p> <p>This is another paragraph</p>   2.      XML Tags are Case Sensitive XML tags are case sensitive. The tag <Letter> is different from the tag <letter>. 3.      XML Elements Must be Properly Nested In XML, all elements must be properly nested within each other: <b><i>This text is bold and italic</i></b>   4.      XML Documents Must Have a Root Element XML documents must contain one element that is the parent of all other elements. This element is called the root element. <root>   <child>     <subchild>.....</subchild>   </child> </root>   5.      XML Attrib