What is XML?
XML stands for Extensible Markup Language. Most people think XML is either a markup language or a metalanguge. Both are correct. It is used as a metalanguge to create XML-based languages, which are used to create specific documents. XML is used as a markup language to markup text.
But what does "markup" mean?
Markup refers to the "insertion of characters to indicate how the information in a document should appear when it is printed or displayed, or to describe a document's logical structure." -XML written by Al McKinnon and Linda McKinnon.
Are XML and HTML similar?
Yes and no. XML and HTML both use tags, elements, and attributes, so they appear very similar.
Though, XML is not like HTML and was never meant to replace HTML. They both were designed with different goals. XML was designed to describe data and focus on what the actual data is. However, HTML was designed to display content and focus on how the content looks.
Can I see an example of the similarity between XML and HTML?
Sure you can! Here would be the HTML code:
Can you show me what a full XML code would look like?