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:
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:
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 )
Error: File does not exist: labels.rdf in your server error logs
What is the structure of an XML?
Error: File does not exist: crossdomain.xml in your server error logs
Latest Articles (in xml)
© 2023 Java-samples.com
Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate
Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate