SlideShare a Scribd company logo
1 of 13
e X tensible   M arkup   L anguage P repared   b y   A ditya   R aj e X tensible  S tylesheet  L anguage
By end of this presentation, we will be able to know What is XML? Why to choose XML? What is XML schema? XML structure Basics of XML coding
What is XML? XML is a general purpose, cross platform, markup language, that is supported by W3C (World Wide Consortium) and is used for communication between systems on different or same platform. XML is used to describe and store data and  should not be  misunderstood with a programming language. The good news is XML tags are not predefined and you can define your own tags  
Why to choose XML? XML stores the data in a  structured  manner Data can just not be stored but also it can be  described  to any extent Systems using XML are considered to be highly  scalable Structural changes to data can be  managed  easily Easy  to learn and easy to use In machine and  human readable  format XML is  FREE
What is a XML schema? XML Schema are guidelines or format for describing data using XML. In order to use XML data it must conform to these standards. The oldest schema format for XML is DTD (Document Type Definition) but it is now obsolete as:    It has no support for new features    Certain aspects of data cannot be described using DTD XSD (XML Schema Definition)  is one of the most powerful XML schemas and is commonly used. They allow detailed constraints on an XML document’s logical structure. Finally it depends on the system requirement and data type that which XML schema should be used.
XML structure Data Structure of XML can best described as a hierarchy of information like a tree. A hierarchy structure has a parent, child and a sibling relationship with other entities. In XML every entity at any level can have its own properties. Siblings Parent Child Name Age Gender Properties
Basic XML coding <addressBook> <contact  fName=&quot;john&quot;  lName=&quot;“  nickName=&quot;Johny&quot;  dob=&quot;1st January 1990&quot;> </contact> <email>john@yahoo.com</email> <numbers> </numbers> <address> </address> <streetAddress>123, x block, Vasant Vihar </streetAddress> <country>India</country> <state>New Delhi</state> <zipCode>110057</zipCode> <mobile>9988998899</mobile> <mobile>9988998800</mobile> <homeNumber>01126150000</homeNumber> <?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>  </addressBook> Address Book Contact Email Numbers Address Mobile Home Phone State Country Street Address Contact Email Numbers Address Mobile Home Phone State Country Street Address
Now we are about to know: What is XSL? What is XSLT? What is XPath? Example
What is XSL? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is XSLT? XSLT (eXtensible Stylesheet Language Transformation) transforms XML data using XSL to form a well formatted document, usually HTML. About XSLT processors One of the most simplest way of XSLT is client side, so when a XML document is requested by client application, it refers to its related XSL file and the transformation takes place at the client side. This method is not recommended due to compatibility concerns as it is highly possible that client might not support XML transformation or may not support the latest features. Hence it is recommended to perform the transformation at the server level and pass the resulted data to the client, avoiding any compatibility concerns. There are several standalone software and libraries available for performing transformation. Like for ruby on rails we have library named XSLT and for Windows XP we have MSXML 3.
What is XPath? XPath (XML Path Language) is used to  navigate  the data inside XML document to find required information and it is also used for computing values, in simple words XPath is a  small query language . XPath   expressions Selects first child element of the node nodename/node[1] Selects all nodes in the document //* Selects all child nodes of the node nodename/* Selects attributes @ Selects the parent of the current node .. Selects the current node . Selects nodes in the document from the current node that match the selection no matter where they are  // Selects from the root node / Selects all child nodes of the node nodename Description Expression
Now lets make XSL for the XML we made before !! Line 2 tells the XML document that which XSL should be used for transformation. FINALLY !!
Thanks…

More Related Content

What's hot (20)

Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
XML Databases
XML DatabasesXML Databases
XML Databases
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Introducing xml
Introducing xmlIntroducing xml
Introducing xml
 
XML
XMLXML
XML
 
XML
XMLXML
XML
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 
EXtensible Markup Language
EXtensible Markup LanguageEXtensible Markup Language
EXtensible Markup Language
 
Xml iet 2015
Xml iet 2015Xml iet 2015
Xml iet 2015
 
Introduction to XML and Databases
Introduction to XML and DatabasesIntroduction to XML and Databases
Introduction to XML and Databases
 
Xml
XmlXml
Xml
 
What is xml
What is xmlWhat is xml
What is xml
 
Web data management (chapter-1)
Web data management (chapter-1)Web data management (chapter-1)
Web data management (chapter-1)
 
Intro xml
Intro xmlIntro xml
Intro xml
 
Web programming xml
Web programming  xmlWeb programming  xml
Web programming xml
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
XML
XMLXML
XML
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
 
XML
XMLXML
XML
 

Viewers also liked

Viewers also liked (6)

Xs path navigation on xml schemas made easy
Xs path navigation on xml schemas made easy Xs path navigation on xml schemas made easy
Xs path navigation on xml schemas made easy
 
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easyIEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
 
Xpath presentation
Xpath presentationXpath presentation
Xpath presentation
 
XPath - XML Path Language
XPath - XML Path LanguageXPath - XML Path Language
XPath - XML Path Language
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to eXtensible Markup Language (20)

XML/XSLT
XML/XSLTXML/XSLT
XML/XSLT
 
XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
 
E05412327
E05412327E05412327
E05412327
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
 
Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108
 
Full xml
Full xmlFull xml
Full xml
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
 
Xml
XmlXml
Xml
 
XML | Computer Science
XML | Computer ScienceXML | Computer Science
XML | Computer Science
 
XML
XMLXML
XML
 
CTDA Workshop on XML and MODS
CTDA Workshop on XML and MODSCTDA Workshop on XML and MODS
CTDA Workshop on XML and MODS
 
CTDA Workshop on XSL
CTDA Workshop on XSLCTDA Workshop on XSL
CTDA Workshop on XSL
 
XML - Extensive Markup Language
XML - Extensive Markup LanguageXML - Extensive Markup Language
XML - Extensive Markup Language
 
Introduction to XSLT
Introduction to XSLTIntroduction to XSLT
Introduction to XSLT
 
Introduction to xml schema
Introduction to xml schemaIntroduction to xml schema
Introduction to xml schema
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
Applied xml programming for microsoft
Applied xml programming for microsoftApplied xml programming for microsoft
Applied xml programming for microsoft
 
Lecture 1 - Getting to know XML
Lecture 1 - Getting to know XMLLecture 1 - Getting to know XML
Lecture 1 - Getting to know XML
 

Recently uploaded

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

eXtensible Markup Language

  • 1. e X tensible M arkup L anguage P repared b y A ditya R aj e X tensible S tylesheet L anguage
  • 2. By end of this presentation, we will be able to know What is XML? Why to choose XML? What is XML schema? XML structure Basics of XML coding
  • 3. What is XML? XML is a general purpose, cross platform, markup language, that is supported by W3C (World Wide Consortium) and is used for communication between systems on different or same platform. XML is used to describe and store data and should not be misunderstood with a programming language. The good news is XML tags are not predefined and you can define your own tags 
  • 4. Why to choose XML? XML stores the data in a structured manner Data can just not be stored but also it can be described to any extent Systems using XML are considered to be highly scalable Structural changes to data can be managed easily Easy to learn and easy to use In machine and human readable format XML is FREE
  • 5. What is a XML schema? XML Schema are guidelines or format for describing data using XML. In order to use XML data it must conform to these standards. The oldest schema format for XML is DTD (Document Type Definition) but it is now obsolete as:  It has no support for new features  Certain aspects of data cannot be described using DTD XSD (XML Schema Definition) is one of the most powerful XML schemas and is commonly used. They allow detailed constraints on an XML document’s logical structure. Finally it depends on the system requirement and data type that which XML schema should be used.
  • 6. XML structure Data Structure of XML can best described as a hierarchy of information like a tree. A hierarchy structure has a parent, child and a sibling relationship with other entities. In XML every entity at any level can have its own properties. Siblings Parent Child Name Age Gender Properties
  • 7. Basic XML coding <addressBook> <contact fName=&quot;john&quot; lName=&quot;“ nickName=&quot;Johny&quot; dob=&quot;1st January 1990&quot;> </contact> <email>john@yahoo.com</email> <numbers> </numbers> <address> </address> <streetAddress>123, x block, Vasant Vihar </streetAddress> <country>India</country> <state>New Delhi</state> <zipCode>110057</zipCode> <mobile>9988998899</mobile> <mobile>9988998800</mobile> <homeNumber>01126150000</homeNumber> <?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?> </addressBook> Address Book Contact Email Numbers Address Mobile Home Phone State Country Street Address Contact Email Numbers Address Mobile Home Phone State Country Street Address
  • 8. Now we are about to know: What is XSL? What is XSLT? What is XPath? Example
  • 9.
  • 10. What is XSLT? XSLT (eXtensible Stylesheet Language Transformation) transforms XML data using XSL to form a well formatted document, usually HTML. About XSLT processors One of the most simplest way of XSLT is client side, so when a XML document is requested by client application, it refers to its related XSL file and the transformation takes place at the client side. This method is not recommended due to compatibility concerns as it is highly possible that client might not support XML transformation or may not support the latest features. Hence it is recommended to perform the transformation at the server level and pass the resulted data to the client, avoiding any compatibility concerns. There are several standalone software and libraries available for performing transformation. Like for ruby on rails we have library named XSLT and for Windows XP we have MSXML 3.
  • 11. What is XPath? XPath (XML Path Language) is used to navigate the data inside XML document to find required information and it is also used for computing values, in simple words XPath is a small query language . XPath expressions Selects first child element of the node nodename/node[1] Selects all nodes in the document //* Selects all child nodes of the node nodename/* Selects attributes @ Selects the parent of the current node .. Selects the current node . Selects nodes in the document from the current node that match the selection no matter where they are // Selects from the root node / Selects all child nodes of the node nodename Description Expression
  • 12. Now lets make XSL for the XML we made before !! Line 2 tells the XML document that which XSL should be used for transformation. FINALLY !!