Presentation is loading. Please wait.

Presentation is loading. Please wait.

More Sample XML By Sadia Anjum.

Similar presentations


Presentation on theme: "More Sample XML By Sadia Anjum."— Presentation transcript:

1 More Sample XML By Sadia Anjum

2 XML (Extensible Markup Language)
XML is a markup language for describing structured data– content is separated from presentation. Because an XML document contains only data, applications decide how to display the data.

3 XSL (Extensible Style sheet Language)
Because XML tags describe the data they contain, it is possible to search, sort, manipulate and render an XML document using related technologies such as XSL. An XSL document provides the rules for displaying an XML document’s data. XSL also provides elements that defines rules for how one XML document is transformed into another text- based document. The subset of XSL concerned with transformations is called XSL Transformations (XSLT).

4 DOM (Document Object Model)
The Document Object Model hierarchical tree structure is made up of nodes. A node that contains other nodes (called child nodes) is called parent node. Nodes that are peers are called sibling nodes. The DOM has a single root node that contains all other nodes in the document.

5 DOM (Document Object Model)
Each node is an object that has properties, methods and events. These properties, methods and events are exposed by the XML parser as a programmatic library– called an Application programming Interface (API). Any node in the DOM can be represented with object XMLDOMNode.

6 DOM (Document Object Model)
The DOM API provides object XMLDOMElement for manipulating nodes that are elements and object XMLDOMAttribute for manipulating nodes that are attributes. In the DOM, the entire XML document is represented by a DOMDocument object– which includes the root node and all its child nodes. If we wish to programmatically access a document’s content we must create a DomDocument object.

7 Example using XSL style sheets
A contact list database in XML .XSL file

8 Questions (True/False)
The subset of XSL concerned with transformations is called XSL Transformations (XSLT). The DOM has a single root node that does not contain all other nodes in the document. Any node in the DOM can be represented with object XMLDOMNode. Data placed between <!CDATA[ and ]]> is parsed by the XML parser. Element xsl:stylesheet defines an XML stylesheet.


Download ppt "More Sample XML By Sadia Anjum."

Similar presentations


Ads by Google