Introduction to XML - KTH to XML XML Document Type Deï¬nition, DTD XML Namespaces XML Schema XML Processors Other XML Standards Section XML

  • View
    233

  • Download
    2

Embed Size (px)

Text of Introduction to XML - KTH to XML XML Document Type Deï¬nition, DTD XML Namespaces XML...

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XMLInternet Applications, ID1354

    1 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Contents

    XML

    Document Type Definition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XML Standards

    2 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Section

    XML

    Document Type Definition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XML Standards

    3 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    What Is XML?

    I XML is a meta-markup language that canbe used to define markup languages, forany kind of information.

    I XML is not a replacement for HTML.

    I HTML is a markup language used todescribe the parts of a document. HTMLmight be defined using XML.

    4 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    What Is XML?

    I XML is a meta-markup language that canbe used to define markup languages, forany kind of information.

    I XML is not a replacement for HTML.I HTML is a markup language used to

    describe the parts of a document. HTMLmight be defined using XML.

    4 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    What Is XML?

    I XML is a meta-markup language that canbe used to define markup languages, forany kind of information.

    I XML is not a replacement for HTML.I HTML is a markup language used to

    describe the parts of a document. HTMLmight be defined using XML.

    4 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML

    I XML is a universal way of storing andtransferring data of any kind.

    I Specification maintained by W3C.I All documents written with an XML-derived

    markup language can be parsed with thesame parser.

    5 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML

    I XML is a universal way of storing andtransferring data of any kind.

    I Specification maintained by W3C.

    I All documents written with an XML-derivedmarkup language can be parsed with thesame parser.

    5 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML

    I XML is a universal way of storing andtransferring data of any kind.

    I Specification maintained by W3C.I All documents written with an XML-derived

    markup language can be parsed with thesame parser.

    5 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML

    I XML is a universal way of storing andtransferring data of any kind.

    I Specification maintained by W3C.I All documents written with an XML-derived

    markup language can be parsed with thesame parser.

    5 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML (Contd)

    I An XML document contains only text.I Data is marked up using tags:

    Stina

    I Human readable and machine readable.

    6 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML (Contd)

    I An XML document contains only text.I Data is marked up using tags:

    Stina

    I Human readable and machine readable.

    6 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Introduction to XML (Contd)

    I An XML document contains only text.I Data is marked up using tags:

    Stina

    I Human readable and machine readable.

    6 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology

    I An XML-based markup language is a tagset, or an XML application.

    I A document using an XML-based markuplanguage is an XML document.

    I An XML processor is a program that parsesXML documents and provides the parts toan application.

    7 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology

    I An XML-based markup language is a tagset, or an XML application.

    I A document using an XML-based markuplanguage is an XML document.

    I An XML processor is a program that parsesXML documents and provides the parts toan application.

    7 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology

    I An XML-based markup language is a tagset, or an XML application.

    I A document using an XML-based markuplanguage is an XML document.

    I An XML processor is a program that parsesXML documents and provides the parts toan application.

    7 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology (Contd)

    I A tag defines an element. The XML belowhas the opening tag , the closingtag and the whole line is anelement.Sara

    I The text between the opening and closingtag, Sara in the example above, is theelements content.

    8 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology (Contd)

    I A tag defines an element. The XML belowhas the opening tag , the closingtag and the whole line is anelement.Sara

    I The text between the opening and closingtag, Sara in the example above, is theelements content.

    8 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology (Contd)

    I There are empty elements,.

    I Tags may have attributes,.

    I A nested element is located between thestart and end tags of another element, asOlle in the xml below.

    Olle

    9 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology (Contd)

    I There are empty elements,.

    I Tags may have attributes,.

    I A nested element is located between thestart and end tags of another element, asOlle in the xml below.

    Olle

    9 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Terminology (Contd)

    I There are empty elements,.

    I Tags may have attributes,.

    I A nested element is located between thestart and end tags of another element, asOlle in the xml below.

    Olle

    9 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    An Example

    10 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    Another Example

    11 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    XML Syntax

    I The syntax of XML is divided in two distinctlevels.

    1. The general low-level rules that apply to allXML documents and tag sets.

    2. A particular XML tag set, defined with either aDocument Type Definition (DTD) or an XMLschema.

    12 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    XML Syntax

    I The syntax of XML is divided in two distinctlevels.

    1. The general low-level rules that apply to allXML documents and tag sets.

    2. A particular XML tag set, defined with either aDocument Type Definition (DTD) or an XMLschema.

    12 / 66

  • Introduction to XML

    XML

    Document TypeDefinition, DTD

    XML Namespaces

    XML Schema

    XML Processors

    Other XMLStandards

    XML Syntax

    I The syntax of XML is divided in two distinctlevels.

    1. The general low-level rules that apply to allXML documents and tag sets.

    2. A particular XML tag set, defined with either aDocument Type De

Recommended

View more >