11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

XXMLSeveral markup languages have been devised for specifyingthe organization or format <strong>of</strong> documents. Today the mostcommonly known markup language is the Hypertext MarkupLanguage (see html, dhtml, <strong>and</strong> xhtml), which is the organizational“glue” <strong>of</strong> the Web (see World Wide Web).HTML is primarily concerned with rendering (displaying)documents. It describes structural features <strong>of</strong> documents(such as headers, sections, tables, <strong>and</strong> frames), butit does not really convey the structure <strong>of</strong> the informationwithin the document. Further, HTML is not extensible—that is, one can’t define one’s own tags <strong>and</strong> use them as part<strong>of</strong> the language. XML, or Extensible Markup Language, isdesigned to meet both <strong>of</strong> these needs. In effect, while HTMLis a descriptive coding scheme, XML is a scheme for creatingdata definitions <strong>and</strong> manipulating data within documents.(XML can be viewed as a subset <strong>of</strong> the powerful <strong>and</strong> generalizedSGML, or St<strong>and</strong>ard Generalized Markup Language.)The basic building block <strong>of</strong> XML is the element, whichcan be used to define an entity (rather like a databaserecord). For example, the following statement:Babe RuthLou GehrigXML text is bracketed by tags as with HTML. The“team” element has an attribute called “name” that isassigned the value “New York Yankees.” (Attribute valuesmust be enclosed in quote marks.) It also contains a nestedelement called players, which in turn defines player names,Babe Ruth <strong>and</strong> Lou Gehrig. The elements are defined atthe beginning <strong>of</strong> the XML document by a DTD (DocumentType Definition), or such a definition can be “included”from another file.XML is currently supported by the leading Web browsers.In effect, it includes HTML as a subset, or more accuratelyXHTML (HTML conformed to XML 1.0 st<strong>and</strong>ards)(see html, dhtml, <strong>and</strong> xhtml). Thus, XML documentscan be properly rendered by browsers, while applicationsthat are XML-enabled (or that use XML-aware ActiveX controlsor similar Java facilities, for example) can parse theXML <strong>and</strong> identify the data structures <strong>and</strong> elements in thedocument. Together with programming languages such asJava <strong>and</strong> facilities such as SOAP (Simple Object Access Protocol),XML can be used to create applications that connectservers <strong>and</strong> documents across the Internet—it is rapidlybecoming the data “glue” that holds Web sites together.XML can be viewed as part <strong>of</strong> a trend to make data “selfdescribing.”The ability to encode not just the structure butthe logical content <strong>of</strong> documents promises a growing abilityfor automated agents or “bots” to take over much <strong>of</strong> thework <strong>of</strong> sifting through the Web for desired information,bringing the Web closer to the intentions <strong>of</strong> its inventor,Tim Berners-Lee (see Berners-Lee, Tim; semantic web).Further ReadingCarey, Patrick. New Perspectives on XML. 2nd ed. Boston: Course<strong>Technology</strong>, 2006.520

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!