By: Emiley J in xml Tutorials on 2012-04-05
Some new programmers tend to think that XML is a replacement for HTML. It is NOT. XML and HTML were designed with different goals in mind. XML was designed to transport and store data, with focus on what data is where as HTML was designed to display data, with focus on how data looks. So HTML is about displaying information, while XML is about transporting information.
Another thing to note is that XML Does Not DO Anything!
XML was created to structure, store, and transport information. So you will have to use some other technology or programming language to handle and process XML document in order to DO something.
The following example is a note to the teacher , from a student, stored as XML:
<note> <to>teacher</to> <from>student</from> <heading>Leave</heading> <body>I was sick yesterday</body> </note>
The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body. But still, this XML document does not DO anything. It is just information wrapped in tags. Someone must write a piece of software maybe in Java,C++,ASP,PHP etc to send this note, receive or display it somewhere.
With XML You can add your own Tags
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. So you can add your own tags as necessary. Therefore there are no predefined tags or the so called keywords that you have to use in XML. This is in contrast to HTML where the tags are predefined and if you use your own tag it will be ignored by the browsers.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in xml )
Latest Articles (in xml)