SlideShare a Scribd company logo
OUTLINES
• What is XML?
• Family of XML Technologies
• Syntax
• Comments
• XML DTD
• Rules
• Comparison
• Example
• Advantages
WHAT IS XML?
• XML stands for eXtensible Markup Language
• Markup language for documents containing structured
information.
• Used to describe the contents of the document.
• Useful in exchanging data between the applications.
• Makes data:
- easy to read
- unambiguous
- extensible
- platform-independent
FAMILY OF XML TECHNOLOGIES
XML
Namespaces
XSLT/XPath
XML Schemas
RDF
XQuery
SVG
SAX/DOM
SOAP,
WSDL,
UDDI
Xlink/
XPointer
RDDL
MathML
RSS
SYNTAX-ELEMENTS
• Elements are used to define tags.
• <element name> text </element name>
• Eg: <student> I am studying IT </student>
• Can contain text, other elements or a combination.
• Element name must start with a letter or underscore
and can have any number of letters, numbers,
hyphens, periods, or underscores.
• Elements are case-sensitive.
• Used to specify the values of the element.
• Must be enclosed within double quotes.
• For Eg: <person flag=“true”> text </person>
• Here flag is the attribute with the value true.
• An element may not have two attributes with
the same name.
SYNTAX-ATTRIBUTES
7
COMMENTS
• <!-- This is a comment -->
• Comments are useful for:
– Explaining the structure of an XML document
– Commenting out parts of the XML during development and testing
• Comments are not elements and do not have an end tag.
• -- cannot be used in the comment.
• Comments are not displayed by browsers, but can be seen
by anyone who looks at the source code.
XML DTD
• Document Type Definition is used to define the basic
building blocks of any XML document.
• It is a set of rules that allow us to specify our own set of
elements and attributes.
• DTD is grammar to indicate what tags are legal in XML
documents
• XML Document is valid if it has an attached DTD and
document is structured according to rules defined in DTD.
RULES
• XML is case sensitive which means <marks> & <Marks>
are treated differently.
• Each start tag must have a matching end tag.
• Elements must be properly nested.
For Eg: <one><two> Numbers </two></one>
• An empty tag can be defined like this <student/>.
• A space or tab character is not allowed in the element
name or attribute name.
• Comments and processing instructions may not appear
inside tags.
COMPARISON
XML HTML
•Extensible set of tags •Fixed set of tags
•Content orientated •Presentation oriented
•Standard Data
infrastructure
•No data validation
capabilities
•Allows multiple output
forms
•Single presentation
•Content and format can
be placed together.
•Content and format are
separate; formatting is
contained in a style sheet.
EXAMPLE--XML file for food menu
ADVANTAGES
• Easily readable & we can edit any XML document in simple text
editors.
• It is language neutral, means a Java program can generate an
XML document which can be parsed by Perl.
• Every XML document has a tree structure, so complex data can
be arranged & understood in a simple manner.
• XML files are independent of an operating system.
• Very flexible, compressible and customizable.
• Widely used and supported.
Extensible Markup Language (XML)

More Related Content

What's hot

XML
XMLXML
XML Schema
XML SchemaXML Schema
XML Schema
yht4ever
 
Dtd
DtdDtd
Querying XML: XPath and XQuery
Querying XML: XPath and XQueryQuerying XML: XPath and XQuery
Querying XML: XPath and XQueryKatrien Verbert
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3Sudharsan S
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Xml presentation
Xml presentationXml presentation
Xml presentation
Miguel Angel Teheran Garcia
 
SQL
SQLSQL
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Bình Trọng Án
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Xml namespace
Xml namespaceXml namespace
Xml namespace
GayathriS578276
 
DTD
DTDDTD
Basic html structure
Basic html structureBasic html structure
Basic html structure
Jhaun Paul Enriquez
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Dr. C.V. Suresh Babu
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
 

What's hot (20)

XML
XMLXML
XML
 
Sgml
SgmlSgml
Sgml
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Dtd
DtdDtd
Dtd
 
Querying XML: XPath and XQuery
Querying XML: XPath and XQueryQuerying XML: XPath and XQuery
Querying XML: XPath and XQuery
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 
SQL
SQLSQL
SQL
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Xml namespace
Xml namespaceXml namespace
Xml namespace
 
Dhtml ppt (2)
Dhtml ppt (2)Dhtml ppt (2)
Dhtml ppt (2)
 
DTD
DTDDTD
DTD
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML
XMLXML
XML
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 

Viewers also liked

eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)
MUFIX Community
 
Xml session01
Xml session01Xml session01
Xml session01Niit Care
 
Markup Languages
Markup LanguagesMarkup Languages
Markup Languages
Markup Languages Markup Languages
Markup Languages
Senthil Kanth
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
Trinity Dwarka
 
Chapter17 system implementation
Chapter17 system implementationChapter17 system implementation
Chapter17 system implementation
Dhani Ahmad
 
XML
XMLXML
Markup language classification, designing static and dynamic
Markup language classification, designing static and dynamicMarkup language classification, designing static and dynamic
Markup language classification, designing static and dynamicAnkita Bhalla
 
Designing low costs sensor system for the Internet of Things
Designing low costs sensor system for the Internet of ThingsDesigning low costs sensor system for the Internet of Things
Designing low costs sensor system for the Internet of ThingsAndreas Schaller
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
Angelin R
 
List of Software Development Model and Methods
List of Software Development Model and MethodsList of Software Development Model and Methods
List of Software Development Model and Methods
Riant Soft
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development processRiant Soft
 

Viewers also liked (14)

eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)
 
Xml session01
Xml session01Xml session01
Xml session01
 
Markup Languages
Markup LanguagesMarkup Languages
Markup Languages
 
Markup Languages
Markup Languages Markup Languages
Markup Languages
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
 
Chapter17 system implementation
Chapter17 system implementationChapter17 system implementation
Chapter17 system implementation
 
XML
XMLXML
XML
 
Markup language classification, designing static and dynamic
Markup language classification, designing static and dynamicMarkup language classification, designing static and dynamic
Markup language classification, designing static and dynamic
 
Designing low costs sensor system for the Internet of Things
Designing low costs sensor system for the Internet of ThingsDesigning low costs sensor system for the Internet of Things
Designing low costs sensor system for the Internet of Things
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
 
Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)Software Development Life Cycle (SDLC)
Software Development Life Cycle (SDLC)
 
List of Software Development Model and Methods
List of Software Development Model and MethodsList of Software Development Model and Methods
List of Software Development Model and Methods
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development process
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to Extensible Markup Language (XML)

Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
Varsha Uchagaonkar
 
Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
Varsha Uchagaonkar
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Vijay Mishra
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Maung Nyunt
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
Baskarkncet
 
Intro xml
Intro xmlIntro xml
Intro xml
sana mateen
 
WT UNIT-2 XML.pdf
WT UNIT-2 XML.pdfWT UNIT-2 XML.pdf
WT UNIT-2 XML.pdf
Ranjeet Reddy
 
Xml unit1
Xml unit1Xml unit1
Xml unit1
sathyasudha
 
XML Schema
XML SchemaXML Schema
XML Schema
Kumar
 
1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
Dr.Saranya K.G
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
shannonsdavis
 
Web Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdfWeb Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdf
AnonymousXhmybK
 
XML.pptx
XML.pptxXML.pptx
Xml basics
Xml basicsXml basics
Xml basics
Kumar
 
II UNIT PPT NOTES.pdf this is the data structures
II UNIT PPT NOTES.pdf this is the data structuresII UNIT PPT NOTES.pdf this is the data structures
II UNIT PPT NOTES.pdf this is the data structures
PriyankaRamavath3
 
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5   XMLM.FLORENCE DAYANA WEB DESIGN -Unit 5   XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
Dr.Florence Dayana
 

Similar to Extensible Markup Language (XML) (20)

Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
 
Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Ch2 neworder
Ch2 neworderCh2 neworder
Ch2 neworder
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
Xml by Luqman
Xml by LuqmanXml by Luqman
Xml by Luqman
 
Intro xml
Intro xmlIntro xml
Intro xml
 
WT UNIT-2 XML.pdf
WT UNIT-2 XML.pdfWT UNIT-2 XML.pdf
WT UNIT-2 XML.pdf
 
Xml unit1
Xml unit1Xml unit1
Xml unit1
 
XML Schema
XML SchemaXML Schema
XML Schema
 
1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Web Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdfWeb Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdf
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
Xml basics
Xml basicsXml basics
Xml basics
 
Intro to xml
Intro to xmlIntro to xml
Intro to xml
 
Xml
XmlXml
Xml
 
II UNIT PPT NOTES.pdf this is the data structures
II UNIT PPT NOTES.pdf this is the data structuresII UNIT PPT NOTES.pdf this is the data structures
II UNIT PPT NOTES.pdf this is the data structures
 
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5   XMLM.FLORENCE DAYANA WEB DESIGN -Unit 5   XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
 

More from AakankshaR

Tem
TemTem
Nanoelectronics
NanoelectronicsNanoelectronics
Nanoelectronics
AakankshaR
 
Global System for Mobile (GSM)
Global System for Mobile (GSM)Global System for Mobile (GSM)
Global System for Mobile (GSM)
AakankshaR
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
AakankshaR
 
Applications of Z transform
Applications of Z transformApplications of Z transform
Applications of Z transform
AakankshaR
 
Time multiplexed time switch
Time multiplexed time switchTime multiplexed time switch
Time multiplexed time switch
AakankshaR
 
PHOTODETECTORS
PHOTODETECTORSPHOTODETECTORS
PHOTODETECTORS
AakankshaR
 
TWO STAGE NETWORKS
TWO STAGE NETWORKSTWO STAGE NETWORKS
TWO STAGE NETWORKS
AakankshaR
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
AakankshaR
 

More from AakankshaR (9)

Tem
TemTem
Tem
 
Nanoelectronics
NanoelectronicsNanoelectronics
Nanoelectronics
 
Global System for Mobile (GSM)
Global System for Mobile (GSM)Global System for Mobile (GSM)
Global System for Mobile (GSM)
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
 
Applications of Z transform
Applications of Z transformApplications of Z transform
Applications of Z transform
 
Time multiplexed time switch
Time multiplexed time switchTime multiplexed time switch
Time multiplexed time switch
 
PHOTODETECTORS
PHOTODETECTORSPHOTODETECTORS
PHOTODETECTORS
 
TWO STAGE NETWORKS
TWO STAGE NETWORKSTWO STAGE NETWORKS
TWO STAGE NETWORKS
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 

Recently uploaded

Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 

Recently uploaded (20)

Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 

Extensible Markup Language (XML)

  • 1.
  • 2. OUTLINES • What is XML? • Family of XML Technologies • Syntax • Comments • XML DTD • Rules • Comparison • Example • Advantages
  • 3. WHAT IS XML? • XML stands for eXtensible Markup Language • Markup language for documents containing structured information. • Used to describe the contents of the document. • Useful in exchanging data between the applications. • Makes data: - easy to read - unambiguous - extensible - platform-independent
  • 4. FAMILY OF XML TECHNOLOGIES XML Namespaces XSLT/XPath XML Schemas RDF XQuery SVG SAX/DOM SOAP, WSDL, UDDI Xlink/ XPointer RDDL MathML RSS
  • 5. SYNTAX-ELEMENTS • Elements are used to define tags. • <element name> text </element name> • Eg: <student> I am studying IT </student> • Can contain text, other elements or a combination. • Element name must start with a letter or underscore and can have any number of letters, numbers, hyphens, periods, or underscores. • Elements are case-sensitive.
  • 6. • Used to specify the values of the element. • Must be enclosed within double quotes. • For Eg: <person flag=“true”> text </person> • Here flag is the attribute with the value true. • An element may not have two attributes with the same name. SYNTAX-ATTRIBUTES
  • 7. 7 COMMENTS • <!-- This is a comment --> • Comments are useful for: – Explaining the structure of an XML document – Commenting out parts of the XML during development and testing • Comments are not elements and do not have an end tag. • -- cannot be used in the comment. • Comments are not displayed by browsers, but can be seen by anyone who looks at the source code.
  • 8. XML DTD • Document Type Definition is used to define the basic building blocks of any XML document. • It is a set of rules that allow us to specify our own set of elements and attributes. • DTD is grammar to indicate what tags are legal in XML documents • XML Document is valid if it has an attached DTD and document is structured according to rules defined in DTD.
  • 9. RULES • XML is case sensitive which means <marks> & <Marks> are treated differently. • Each start tag must have a matching end tag. • Elements must be properly nested. For Eg: <one><two> Numbers </two></one> • An empty tag can be defined like this <student/>. • A space or tab character is not allowed in the element name or attribute name. • Comments and processing instructions may not appear inside tags.
  • 10. COMPARISON XML HTML •Extensible set of tags •Fixed set of tags •Content orientated •Presentation oriented •Standard Data infrastructure •No data validation capabilities •Allows multiple output forms •Single presentation •Content and format can be placed together. •Content and format are separate; formatting is contained in a style sheet.
  • 12. ADVANTAGES • Easily readable & we can edit any XML document in simple text editors. • It is language neutral, means a Java program can generate an XML document which can be parsed by Perl. • Every XML document has a tree structure, so complex data can be arranged & understood in a simple manner. • XML files are independent of an operating system. • Very flexible, compressible and customizable. • Widely used and supported.