Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R....
-
date post
21-Dec-2015 -
Category
Documents
-
view
222 -
download
2
Transcript of Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R....
![Page 1: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/1.jpg)
Introduction to XML
Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others
Tools
Tools
WebWebServicesServices
Integration & Integration & InteroperabilityInteroperability
Data
(X
ML)
Data
(X
ML)
![Page 2: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/2.jpg)
Such Format, which Describes the Content of a Web Document Rather than the Way to Display it, is among the Basic Needs of the Intelligent Web Applications
![Page 3: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/3.jpg)
Introduction
XML is a text-based markup language that is fast becoming the standard for data interchange on the Web.
As HTML, XML uses tags. But unlike HTML, XML tags identify the data, rather than
specifying how to display it. Where an HTML tag says something like "display this data
in bold font" (<b>...</b>), an XML tag acts like a field name in your program. It puts a label on a piece of data that identifies it (for example: <message>...</message>).
![Page 4: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/4.jpg)
HTML vs. XML<h1> Bibliography </h1>
<p> <i> Foundations of DBs</i>, Abiteboul, Hull, Vianu
<br> Addison-Wesley, 1995
<p> <i> Logics for DBs and ISs </i>, Chomicki, Saake, eds.
<br> Kluwer, 1998
<biobliography>
<book> <title> Foundations of DBs </title>
<author> Abiteboul </author>
<author> Hull </author>
<author> Vianu </author>
<publisher> Addison-Wesley </publisher>
....
.</book>
<book> ... <editor> Chomicki </editor>... </book> ...
</bibliography>
HTML tags: presentation,
generic document structure
XML tags: content,
"semantic", (DTD-) specific
![Page 5: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/5.jpg)
External Presentations from XML
<address> <name>Xaver M. Linde</name> <street>Wikingerufer 7</street> <town>10555 Berlin</town></address>
XML Markup:
Xaver M. LindeWikingerufer 710555 Berlin
External Presentations:
XML stylesheets are,e.g., usable to generatedifferent presentations
Xaver M. LindeWikingerufer 710555 Berlin. . .
![Page 6: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/6.jpg)
<address> <name>Xaver M. Linde</name> <place> <street>Wikingerufer 7</street> <town>10555 Berlin</town> </place></address>
XML to XML Transformations
<address> <name>Xaver M. Linde</name> <street>Wikingerufer 7</street> <town>10555 Berlin</town></address>
XML Markup 1:
XML Markup 2:XML stylesheets arealso usable to transformXML representations
![Page 7: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/7.jpg)
<address> <name>Xaver M. Linde</name> <street>Wikingerufer 7</street> <town>10555 Berlin</town></address>
WHERE <address> <name>Xaver M. Linde</name> <street>$s</street> <town>$t</town> </address>CONSTRUCT <binding> <s>$s</s> <t>$t</t> </binding>
XML Queries
XML Markup:
XML Query (XML-QL):
XML queries canselect subelementsof XML elements
element
ssubelements
<binding> <s>Wikingerufer 7</s> <t>10555 Berlin</t> </binding>
![Page 8: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/8.jpg)
PART_OF and HAS_PART Example
HAS_PART
PART_OFkitchen
flat
kitchenflatHAS_PART
PART_OF
![Page 9: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/9.jpg)
XML
<FLAT> kitchen </FLAT>
![Page 10: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/10.jpg)
Role of an Object
to be place for making food in kitchen
flat
kitchenflatto be place for making food in
![Page 11: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/11.jpg)
XML
<FLAT>
<PLACE FOR MAKING FOOD> kitchen </PLACE FOR MAKING FOOD>
</FLAT>
![Page 12: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/12.jpg)
Multi-Roles Object
Vagan
University of Kharkov
to be Head of Department
to be a lecturer
to be Head of Research Lab.
to be Member of Council
to be Head of Exchange Programs
![Page 13: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/13.jpg)
XML (1)
<UNIVERSITY OF KHARKOV>
<MEMBER OF COUNCIL> Vagan </MEMBER OF COUNCIL>
<HEAD OF EXCHANGE PROGRAM> Vagan </HEAD OF EXCHANGE PROGRAM>
<HEAD OF DEPARTMENT> Vagan </HEAD OF DEPARTMENT>
<HEAD OF RESEARCH LAB> Vagan </ HEAD OF RESEARCH LAB>
<LECTURER> Vagan </LECTURER>
</UNIVERSITY OF KHARKOV>
![Page 14: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/14.jpg)
XML (2)
<VAGAN>
<ROLES IN UNIVERSITY OF KHARKOV>
<ROLE 1> Member of Council </ROLE 1>
<ROLE 2> Head of Exchange Program </ROLE 2>
<ROLE 3> Head of Department </ROLE 3>
<ROLE 4> Head of Research Lab </ROLE 4>
<ROLE 5> Lecturer </ROLE 5>
</ROLES IN UNIVERSITY OF KHARKOV>
</VAGAN>
![Page 15: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/15.jpg)
XML (3)
<UNIVERSITY OF KHARKOV>
<ROLE type = “MEMBER OF COUNCIL”> Vagan </ROLE>
<ROLE type = “HEAD OF EXCHANGE PROGRAM”> Vagan </ROLE>
<ROLE type = “HEAD OF DEPARTMENT”> Vagan </ROLE>
<ROLE type = “HEAD OF RESEARCH LAB”> Vagan </ROLE>
<ROLE type = “LECTURER”> Vagan </ROLE>
</UNIVERSITY OF KHARKOV>
![Page 16: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/16.jpg)
Multi-Contextual Role of Object
University of Jyvaskyla
Vagan
University of Kharkov
to be Head of AI Departmentto be a lecturer
![Page 17: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/17.jpg)
XML (1)
<VAGAN>
<ROLE IN UNIVERSITY OF KHARKOV>
Head of Department
</ROLE IN UNIVERSITY OF KHARKOV>
<ROLE IN UNIVERSITY OF JYVASKYLA>
Lecturer
</ROLE IN UNIVERSITY OF JYVASKYLA >
</VAGAN>
![Page 18: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/18.jpg)
XML (2)
<VAGAN>
<ROLE place = “UNIVERSITY OF KHARKOV”> Head of Department </ROLE>
<ROLE place = “UNIVERSITY OF JYVASKYLA” > Lecturer </ROLE>
</VAGAN>
![Page 19: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/19.jpg)
Multilevel Context Roles
Vagan
Kharkov University
AI Department
Ukraine... citizen
... employer
... Head
![Page 20: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/20.jpg)
XML<COUNTRY>
<NAME> Ukraine </NAME>
<LEADING UNIVERSITY>
<NAME> Kharkov University </NAME>
<BEST DEPARTMENT>
<NAME> AI Department </NAME>
<HEAD>
<NAME> Vagan </NAME>
</HEAD>
</BEST DEPARTMENT>
</LEADING UNIVERSITY>
</COUNTRY>
Not enough
![Page 21: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/21.jpg)
Contents
XML SpecificationDocument Type DefinitionsCascading Style SheetsQuerying XML
![Page 22: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/22.jpg)
XML Specification
![Page 23: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/23.jpg)
Elements, Attributes, and Values
XML uses the same building blocks as HTML, elements, attributes, and values
Elements contain attributesAttributes contain valuesValues contained in quotations (“ ”)
![Page 24: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/24.jpg)
Simple XML Element (no attributes)
<position>professor</position>
name of the element
opening tag closing tag
name of the element
content of the element
![Page 25: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/25.jpg)
Simple XML Element
<position>professor
</position>
<position>professor</position>is equivalent to
<diagnosis>professor
</diagnosis>
is different with
![Page 26: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/26.jpg)
XML Element with Attribute
<position place = “university”>professor</position>
name ofthe element
opening tag closing tag
name ofthe element
content of the element
attribute ofthe element
value ofthe attribute
![Page 27: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/27.jpg)
XML Element with Two Attributes
<position place = “university” type = “teaching”>
professor
</position>
![Page 28: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/28.jpg)
XML Element with Two Attributes
<position place = “university” type = “teaching”>
professor
</position>
<position>
<name>professor</name>
<place>university</place>
<type>teaching</type>
</position>
is similar but not equivalent to
![Page 29: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/29.jpg)
Do Not Forget to Put Quotations
… place = “university”...
quotations are obligatory
around the value of an attribute
![Page 30: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/30.jpg)
Nominal vs. Numerical Attributes
<price currency = “Euro”>
49.90
</price>
<constant value = “3.14”>
</constant >
![Page 31: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/31.jpg)
Empty Element
<position/>
name of the element
opening and closing tags are merged together
<position></position>
is equivalent to
![Page 32: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/32.jpg)
Empty Element with Attribute
<picture location = “/images/blueball.gif”/>
<picture location = “/images/blueball.gif”></picture>
is equivalent to
![Page 33: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/33.jpg)
Tags Must be Nested Correctly
<department>
<head>
vagan
</head>
</department>
<department>
<head>
vagan
</department>
</head>
![Page 34: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/34.jpg)
Case Matters
<department>
Artificial Intelligence
</department>
<Department>
Artificial Intelligence
</Department>
is not the same as
<Department>
Artificial Intelligence
</department>
![Page 35: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/35.jpg)
A Root Element is Required
<CS_Faculty>
<department>
Artificial Intelligence
</department>
<department>
Information Systems
</department>
</CS_Faculty>
<department>
Artificial Intelligence
</department>
<department>
Information Systems
</department>
![Page 36: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/36.jpg)
Writing five special symbols
To write the five special symbols:Type & for ampersand (&)Type < for the less than sign (<)Type > for the greater than sign (>)Type " to create a double quote (“)Type &apos to create an apostrophe (‘)
![Page 37: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/37.jpg)
Declaring the XML Version
At the very beginning of the document type: <?xml
Then type: version=“1.0”Type: ?>
<?xml version=“1.0” ?>
![Page 38: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/38.jpg)
Declaring the XML VersionObligatory and Optional Attributes
<?xml version=“number”
[encoding=“encoding”]
[standalone=“yes|no”] ?>
optionaloptional
obligatory
![Page 39: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/39.jpg)
Encoding Attribute
<?xml version=“1.0” encoding=“US-ASCII” ?>
![Page 40: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/40.jpg)
Encoding Attribute ValuesUS-ASCIIUS-ASCII is a 7-bit encoding scheme that covers the English-language alphabet.
UTF-8UTF-8 is an 8-bit encoding scheme. Characters from the English-language alphabet are all encoded using an 8-bit bytes. Characters for other languages are encoding using 2, 3 or even 4 bytes. UTF-8 therefore produces compact documents for the English language, but very large documents for other languages.
UTF-16UTF-16 is a 16-bit encoding scheme. It is large enough to encode all the characters from all the alphabets in the world, with the exception of ideogram-based languages like Chinese. All characters in UTF-16 are encoded using 2 bytes. An English-language document that uses UTF-16 will be twice as large as the same document encoded using UTF-8. Documents written in other languages, however, will be far smaller using UTF-16.
![Page 41: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/41.jpg)
Standalone Attribute
<?xml version=“1.0” standalone=“no” ?>
<?xml version=“1.0” standalone=“yes” ?>
An outside DTD is needed to correctly interpret the XML document
An outside DTD is not needed
DTD (Document Type Definition) is a file which describes the elements and attributes that may appear in the XML document and used to check its syntactical structure
The optional standalone attribute in XML declaration specifies whether a DTD is required to parse the document. The value must be “yes” or “no”.
![Page 42: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/42.jpg)
Writing comments
To write comments:Type <!--Write the desired commentsType -->
<!-- This is a comment -->
![Page 43: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/43.jpg)
Namespaces
Namespaces are a recent addition to the XML specification. The use of namespaces is not mandatory in XML, but it's often wise.
Namespaces were created to ensure uniqueness among XML elements.
![Page 44: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/44.jpg)
<CS_Faculty xmlns = ‘http://www.academic.com’>
…
</CS_Faculty>
Namespaces
element Value - namespace identifier (URL)Attribute - XML
namespace
area of validity of the namespace
![Page 45: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/45.jpg)
Namespace Prefix
<stock xmlns:edi='http://ecommerce.org/schema'> <!-- the 'price' element's namespace is http://ecommerce.org/schema -->
< edi :price units='Euro'>32.18</edi:price> ... </ stock >
Namespace prefix
![Page 46: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/46.jpg)
Document Type Definitions
![Page 47: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/47.jpg)
Document type definitions
A DTD specifies how elements inside an XML document should relate to each other
It also provides grammar rules for the document and each of the elements
A document that fits to the XML specifications and rules outlined by its DTD is considered to be “valid”
(Not to be confused with a well-formed document, which adheres to XML syntax rules
![Page 48: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/48.jpg)
Declaring DTD in XML Document
<!DOCTYPE CS_Faculty SYSTEM “faculty.dtd”>
keywordfile with DTDroot element
in XML file
Denotes that DTD resides in a separate local file
![Page 49: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/49.jpg)
Declaring DTD in XML Document<?xml version=“1.0” standalone=“no” ?>
<!DOCTYPE CS_Faculty SYSTEM “faculty.dtd”>
<!-- Here begins the XML data -->
<CS_Faculty> <department> Artificial Intelligence </department> <department> Information Systems </department></CS_Faculty>
![Page 50: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/50.jpg)
Declaring an internal DTD
At the top of the XML document, after the XML declaration, type:
<! DOCTYPE root[where root corresponds to the name of the root element in the document that the DTD will be applied to.
Type: ]> to complete the DTD.
![Page 51: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/51.jpg)
Example code
<? XML version=“1.0” ?>
<!DOCTYPE CS_Faculty [
]>
Leave room between [ and ] for document type definitions.
![Page 52: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/52.jpg)
Declaring a personal external DTD
In the XML declaration at the top of the document, add standalone =“no”
Type <!DOCTYPE root (name of root element)
Type SYSTEM to indicate that the external DTD is a personal, non-standardized DTD
Type file.dtd, where “file.dtd” is the DTD file
Type > to complete the document type declaration
![Page 53: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/53.jpg)
Writing a personal external DTDThus use declaration like:
Create a new text file faculty.dtd with a text editorDefine the rules for the DTD (document type
definitions for defining elements and attributes, and entities and notations)
Save the file as text only with the .dtd extension
<!DOCTYPE CS_Faculty SYSTEM “faculty.dtd”>
<?xml version=“1.0” standalone=“no” ?>
![Page 54: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/54.jpg)
Naming an external DTDType:
+ if DTD is approved by a standards body
- if DTD is not a recognized standard
Type:
// Owner//DTD where owner identifies who wrote or maintains the DTD
Type a space followed by a label for the DTD, then //XX// where XX defines the language
![Page 55: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/55.jpg)
Naming an external DTD (example)
- //Vagan Terziyan//DTD Faculties//EN//
Vagan Terziyan is the owner
Faculties is the DTD description
EN means the DTD is written in English
![Page 56: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/56.jpg)
Declaring a public external DTDIn the XML declaration at the top of the document, add
standalone =“no”
Type <!DOCTYPE root (name of root element)
Type PUBLIC to indicate that the external DTD is a standardized set of rules
Type “DTD_name” where DTD_name is the official name of the DTD you are referencing
Type file.dtd, where “file.dtd” is the DTD file
Type > to complete the document type declaration
![Page 57: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/57.jpg)
Example code
<?xml version =”1.0” standalone = “no”?>
<!DOCTYPE CS_Faculty PUBLIC
“- //Vagan Terziyan//DTD Faculties//EN//”
“http://www.ac.com/XML/examples/faculty.dtd”>
![Page 58: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/58.jpg)
Defining elements and attributes in a DTD
Type <!ELEMENT tagType name of the elementType EMPTY if no contentsSpecify contentsType (ANY) to allow any combination of
elements or text
TYPE > to complete the element declaration
![Page 59: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/59.jpg)
Defining an element to contain only text
Type: <!ELEMENTType: name of the element
Next type: (#PCDATA)Finally type: >
<!ELEMENT faculty (#PCDATA)>
![Page 60: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/60.jpg)
Defining an element to contain one child
Type: <!ELEMENTType: name of the element
Next type: (child of the element)Finally type: >
<!ELEMENT faculty (department)>
![Page 61: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/61.jpg)
Defining an element to contain a sequence
Type: <!ELEMENTType: name of the element
Type: (child1, child2 ,…, childn of the element)Type: >
<!ELEMENT faculty
(deans_office, department)>
![Page 62: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/62.jpg)
Defining choices
Type: <!ELEMENTType: name of the element
Type: (child1 | child2 | … | childn of the element)Type: >
<!ELEMENT faculty
(deans_office, (department | research_lab))>
![Page 63: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/63.jpg)
Defining how many units
To define how many units
Type ? To indicate that the unit can appear at most once, if at all (zero or one)
Type + to indicate that the unit must appear at least once (one or more)
Or type * to indicate that the unit can appear as many times as necessary, or not at all (zero or more)
![Page 64: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/64.jpg)
Defining how many units
<!ELEMENT faculty (deans_office, financial_office*, library?, (department+ | research_lab+))>
![Page 65: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/65.jpg)
About attributes
Attributes add information about an element
Information contained in attributes tends to be about the content of the page
Elements are perhaps better for information you want to display attributes for information about information
![Page 66: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/66.jpg)
Defining simple attributesType <!ATTLISTType elementType attributeType CDATA
Or type (choice_1 | choice_2)Type DEFAULT
or type #REQUIRED or type #IMPLIED
Type >attribute must be explicitly provided
attribute is optional
![Page 67: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/67.jpg)
Defining attributes example
<!ELEMENT slideshow (slide+)>
<!ATTLIST slideshow
title CDATA #REQUIRED
date CDATA #IMPLIED
author CDATA #REQUIRED
language (English | German) # IMPLIED
>
<!ELEMENT slide (title, item*)>
![Page 68: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/68.jpg)
Creating shortcuts for textPredefined Entities
In the DTD type <!ENTITYType abbreviationType “content”
Type >
![Page 69: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/69.jpg)
Using shortcuts for text
In the XML document type: &Type: abbreviation
where abbreviation is the identifying name of your
entity (and matches the one used in the previous
example)
Type: ;
![Page 70: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/70.jpg)
Example<!ENTITY product "WonderWidget"><!ENTITY products "WonderWidgets">
<slideshow title="WonderWidget&product; Slide Show" ...<!-- TITLE SLIDE --> <slide type="all"> <title>Wake up to WonderWidgets&products;!</title> </slide><!-- OVERVIEW --> <slide type="all"> <title>Overview</title> <item>Why <em>WonderWidgets&products;</em> are great</item> <item/> <item>Who <em>buys</em> WonderWidgets&products;</item> </slide>
![Page 71: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/71.jpg)
Cascading Style Sheets
![Page 72: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/72.jpg)
CSS
CSS was made to format XML documents for presentation
External Style sheets global control of presentation
![Page 73: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/73.jpg)
The Anatomy of Style
A style is made up of a selector and one or more declarations
Declarations determine how the chosen elements will be displayed
A selector can be as simple as an element name
Declarations have a property and a value: color:red or font:bold 12pt Tekton
![Page 74: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/74.jpg)
Creating an External Style SheetTo create a style sheet:Create a text documentType name of selector for elementsType { to begin the properties that
should be appliedDefine as many properties as desiredType } to mark the end of the rule
![Page 75: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/75.jpg)
Sample CSS code
name {display:block; position:absolute}intro {display:block; border:medium
dotted red; padding:5; margin-top:5}picture {display:block}population {display:inline}latin_name {display:inline}more_info {display:inline}
![Page 76: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/76.jpg)
Calling a Style Sheet for an XML Document
To create the processing instruction manually:At the top of the document, after the initial XML
declaration, type:
<?xml-stylesheet type=“text/css”Then type: href=“style.css”Finally, type: ?> to complete the processing
instruction
<?xml-stylesheet type=“text/css” href=“style.css” ?>
![Page 77: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/77.jpg)
Setting the Text Color
To set the text color:Type color:Type colorname, where colorname is one of
16 predefined colorsOr type #rrggbb, or rgb (r,g,b) where each
can be a value from 0-255Or rgb (%r,%g,%b) where r, g, b, specify the
percentage of red, green, or blue.
![Page 78: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/78.jpg)
Aligning Text
You can set up certain HTML tags to always be aligned to the right, left, center, or justified, as desired.
To align text:Type left to align text to the leftType right to align text to the rightType center to center the text in the middle of the
screenType justify to align the text on both the right and left
![Page 79: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/79.jpg)
Underlining Text
To underline text:Type text-decoration:To underline text type underlineFor a line above the text, type overlineTo strike out text, type line-throughTo get rid of underlining, overlining.
Etc., type text-decoration:none
![Page 80: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/80.jpg)
Querying XML
![Page 81: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/81.jpg)
A Query Language for XML: XML-QL
Designed in AT&T Labs (w. Alin Deutsch, Mary Fernandez, Daniela Florescu, Alon Levy)
Implementation on top of Strudel (Alin Deutsch, Mary Fernandez)
Prototype: http://www.research.att.com/sw/tools/xmlql
![Page 82: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/82.jpg)
XML-QL Example Data (bib.xml)
<bib> <book year=“1995> <title> An Introduction to DB Systems </title>
<author> <lastname> Date </lastname></author><publisher><name> Addison-Wesley</name> </publisher>
</book><book year=“1995>
<title> Foundations for OR Databases </title><author> <lastname> Date </lastname></author> <author> <lastname> Darwen </lastname></author> <publisher><name> Addison-Wesley</name> </publisher>
</book></bib>
![Page 83: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/83.jpg)
XML-QL Example Data (bib.dtd)
<!ELEMENT book (author+, title, publisher)>
<!ATTLIST book year CDATA>
<!ELEMENT article (author+, title, year?, (shortversion|longversion))>
<!ATTLIST article type CDATA>
<!ELEMENT publisher (name, address)>
<!ELEMENT author (firstname?, lastname)>
![Page 84: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/84.jpg)
Query ExampleFind all the names of the authors whose publisher is
Addison-Wesley:
WHERE <book>
<publisher><name> Addison-Wesley </name></publisher>
<title> $t </title>
<author> $a </author>
</book> IN "www.a.b.c/bib.xml"
CONSTRUCT $a
![Page 85: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/85.jpg)
Query Example (syntax)The use of </> instead of </XXX>:
WHERE <book>
<publisher><name> Addison-Wesley </></>
<title> $t </>
<author> $a </>
</> IN "www.a.b.c/bib.xml"
CONSTRUCT $a
![Page 86: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/86.jpg)
Result of the query:
The output is in XML form:
<lastname> Date </lastname>
<lastname> Darwen </lastname>
<lastname> Date </lastname>
![Page 87: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/87.jpg)
XML-QL: Pattern Matching and Selections
WHERE <book><publisher>Springer</publisher>
<author> $a </author>
<year> $y </year>
</book> IN "www.a.b.c/bib.xml”,
1991 <= $y AND $y <= 1994
CONSTRUCT $a
![Page 88: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/88.jpg)
XML-QLConstruction of New XML Data
WHERE <book> <publisher> Springer </>
<title> $t </>
<author> $a </>
</> IN "www.a.b.c/bib.xml"
CONSTRUCT <result> <author> $a </>
<title> $t </>
</>
![Page 89: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/89.jpg)
Constructing new XML data: (result)
<result>
<author> <lastname> Date </lastname> </author>
<title> An Introduction to DB Systems </title>
</result>
<result>
<author> <lastname> Date </lastname> </author>
<title> Foundation for OR Databases</title>
</result>
<result>
<author> <lastname> Darwen </lastname> </author>
<title> Foundation for Object/Relational Databases: The Third Manifesto </title>
</result>
![Page 90: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/90.jpg)
XML-QL Semantics
Step 1: find all substitutionsStep 2: construct XML result
WHERE $X..$Y..$Z
CONSTRUCT$ X $ Y $ Z
![Page 91: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/91.jpg)
Conclusions
XML is for structuring dataXML looks a bit like HTMLXML is text, but isn't meant to be readXML is a family of technologiesXML is modularXML is the basis for RDF and the Semantic WebXML is license-free, platform-independent and well-
supported
![Page 92: Introduction to XML Based on tutorials of B. Cormia, D. Suciu, H. Boley, S. Decker, M. Sintek, E. R. Harold and others Tools Web Services Integration &](https://reader036.fdocuments.in/reader036/viewer/2022062304/56649d5f5503460f94a4032a/html5/thumbnails/92.jpg)
Web Referenceshttp://www.xml.com/http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/
http://wdvl.com/http://www.xml.org/http://www.w3.org/http://www.microsoft/XML/http://www.ibm/alphaworks/http://www.arbortext.com/