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.
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.
Sure you can! Here would be the HTML code:
CODE
<p>
ABC Co. owes us <strong>3517 dollars</strong>. This account should be monitored.
ABC Co. owes us <strong>3517 dollars</strong>. This account should be monitored.
And here would be XML:
CODE
<text><client>ABC Co.</client> owes us <invamt>3517 dollars</invamt><remark>This account should be monitored.</remark></text>
CODE
<?xml version="1.0"?>
<!-- Your first XML code -->
<message>
<saying>
<friendly>How are you?</friendly>
<improper>Hey! You!</improper>
</saying>
</message>
<!-- Your first XML code -->
<message>
<saying>
<friendly>How are you?</friendly>
<improper>Hey! You!</improper>
</saying>
</message>
At the very beginning, you see this code:"<?xml version="1.0"?>". You need that for every XML code that you write.
Hope this will be of use to anybody learning XML
discuss this topic to forum
