Download presentation
Presentation is loading. Please wait.
Published bySuzan Holland Modified over 9 years ago
1
XML Presented by Kushan Athukorala
2
2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT
3
3 The Difference Between XML and HTML XML was designed to transport and store data, with focus on what data is. HTML was designed to display data, with focus on how data looks.
4
4 XML XML Simplifies Data Sharing In the real world, computer systems and databases contain data in incompatible formats. XML Simplifies Data Transport With XML, data can easily be exchanged between incompatible systems. XML Simplifies Platform Changes Upgrading to new systems (hardware or software platforms), is always very time consuming. Large amounts of data must be converted and incompatible data is often lost.
5
5 XML contd. XML Makes Your Data More Available Since XML is independent of hardware, software and application, XML can make your data more available and useful. XML is Used to Create New Internet Languages XHTML the latest version of HTML WSDL for describing available web services WAP and WML as markup languages for handheld devices RSS languages for news feeds SMIL for describing multimedia for the web
6
6 An Example XML Document Tove Jani Reminder Don't forget me this weekend!
7
7 Exercise – Represent below image in XML
8
8 Answer Everyday Italian Giada De Laurentiis 2005 30.00
9
9 Entity References Try to represent below message in XML if salary There are 5 predefined entity references in XML:
10
10 Comments in XML The syntax for writing comments in XML is similar to that of HTML.
11
11 XML Elements vs. Attributes What is correct? Anna Smith female Anna Smith There are no rules about when to use attributes and when to use elements. Attributes are handy in HTML. Avoid them in XML and use elements instead.
12
12 XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
13
13 XML DTD DTD defines the structure of an XML document Example DTD file ]> How to reference an external DTD file Tove Jani Reminder Don't forget me this weekend! XML Assignment1 – Implement the above example and show that the validations functions as expected
14
14 XML Schema XML-based alternative to DTD is called XML Schema XML Assignment2 – Implement the previous example using XML Schema and demonstrate the validation
15
15 Linking XML file to CSS file XML file - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 - CSS file CATALOG { background-color: #ffffff; width: 100%; } CD { display: block; margin-bottom: 30pt; margin-left: 0; } TITLE { color: #FF0000; font-size: 20pt; } ARTIST { color: #0000FF; font-size: 20pt; } C OUNTRY,PRICE,YEAR,COMPANY { display: block; color: #000000; margin-left: 20pt; }
16
16 Linking XML file to CSS file contd. How to combine the two Empire Burlesque Bob Dylan USA Columbia 10.90 1985 Output will be as shown XML Assignment3 - Implement the above example
17
17 Displaying XML with XSLT XSLT is the recommended style sheet language of XML. XSLT (eXtensible Stylesheet Language Transformations) XSLT can be used to transform XML into HTML XML Assignment4 - Implement the previous example using XSLT
18
Web Services Presented by Kushan Athukorala
19
19 Agenda Overview WS Platform and Platform Elements Types SOAP WSDL UDDI
20
20 Web Services Web Services can convert your application into a Web- application, which can publish its function or message to the rest of the world What are Web Services? Web services are application components Web services communicate using open protocols Web services are self-contained and self-describing Web services can be discovered using UDDI Web services can be used by other applications XML is the basis for Web services
21
21 Web Services Platform and Platform Elements Web Services platform is XML + HTTP Web services platform elements: SOAP (Simple Object Access Protocol) UDDI (Universal Description, Discovery and Integration) WSDL (Web Services Description Language)
22
22 Web Services have Two Types of Uses Reusable application-components. Web services can offer application-components like: currency conversion, weather reports, or even language translation as services. These components are reusable Connect existing software. Web services can help to solve the interoperability problem by giving different applications a way to link their data. With Web services you can exchange data between different applications and different platforms.
23
23 What is SOAP? SOAP is an XML-based protocol to let applications exchange information over HTTP. SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol SOAP is a communication protocol SOAP is a format for sending messages SOAP is designed to communicate via Internet SOAP is platform independent SOAP is language independent SOAP is based on XML SOAP is simple and extensible SOAP allows you to get around firewalls SOAP is a W3C standard
24
24 What is WSDL? WSDL is an XML-based language for locating and describing Web services. WSDL stands for Web Services Description Language WSDL is based on XML WSDL is used to describe Web services WSDL is used to locate Web services WSDL is a W3C standard
25
25 What is UDDI? UDDI is a directory service where companies can register and search for Web services. UDDI stands for Universal Description, Discovery and Integration UDDI is a directory for storing information about web services UDDI is a directory of web service interfaces described by WSDL UDDI communicates via SOAP
26
26 Thank You
27
27 USA INDIA SRILANKA UK www.virtusa.com © V I r t u s a C o r p o r a t i o n "Virtusa" is a trademark of the company and a registered trademark in the EU and In India. "Productization" is a service mark of the company and a registered service mark in the United States. "vRule" is a service mark of the company. For more information please contact SalesInquiries@virtusa.com
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.