| Whether you're discussing e-commerce,
| |
| | finite collection of tags, XML allows
|
| knowledge management, or the Internet in
| |
| | users to create their own to meet their
|
| general, you've likely seen or heard
| |
| | own requirements (thus the
|
| reference to eXtensible Markup Language
| |
| | eXtensibility).
|
| (XML). XML is, without a doubt, one of
| |
| | I've made several references to tags,
|
| the most heralded technologies to come
| |
| | elements, and attributes. These are the
|
| across the wire in recent years (pun
| |
| | core building blocks of an XML document.
|
| intended). What is XML? Why is it
| |
| | Consider the following HTML fragment. It
|
| creating such a deluge of interest? What
| |
| | should be painfully familiar to anyone
|
| should you know about XML, and perhaps
| |
| | who's ever looked at an HTML document and
|
| more importantly, why should you even
| |
| | will prove useful in understanding XML
|
| care about it? In this article, I will
| |
| | syntax.
|
| provide a high-level description of what
| |
| | Here is the first group of text< d>
|
| XML is (and what it's not), discuss the
| |
| | Here is the second group of text< d>
|
| key components of an XML document, and
| |
| | < r>
|
| provide a compelling argument for why
| |
| | < able>
|
| it's well worth your while to learn more
| |
| | This document contains a table element ("
|
| about XML.
| |
| | ") with a table row element ("
|
| To understand XML, it's helpful to
| |
| | "). The table row element, in turn
|
| compare and contrast it with another
| |
| | contains two table cell elements (" ").
|
| technology with which a great many of us
| |
| | Each of these elements has both an
|
| are familiar - HyperText Markup Language
| |
| | opening tag ("
|
| (HTML).
| |
| | ") and a closing tag ("< able>"). While
|
| If you've used or read about HTML, you
| |
| | this is fairly straightforward, it also
|
| know that it was created so that users
| |
| | is somewhat inflexible. What if, for
|
| could format and display information on
| |
| | example, I need to create a document that
|
| the Web. HTML uses a fixed and finite set
| |
| | describes my company's employee roster
|
| of tags, elements, and attributes that
| |
| | for the Annual InfoStrat softball
|
| allow it to communicate to a user's
| |
| | tournament? With XML, it's as easy as
|
| browser how that browser should display
| |
| | replacing the element and attribute names
|
| the document. We see HTML everywhere, and
| |
| | from the previous HTML document with my
|
| it has for some time served as the lingua
| |
| | own custom tags that describe my company
|
| franca for displaying information on the
| |
| | and its employees. Here is what such a
|
| Web. It is a proven technology that well
| |
| | document might look like:
|
| serves its purpose in most scenarios.
| |
| |
|
| What if, however, the current version of
| |
| | Hank Aaron
|
| HTML doesn't allow me to do something
| |
| | Babe Ruth
|
| that I want to do? I have two choices: I
| |
| | With this XML document, I have defined my
|
| can either write my own browser that
| |
| | company and two of its employees and have
|
| understands my tags (bad idea) or I can
| |
| | described the relationship between
|
| put my project on hold for a year or so
| |
| | company (parent) and employees
|
| and hope that the next version of HTML
| |
| | (children). I have shown that my company
|
| includes the functionality that I need
| |
| | has two employees, but I easily could add
|
| (even worse idea). Try selling either of
| |
| | new employee elements to reflect new
|
| these options to your boss or client and
| |
| | hires that we bring on to ensure that we
|
| see if you still have a job by the time
| |
| | don't lose this year's tournament:
|
| you end your discussion. So concludes our
| |
| | Mickey Mantle
|
| one-paragraph, in-depth investigation of
| |
| | Ty Cobb
|
| HTML.
| |
| | After creating my XML document, I can
|
| Now, if I may lapse into my days of
| |
| | display its contents in my format of
|
| standardized test taking, HTML is to
| |
| | choice. The same XML document could
|
| displaying information as XML is to
| |
| | easily be displayed as HTML, a Microsoft
|
| defining information. They both are
| |
| | Word document, an Adobe .pdf file, or
|
| text-based, and they both consist of
| |
| | even as text in the body of an e-mail
|
| tags, elements, and attributes. Unlike
| |
| | message. As long as the XML document is
|
| HTML, however, XML allows users to
| |
| | well formed (meaning that it follows the
|
| structure and define the information in
| |
| | appropriate XML format and syntax), you
|
| their documents. While technically it is
| |
| | can choose your method of preference (or
|
| a markup language (it allows you to use
| |
| | necessity) for displaying its content.
|
| tags to "mark-up" the contents of your
| |
| | Let's dissect the pieces of my company
|
| document), it more appropriately is a
| |
| | roster XML document to see each piece's
|
| meta-language. By meta-language, I mean
| |
| | role and responsibility.
|
| that it allows users to create their own
| |
| | Header:
|
| collection of tags, elements, and
| |
| | The header tells the document's user that
|
| attributes as needed and in so doing to
| |
| | this is an XML document - using version
|
| accurately describe the physical contents
| |
| | 1.0 of the XML specification in this
|
| of a document. Unlike HTML with its
| |
| | case.
|