0% found this document useful (0 votes)
6 views18 pages

Intro To XML

XML

Uploaded by

anbreensaleem183
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
6 views18 pages

Intro To XML

XML

Uploaded by

anbreensaleem183
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
What is XML Ps © XML stands for eXtensible Markup Language. ° Amarkup language is used to provide information about a document. 5 Tags are added to the document to provide the extra information. ° HTML tags tell a browser how to display the document. | XML tags give a reader some idea what some of the data means. What is XML? 5 a meta language that allows you to create and format your own document markups 5 a method for putting structured data into a text file; these files are - easy to read - unambiguous - extensible - platform-independent 5 XML documents are used to transfer data from one place to another often over the Internet. Difference Between HTML and XML SS © HTML tags have a fixed meaning and browsers know what it is. © XML tags are different for different applications, and users know what they mean. ° HTML tags are used for display. © XML tags are used to describe documents and data. Quick Comparison |_| © HTML o XML - tags and attributes are pre- ~ allows user to specify what doanained and rigid ° each tag and attribute means - content and formatting can - content and format are be placed together separate; formatting is contained in a stylesheet

text - Designed to represent the - Designed to represent the logical structure of a presentation structure of a document. Thus, more effective for machine- document. Thus, more ine : machine interaction effective for machine- human interaction : : - Suntay is strietly defined Advantages of XML 2 Oe 5 XML is text (Unicode) based. Takes up less space. Can be transmitted efficiently. [| One XML document can be displayed differently in different media. Html, video, CD, DVD, You only have to change the XML document in order to change all the rest. | XML documents can be modularized. Parts can be reused. Possible Advantages of Using XML ——— ZZ 5 Truly Portable Data Easily readable by human users 5 Very expressive (semantics near data) 5 Very flexible and customizable (no finite tag set) 5 Easy to use from programs (libs available) 5 Easy to convert into other representations (XML transformation languages) 5 Many additional standards and tools 5 Widely used and supported Example of an XML Document 2 ss

Alice Lee [email protected] 212-346-1234 1995-03-22
The actual benefit of using XML highly depends on the design of the application. Example of an HTML Document 2 ss Example

This is an example of a page.

Some information goes here.

Abb. § Scenario 1: Content Mgt. i | a Z IXML2WML/ XML2PDF BED om Converters Database with XML documents App. Scenario 2: Data Exchange Buyer Supplier (BMECat, ebXML, RosettaNet, BizTalk, ...) Legacy Legacy System Order System (e.g., SAP (eg. R/2) Cobol) App. Scenario 3: XML for Metadata X¥ML Indexing ixights>Copyright ... title>A Framework for.. creator>Ralf Schenkel description>While there are... publisher>Saarland Universi ty type>Electronic Document format>text/pdf language>en Description> XML Documents What's in an XML document? * Elements * Attributes * plus some other details A Simple XML Document
Gerhard Weikum The Web in Ten Years In order to evolve...
The Web provides the universal
A Simple XML Document
author: In o: to evolve. ..
. What is the difference between elements and attributes? * Only one attribute with a given name per element (but an arbitrary number of subelements) * Attributes have no structure, simply strings (while elements can have subelements) As a rule of thumb: * Content into elements * Metadata into attributes Example: Alan Turing proved that...

You might also like