CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad

45
CSC 330 E-Commerce CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad Virtual Campus, CIIT CIIT COMSATS Institute of Information Technology T2-Lecture-4 T2-Lecture-4

description

CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad Virtual Campus, CIIT COMSATS Institute of Information Technology T2-Lecture-4. eXtensible Markup Language (XML ). Part - II. For Lecture Material/Slides Thanks to: www.w3schools.com. - PowerPoint PPT Presentation

Transcript of CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad

Page 1: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

CSC 330 E-CommerceCSC 330 E-CommerceTeacher

Ahmed Mumtaz MustehsanAhmed Mumtaz Mustehsan GM-IT CIIT IslamabadGM-IT CIIT Islamabad

Virtual Campus, CIITCIITCOMSATS Institute of Information Technology

T2-Lecture-4T2-Lecture-4

Page 2: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

eXtensible Markup Language eXtensible Markup Language (XML)(XML)

Part - IIPart - II

For Lecture Material/Slides Thanks to: www.w3schools.com

Page 3: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

ObjectivesObjectives

XML Elements are extensibleXML AttributesXML NamespacesXML EncodingViewing XML Files

3 T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 4: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Elements are ExtensibleXML Elements are Extensible

4

XML elements can be extended to carry more information. Look at the following XML example:

◦ <note><to>mumtaz</to><from>tariq</from><body> Don't forget to attend party on weekend!</body></note>

Let's imagine that we created an application that extracted the <to>, <from>, and <body> elements from the XML document to produce this output:

T2-Lecture-3 Ahmed Mumtaz Mustehsan www.w3schools.com

MessageTo: MumtazFrom: TariqDon't forget to attend party on weekend!

Page 5: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Elements are Extensible…XML Elements are Extensible…

5

Imagine that the author of the XML document added some extra information to it:

<note><date>2008-01-10</date><to>Mumtaz</to><from>Tariq</from><heading>Reminder</heading><body> Don't forget to attend party on weekend!</body></note>

Should the application break or crash? No. The application should still be able to find the <to>,

<from>, and <body> elements in the XML document and produce the same output.

One of the beauty of XML, is that it can be extended without breaking applications.

T2-Lecture-3 Ahmed Mumtaz Mustehsan www.w3schools.com

MessageTo: MumtazFrom: TariqDon't forget to attend party on weekend!

Page 6: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML AttributesXML Attributes

Page 7: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML AttributesXML Attributes

7

In HTML, attributes provide additional information about elements:

<img src="smiley.gif" alt="Smiley face" width="42" height="42">

XML elements can have attributes, just like HTML.Attributes often provide information that is not a part

of the data but it is information about data.

Example

<file type="gif">computer.gif</file>The file type is irrelevant to the data, but can be

important to the software that wants to manipulate the element:

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 8: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Attributes Must be QuotedXML Attributes Must be Quoted

8

Attribute values must always be quoted. Either single or double quotes can be used.

Example:

For a person's sex, the person element can be written like this:

<person sex="female">

or like this:

<person sex='female'>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 9: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Attributes Must be QuotedXML Attributes Must be Quoted

9

If the attribute value itself contains double quotes we can use single quotes.

Example:

<University head = ‘ Rector “COMSATS" Institute'>

or you can use character entities:

<University head = ‘ Rector &quot;COMSATS&quot; Institute'>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 10: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Elements vs. AttributesXML Elements vs. Attributes

10

Example-1:

<person sex="female“ >  <firstname> Amna </firstname>  <lastname> Atif </lastname></person>

Example-2:

<person>  <sex>female</sex>  <firstname>Amna</firstname>  <lastname>Atif</lastname></person>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 11: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Elements vs. Attributes…XML Elements vs. Attributes…

11

In Example-1, sex is an attribute.

In Example-2, sex is an element.

Both examples provide the same information.Although there are no rules about when to use attributes or when to use elements, Attributes are handy in HTML.

However:

Recommendations are:

In XML avoid attribute and use elements.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 12: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML: Different ways to define information. XML: Different ways to define information.

12

In XML documents the same information can be presented in different ways.

The date is presented in three different ways:

Example-1:A date is defined as an attribute:

<note date="10/01/2008“ >  <to>Mumtaz</to>  <from>Tariq</from>  <heading>Reminder</heading>  <body>Don't forget me this weekend!</body></note>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 13: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML: Different ways to define information.XML: Different ways to define information.

13

Example-2:A date is defined as an element :

◦ <note>  <date>10/01/2008</date>  <to>Mumtaz</to>  <from>Tariq</from>  <heading>Reminder</heading>  <body>Don't forget me this weekend!</body></note>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 14: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML: Different ways to define information.XML: Different ways to define information.

14

Example-3:A date is defined as an expanded date element:

<note>  <date>    <day>27</day>    <month>05</month>    <year>2009</year>  </date>  <to>Mumtaz</to>  <from>Tariq</from>  <heading>Reminder</heading>  <body>Don't forget me this weekend!</body></note>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 15: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Avoid XML Attributes?Avoid XML Attributes?

15

Some of the problems with using attributes are:attributes cannot contain multiple values (elements can)attributes cannot contain tree structures (elements can)attributes are not easily expandable (for future changes)Attributes are difficult to read and maintain. Recommendations:Use elements for data. Use attributes for information that is not relevant to the data.Don't end up like this:

◦ <note day="10" month="01" year="2008"to="Tove" from="Jani" heading="Reminder"body="Don't forget me this weekend!"></note>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 16: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Attributes for MetadataXML Attributes for Metadata

16

Sometimes ID references are assigned to elements. These IDs can be used to identify XML elements the same

way as the id attribute in HTML. Example:

<messages>  <note id="501“ >    <to>mumtaz</to>    <from>tariq</from>    <heading>Reminder</heading>    <body>Don't forget me this weekend!</body>  </note>  <note id="502“ >    <to>mumtaz</to>    <from>tariq</from>    <heading>Re: Reminder</heading>    <body> Thank you for attending the party</body>  </note></messages>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 17: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Attributes for Metadata…XML Attributes for Metadata…

17

The id attributes above are for identifying the different notes.

It is not a part of the note itself.

Recommendations:Metadata (data about data) should be stored as

attributes, and the data itself should be stored as elements.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 18: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML NamespacesXML Namespaces

Page 19: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Before we Begin: a review of URIBefore we Begin: a review of URI

19

Uniform Resource Identifier (URI) :A Uniform Resource Identifier (URI) is a string of characters which identifies an Internet Resource.The most common URI is the Uniform Resource Locator (URL) which identifies an Internet domain address. Another, not so common type of URI is the Universal Resource Name (URN).

In our examples we will only use URLs.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 20: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML NamespacesXML Namespaces

20

In XML, element names are defined by the developer. This often results in a conflict when trying to mix XML documents from different XML applications.

XML Namespaces provide a method to avoid element name conflicts.

Example-1:This XML example carries HTML table information:

<table>  <tr>    <td>Apples</td>    <td>Bananas</td>  </tr></table>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 21: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Namespaces…XML Namespaces…

21

Example-2:This XML example carries information about a table (a piece of furniture):

<table>  <name>African Coffee Table</name>  <width>80</width>  <length>120</length></table>

If these XML fragments were added together, there would be a name conflict. Both contain a <table> element, but the elements have different content and meaning.A user or an XML application will not know how to handle these differences.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 22: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Solving the Name Conflict Using a PrefixSolving the Name Conflict Using a Prefix

22

Name conflicts in XML can easily be avoided using a name prefix.

This XML carries information about an HTML table, and a piece of furniture:◦ <h:table>

  <h:tr>    <h:td>Apples</h:td>    <h:td>Bananas</h:td>  </h:tr></h:table>

<f:table>  <f:name>African Coffee Table</f:name>  <f:width>80</f:width>  <f:length>120</f:length></f:table>

In the example above, there will be no conflict because the two <table> elements have different names. But are we allowed to use prefix with a : ?

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 23: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Namespaces : The XML Namespaces : The xmlnsxmlns Attribute Attribute

23

When using prefixes in XML namespacenamespace for the prefix must be defined.The namespace is defined by the xmlns attributexmlns attribute in the start tag of an element.The namespace declaration has the following syntax:

Example

xmlns:prefix="URI". <h:table xmlns:h="http://www.w3.org/TR/html4/">

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 24: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Namespaces - The XML Namespaces - The xmlnsxmlns Attribute Attribute

24

The namespace declaration as an attribute can be defined:Example-1: each attribute is defined with separate xmsnsxmsns

<root>

<h:table xmlns:h="http://www.w3.org/TR/html4/">  <h:tr>    <h:td>Apples</h:td>    <h:td>Bananas</h:td>  </h:tr></h:table>

<f:table xmlns:f="http://www.w3schools.com/furniture">  <f:name>African Coffee Table</f:name>  <f:width>80</f:width>  <f:length>120</f:length></f:table>

</root>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 25: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML Namespaces - The xmlns Attribute…XML Namespaces - The xmlns Attribute…

25

The namespace declaration as an attribute can be defined:Example-1: each attribute is defined with combined xmsns definationxmsns defination

<root xmlns:h="http://www.w3.org/TR/html4/"xmlns:f="http://www.w3schools.com/furniture">

<h:table>  <h:tr>    <h:td>Apples</h:td>    <h:td>Bananas</h:td>  </h:tr></h:table>

<f:table>  <f:name>African Coffee Table</f:name>  <f:width>80</f:width>  <f:length>120</f:length></f:table>

</root>Note: The namespace URI is not used by the parser to look up information.The purpose is to give the namespace a unique name. However, often companies use the namespace as a pointer to a web page containing namespace information.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 26: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Default NamespacesDefault Namespaces

26

Defining a default namespace for an element saves us from using prefixes in all the child elements. It has the following syntax:

xmlns="namespaceURI"Example:1.This XML carries HTML table information:

<table xmlns="http://www.w3.org/TR/html4/">  <tr>    <td>Apples</td>    <td>Bananas</td>  </tr></table>

2.This XML carries information about a piece of furniture:<table xmlns="http://www.w3schools.com/furniture">  <name>African Coffee Table</name>  <width>80</width>  <length>120</length></table>

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 27: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML EncodingXML Encoding

Page 28: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML EncodingXML Encoding

28

XML documents may contain international characters, like Norwegian æøå, or French êèé.

To avoid errors, we should specify the encoding used, or save the XML files as UTF-8.

Character Encoding◦ Character encoding defines a unique binary code

for each different character used in a document.◦ In computer terms, character encoding are also

called character set, character map, code set, and code page.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 29: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

UnicodeUnicode

29

Unicode is an industry standard for character encoding of text documents.

It defines (nearly) every possible international character by a name and a number.

Unicode has two variants: UTF-8 and UTF-16.UTF = Universal character set Transformation Format.UTF-8 uses a single byte (8-bits) to represent

commonly used characters and two (or three) bytes for the rest.

UTF-16 uses two bytes (16 bits) for most characters, and three bytes for the rest.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 30: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

UTF-8 - The Web StandardUTF-8 - The Web Standard

30

UTF-8 is the standard character encoding on the web.

It (UTF-8) is the default character encoding for:

HTML-5, CSS, JavaScript, PHP, SQL, and XML.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 31: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML EncodingXML Encoding

31

The first line in an XML document is called the prolog:

<?xml version="1.0"?> The prolog is optional. Normally it contains the XML

version number. It can also contain information about the encoding used in

the document. This prolog specifies UTF-8 encoding:

<?xml version="1.0" encoding="UTF-8"?> The XML standard states that all XML software must

understand both UTF-8 and UTF-16. UTF-8 is the default for documents without encoding

information. In addition, most XML software systems understand

encodings like ISO-8859-1, Windows-1252, and ASCII.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 32: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML ErrorsXML Errors

32

Most often, ◦ XML documents are created on one computer. ◦ uploaded to a server on a second computer, ◦ displayed by a browser on a third computer.

If the encoding is not correctly interpreted by all the three computers, the browser might display meaningless text, or you might get an error message.

Example:

“This XML file does not appear to have any style information associated with it.”

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 33: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

ConclusionConclusion

33

When you write an XML document:

Use an XML editor that supports encodingMake sure you know what encoding the editor usesDescribe the encoding in the encoding attributeUTF-8 is the safest encoding to use which is a web standard

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 34: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Viewing XML FilesViewing XML Files

Page 35: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Viewing XML FilesViewing XML Files

35

Raw XML files can be viewed in all major browsers. Don't expect XML files to be displayed as HTML pages.

<?xml version="1.0" encoding="UTF-8"?> - <note>       <to>mumtaz</to>       <from>tariq</from>       <heading>Reminder</heading>       <body>Don't forget me this weekend!</body>

   </note>

The XML document will be displayed with color-coded root and child elements. A plus (+) or minus sign (-) to the left of the elements can be clicked to expand or collapse the element structure. To view the raw XML source (without the + and - signs), select "View Page Source" or "View Source" from the browser menu.

Note: In Safari, only the element text will be displayed. To view the raw XML, you must right click the page and select "View Source"

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 36: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Viewing an Invalid XML FileViewing an Invalid XML File

36

If an erroneous XML file is opened, some browsers might report the error, some may display it incorrectly.

Try to open this XML file in different browsers:

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 37: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Why Does XML Display Like This?Why Does XML Display Like This?

37

XML documents do not carry information about how to display the data.

Since XML tags are "invented" by the author of the XML document, browsers do not know if a tag like <table> describes an HTML table or a dining table.

Without any information about how to display the data, most browsers will just display the XML document as it is.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com

Page 38: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

The second line links the XML file to the CSS file:The second line links the XML file to the CSS file:

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/css" href="cd_catalog.css"?><CATALOG>  <CD>    <TITLE>Empire Burlesque</TITLE>    <ARTIST>Bob Dylan</ARTIST>    <COUNTRY>USA</COUNTRY>    <COMPANY>Columbia</COMPANY>    <PRICE>10.90</PRICE>    <YEAR>1985</YEAR>  </CD>  <CD>    <TITLE>Hide your heart</TITLE>    <ARTIST>Bonnie Tyler</ARTIST>    <COUNTRY>UK</COUNTRY>    <COMPANY>CBS Records</COMPANY>    <PRICE>9.90</PRICE>    <YEAR>1988</YEAR>  </CD>...</CATALOG>

A Section of the XML file. A Section of the XML file.

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com38

Page 39: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

It is possible to use CSS to format an XML document.Below is an example of how to use a CSS style sheet

to format an XML document:Take a look at this XML file: The CD catalogThen look at this style sheet: The CSS fileFinally, view: 

The CD catalog formatted with the CSS file

Displaying your XML Files with CSSDisplaying your XML Files with CSS

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com39

Page 40: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XML TechnologiesXML Technologies

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com40

Some XML Technologies:•XML XSLT•XML Xpath•XML Xlink•XML Xpointer•XML Xquery•Recommended by W3C

Page 41: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

Displaying XML with XSLTXSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language for XML.XSLT is far more sophisticated than CSS. Elements and attributes can be added/removed Elements can also be rearranged and sorted, perform tests and make decisions about which elements to hide and display, etc.XSLT uses XPath to find information in an XML document.

XML - XSLTXML - XSLT

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com41

Page 42: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XPath is Used in XSLTXPath is a syntax for defining parts of an XML documentXPath uses path expressions to navigate in XML documentsXPath contains a library of standard functionsXPath is a major element in XSLTXPath is also used in XQuery, XPointer and XLink

XML - XpathXML - Xpath

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com42

Page 43: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XLink is used to create hyperlinks within XML documents

Any element in an XML document can behave as a link

XLink supports simple links (like HTML) and extended links (for linking multiple resources together)

With XLink, the links can be defined outside the linked files

XLink is a W3C Recommendation

XML - XLinkXML - XLink

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com43

Page 44: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

XPointer allows the links to point to specific parts of an XML document

XPointer uses XPath expressions to navigate in the XML document

XPointer is a W3C Recommendation

XML - XPointerXML - XPointer

T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com44

Page 45: CSC 330 E-Commerce Teacher   Ahmed Mumtaz  Mustehsan            GM-IT CIIT Islamabad

The End XML Part-IIThe End XML Part-IIT2-Lecture-4T2-Lecture-4

Thank YouThank You

45T2-Lecture-4 Ahmed Mumtaz Mustehsan www.w3schools.com