• XML Syntax Rules

    Friday, April 03, 2009 by ASP.NET AJAX Team | Go comment!

    All XML Elements Must Have a Closing Tag

    In HTML, you will often see elements that don't have a closing tag: 

    <p>This is a paragraph 
    <p>This is another paragraph 
     

    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>  
     

     

     Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag.

    XML Tags are Case Sensitive

    XML elements are defined using XML tags.
    XML tags are case sensitive. With XML, the tag <Letter> is different from the...