Home >Documents >shubham bhattacharya

shubham bhattacharya

Date post:07-Apr-2018
Category:
View:222 times
Download:0 times
Share this document with a friend
Transcript:
  • 8/3/2019 shubham bhattacharya

    1/26

    e x tensible M arkup Language (XML)

    By:-SHUBHAM BHATTACHARYAWASIM RJASAHAB MIAPAWAN

  • 8/3/2019 shubham bhattacharya

    2/26

    Outline of PresentationIntroductionComparison between XML and HTML

    Component of an xml documentXML queriesSchemaSummary

  • 8/3/2019 shubham bhattacharya

    3/26

    What is XML?

    e Xtensible Markup Language Markup language for documents containing

    structured informationDefined by four specifications:

    XML, the Extensible Markup LanguageXLL, the Extensible Linking LanguageXSL, the Extensible Style LanguageXUA, the XML User Agent

  • 8/3/2019 shubham bhattacharya

    4/26

    XML. Based on Standard Generalized MarkupLanguage (SGML)Version 1.0 introduced by World Wide WebConsortium (W3C) in 1998Bridge for data exchange onthe Web

  • 8/3/2019 shubham bhattacharya

    5/26

    I believe both Microsoftand the industry shouldreally bet their futurearound XML, thestandards around XML

    are key to where we needto go. (Mr. Bill Gates)

  • 8/3/2019 shubham bhattacharya

    6/26

    Comparisons

    Extensible set of tags

    Content orientatedStandard Datainfrastructure

    Allows multipleoutput forms

    Fixed set of tags

    Presentation orientedNo data validationcapabilities

    Single presentation

    XML HTML

  • 8/3/2019 shubham bhattacharya

    7/26

    COMPONENTES OFAN XML Documents

    THERE ARE SEVEN COMPONENTS OF AN XML DOCUMENTSTHAT CAN BE USE FOR REPRESENTING DATA IN AHIERARCHICAL ORDER:

    Processing instruction(pi)TagsElementsContentAttributesEntities

    Comments

  • 8/3/2019 shubham bhattacharya

    8/26

    PROCCESSINGINTRACTION(PI)An xml document usually beings with the xml

    declaration statement called the processinginstruction(pi).The pi statement providesinformation on how the elm file should beprocessed. The pi statement can be returnas:

  • 8/3/2019 shubham bhattacharya

    9/26

    TAGSTags are used to specify a name for a givenpiece of information. It is a means ofidentifying data. Data is marked up using

    tags. A tag consists of opening and closingangular brackets() that enclose the nameof the tag. Tag usually occur in pairs. Eachpair consists of a start tags and end tags. Forexample:

    Nick Shaw

  • 8/3/2019 shubham bhattacharya

    10/26

    ELEMENTSElements are the basic units use to identifyand describe data in xml. They are thebuilding blocks of an xml document. Elements

    are represented using tags. Consider thefollowing example:Jhon smith

  • 8/3/2019 shubham bhattacharya

    11/26

    CONTENTCONTENTS refers to the informationrepresented by the elements of an xmldocument. Consider the following example:

    the painted house

  • 8/3/2019 shubham bhattacharya

    12/26

    ATTRIBUTESATTRIBUTES provides additional informationabout the elements for which they aredeclared . an attribute consist of a name-

    value pair. Consider the following example:Barbie doll

  • 8/3/2019 shubham bhattacharya

    13/26

    ENTITIESENTITY is a name that is associated with a blockdata, such as a chunk of text or a reference to anexternal file that contains textual or binaryinformation.

    SOME OF THE PREDEFINE INTERNAL ENTITIES THAT FORM APART OF XML SPECIFICATION ARE LISTED FOLLOWS:

    INTERNAL ENTIES DESCRIPTION

    & lt; Used to display the lessthan () symbol.

    & amp Used to display the

    ampersand(&) symbol.

  • 8/3/2019 shubham bhattacharya

    14/26

    COMMENTSCOMMENTS are the statements used toexplains the xml code. They are used toprovide documentation information about the

    xml file or the application to which the filebelongs. The parser ignores comment entriescode execution. The following exampleillustrates the used of a component in an xmldocuments:

  • 8/3/2019 shubham bhattacharya

    15/26

    XML Query LanguagesThe first XML query languages

    LOREL (Stanford)Xql

    Several other query languages have beendeveloped (e.G. UNQL, xpath)XML-QL considered by W3C forstandardization

    Currently W3C is considering and working ona new query language: xquery

  • 8/3/2019 shubham bhattacharya

    16/26

    A Query Language forXML: XML-QL

    Developed at AT&T labsTo extract data from the input XML data

    Has variables to which data is bound andtemplates which show how the output XMLdata is to be constructedUses the XML syntax

    Based on a where/construct syntaxWhere combines from and where parts ofSQL Construct corresponds to sqls select

  • 8/3/2019 shubham bhattacharya

    17/26

    XML-QL QueryRetrieve all authors of books published byMorgan Kaufmann:

    where < book >

    Morgan Kaufmann< /name > < /publisher >

    $T < /title> $A < /author >

    < /book > in www.a.b.c/bib.xml construct $A

  • 8/3/2019 shubham bhattacharya

    18/26

    SCHEMA

    An xml schema defines the list ofelements and attributes that can be

    used in an xml documents. Inaddition to the list of the elements,an xml schema specific the order in

    which this elements appear in thexml documents, and their datatypes

  • 8/3/2019 shubham bhattacharya

    19/26

    DATA TYPE IN XML SCHEMAS

    Data types can classified as follows:

    PRIMITIVEDERIVEDATOMIC

    LISTUNION

  • 8/3/2019 shubham bhattacharya

    20/26

    ELEMENTS IN XML SCHEMATHERE ARE TWO TYPE OF ELEMENTS WHICH ARE:

    SIMPLE COMPLEX

  • 8/3/2019 shubham bhattacharya

    21/26

    SIMPLE ELEMENTA simple type element does not contain any

    child elements or attributes. It containsvalues, such as no. , Strings and dates

    Declaring elements with simple data type:

  • 8/3/2019 shubham bhattacharya

    22/26

    COMPLEX ELEMENTA complex type element contains other

    elements,attributes,and mixed content.

    You can define a complex data type using thefollowing syntax:

    Content model declaration

  • 8/3/2019 shubham bhattacharya

    23/26

    Internal AdoptionThe short list

    bCentral Public Web ServicesMSDN Content ManagementMicrosoft.com Content ManagementMSN - SyndicationMS Knowledge Base (300,000 + articles)uddi.microsoft.com UDDI repository

  • 8/3/2019 shubham bhattacharya

    24/26

    External AdoptionAmerican ExpressCo.Commerce One IncCompaq Computer

    Corp.Dell ComputerCorp.DescartesFujitsu Ltd.Great PlainsJust Enough.com

    Loudcloud Inc.Lycos.commatch21Merrill Lynch & Co. Inc.

    Monster.comNEONNortel Networks Corp.NTT Communications Corp.RealNames Corp.

    Sabre Holdings Corp.SAP AG

  • 8/3/2019 shubham bhattacharya

    25/26

    Conclusion XML andMicrosoft

    Microsoft is committed to:the developerbuilding and delivering web serviceenabling platforms and developer toolsstandards leadershipproviding a strong development communityfor support and guidance.NET Framework and XML adoption acrossour product offering

  • 8/3/2019 shubham bhattacharya

    26/26

    FAQ

Embed Size (px)
Recommended