XML is growing rapidly and you’ll find yourself working with XML files while working on java or .NET platform. There are
some rules that needs to be considered while working with XML files. In this article you’ll learn some of the syntax rules
of XML.
Rule 1: XML Tags are case sensitive.
Rule 2: Opening and Closing of the tags is must therefore it should be written with the same case.
Rule 3: All XML elements must have a closing tag.
Rule 4: All XML elements must be properly nested.
Rule 5: All XML element must have a root tag.
Rule 6: XML Element can have attributes in name/value pairs just like in HTML. Attribute value must be quoted.
These are some of the basic syntax rules that should be obeyed if you wish to write well formed XML documents. If you have
any suggestion or feedback then feel free to post in comments.