Let us take look of how XML tags are case sensitive.
• Unlike HTML, XML tags are case sensitive.
• With XML, the tag
• Opening and closing tags must therefore be written with the same case:
•
•
All XML elements must be properly nested
Improper nesting of tags makes no sense to XML.
In HTML some elements can be improperly nested within each other like this:
This text is bold and italic
In XML all elements must be properly nested within each other like this:
This text is bold and italic
All XML documents must have a root element
• All XML documents must contain a single tag pair to define a root element.
• All other elements must be within this root element.
• All elements can have sub elements (child elements). Sub elements must be correctly nested within their parent element:
Leave a comment