Ex tensible M arkup L anguage

  • View
    30

  • Download
    0

Embed Size (px)

DESCRIPTION

Ex tensible M arkup L anguage. X. M. L. ASHIMA KALRA. INDEX…. INTRODUCTION OF XML XML FEATURES XML SYNTAX XML ELEMENTS XML ATTRIBUTES USES OF XML. Introduction. XML was designed to describe data and to focus on what data is. - PowerPoint PPT Presentation

Text of Ex tensible M arkup L anguage

Chapter 2: Introduction to Microprocessor-Based Control

IntroductionXML was designed to describe data and to focus on what data is.

HTML was designed to display data and to focus on how data looks.BACK3In your opening, establish the relevancy of the topic to the audience. Give a brief preview of the presentation and establish value for the listeners. Take into account your audiences interest and expertise in the topic when choosing your vocabulary, examples, and illustrations. Focus on the importance of the topic to your audience, and you will have more attentive listeners.

Features of XMLXML does not DO anything

XML is free and extensible

XML is a complement to HTML

XML is a cross-platform, software and hardware independent tool for transmitting information.

BACK

XML Syntax

ToveJaniReminderDon't forget me this weekend!

BACK

XML Elements

XML Elements are Extensible

ToveJaniDon't forget me this weekend! BACK

XML Attributes

XML elements can have attributes.

Quote Styles, "female" or 'female'? BACK

Uses of XMLXML can Separate Data from HTMLWith XML, data is stored outside HTML

XML is used to Exchange DataWith XML, data can be exchanged between incompatible systems

XML and B2BWith XML, financial information can be exchanged over the Internet.BACK

Syntax RulesAll XML elements must have a closing tag

Incorrect This is a paragraph This is another paragraph

Correct This is a paragraph This is another paragraph

XML tags are case sensitive

This is incorrect This is correct

All XML elements must be properly nested

This text is bold and italic All XML documents must have a root element

..... BACKAttribute values must always be quoted

Tove Jani With XML, white space is preserved

Hello my name is Tove,HTML output: Hello my name is Tove,XML output: Hello my name is Tove,Comments in XML

The syntax for writing comments in XML is similar to that of HTML.

BACK MESSAGE

To: ToveFrom: Jani Don't forget me this weekend!

2002-08-01ToveJaniReminder

BACK

2002-08-01ToveJaniReminderDon't forget me this weekend!

Element Naming

Names can contain letters, numbers, and other characters Names must not start with a number or punctuation character

Names must not start with the letters xml (or XML or Xml)

Names cannot contain spaces

BACKIf the attribute value itself contains double quotes it is necessary to use single quotes, like in this example:

If the attribute value itself contains single quotes it is necessary to use double quotes, like in this example:

BACK

Uses of XMLXML can be used to Share DataXML provides a software- and hardware-independent way of sharing data

XML can be used to Store DataWith XML, plain text files can be used to store data

Uses of XMLXML can make our Data more UsefulSince XML is independent of hardware, software and application, you can make your data available to other than only standard HTML browsers

XML can be used to Create new LanguagesXML is the mother of WAP and WMLBACKTHANKYOU