But unlike HTML, XML tags identify the data rather than specify how to display it. Whereas an HTML tag says something like, "Display this data in bold font, an XML tag acts like a field name in your program.
The tags in this example identify the message as a whole, the destination and sender addresses, the subject, and the text of the message. As in HTML, the
Again, as with HTML, whitespace is essentially irrelevant, so you can format the data for readability and yet still process it easily with a program. Unlike HTML, however, in XML you can easily search a data set for messages containing, in the subject, because the XML tags identify the content of the data rather than specify its representation.
No comments:
Post a Comment