Here’s the small example of XML.
Don’t forget me this weekend!
• The first line in the document – the XML declaration – defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) character set.
XML
• All XML elements must have a closing tag
• With XML, it is illegal to omit the closing tag.
• In HTML some elements do not have to have a closing tag. The following code is legal in HTML:
This is a paragraph
This is another paragraph
• In XML all elements must have a closing tag, like this:
This is a paragraph
This is another paragraph
• Note: You might have noticed from the previous example that the XML declaration
Leave a comment