Answer Posted / amit gupta
The main difference between XML and HTML :
XML was designed to carry data.
Before you continue you should have a basic understanding of the following :
XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks .
HTML is about displaying information, while XML is about describing information.
XML is free and extensible
XML tags are not predefined. You must "invent" your own tags.
The tags used to mark up HTML documents and the structures of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like , etc.).
XML allows the author to define his own tags and his own document structure.
The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How does xml handle white-space in my documents?
What is text () in xpath?
What are xml entities used for?
Describe xpath.
Explain how to retrieve value of an attribute for an element using XSLT?
Define xml?
Why is web xml needed?
What is xsi type?
What is xl file?
How do I create an xml map in excel?
Why should I use xml?
What is the purpose of xml?
What is xml vs html?
What are XML Data Islands?
What is the difference between wsdl and xsd?