SlideShare a Scribd company logo
Data Exchange Over Internet
JSON vs XML
University of Engineering and Technology,
Lahore
• Introduction
• Syntax
• Tree
• Namespace
• Datatypes Supported
• Parser
• Data Access
• XPath
• XQuery
• Introduction
• Syntax
• Datatypes Supported
• Arrays
• Objects
• Parser
• Data Access
JSON
Shahzaib Tariq
2018-CS-130
What is JSON?
Let’s get familiar with JavaScript Object Notation
1
 JSON is a format/syntax
for storing and
exchanging data.
 JSON is text, written with
JavaScript object
notation.
Breif Description
 JSON is a lightweight
data-interchange format
 JSON is "self-describing"
and easy to understand
 JSON is language
independent *
 Data is in name/value
pairs
 Data is separated by
commas
 Curly braces hold objects
 Square brackets hold
arrays
Syntax
 Data Types JSON support:
• string
• number
• object (JSON object)
• array
• boolean
Data-Type
• date
• time
• null
 JSON objects are
surrounded by curly
braces { }.
 JSON objects are written
in key/value pairs.
 Keys must be strings, and
values must be a valid
JSON data type.
 Keys and values are
separated by a colon.
DataTypes - Objects
 Each key/value pair is
separated by a comma.
 Arrays in JSON are almost
the same as arrays in
JavaScript.
 In JSON, array values
must be of type string,
number, object, array,
boolean or null.
DataTypes - Arrays
 When receiving data
from a web server, the
data is always a string.
 Parse the data with
JSON.parse(), and the
data becomes a
JavaScript object.
Parser
Data Access
XML
Ghufran Jaleel
2018-CS-126
What is XML?
Let’s get familiar with Extensible Markup
Language
2
 XML is a markup
language much like
HTML
 XML was designed to
store and transport data
 HTML was designed to
display data elegently
Breif Description
 XML Separates Data from
Presentation
 XML is Often a
Complement to HTML
 XML Separates Data from
HTML
 XML documents are
formed as element trees
 An XML tree starts at a
root element and
branches from the root
to child elements
 All elements can have
sub elements (child
elements)
Syntax - Tree
 XML may have conflict in
tags - They are defined
by developer
 When using prefixes in
XML, a namespace for
the prefix must be
defined.
 The namespace
declaration has the
following syntax.
xmlns:prefix="URI".
Syntax - Namespace
 Primitive types XML
support:
• string
• decimal
• integer
• boolean
• date
• time
Data-Type
 Supports many complex
data types including:
• charts
• graphs
• images
 Before an XML document
can be accessed, it must
be loaded into an XML
DOM object.
 All modern browsers
have a built-in XML
parser that can convert
text into an XML DOM
object.
Parser
Data Access - XPath
 XQuery is the language
for querying XML data
 XQuery for XML is like
SQL for databases
 XQuery is built on XPath
expressions
 XQuery is supported by
all major databases
Data Access - XQuery
Conclusion
M. Wajahat Shahid
2018-CS-113
Performance Comparision
Comparision of Features and Usage
3
Features of JSON
⬥ Usage is Straight-Forward
⬥ No need to create a Mapping
⬥ Better Performance
⬥ Clean Data Format
⬥ No Dependency
Features of XML
⬥ Styled Processed Data can be Displayed by
XSLT
⬥ Meta-Data can also be defined (DTD)
⬥ Provide Namespace for Accurate Results
⬥ Used in Information Exchanges like b2b
transactions and b2c Transactions
⬥ Automated Tasks
⬥ InBuilt Error Handling
 Easy to grasp
 Creation and Manipulation
are Easy and Light-Weight
 All major languages
frameworks support JSON
 Transmission and
Serialization of the
Structured Data are done
using a Network Connection
Pros and Cons of JSON
 JSON offers poor
Extensibility as no
Namespace Support
 State Can not be
Transferred
 XML exchanges Data
between different
platforms. So, it connects
different Systems and
Applications
 XML Separates the Data
from HTML
 XML Simplifies the Platform
Change Process
 Secure Data Transfer
Pros and Cons of XML
 XML requires processing
application
 XML syntax can
sometimes be confusing
as it is similar to other
alternatives
 No intrinsic/primitive
data type support
 The XML syntax is
redundant
 Scripting Language
 Document-Oriented
 Data is stored as Tree
 Bulky and Slow
 Stored data can be
Processed Natively
 Comments are Valid
 XML supports UTF-8 and
UTF-16 encodings
Which is used Where?
 File Format based on
Javascript
 Data-Oriented
 Key-Value Pair
 Fast and Reliable
 No Processing is Avialable
 Supports no Comments
 JSON supports UTF as well as
ASCII encodings.
 Saperate Tags are used for
each Item to use Array
 XML can display with
Elegent Styling
 JSON is supported by most
browsers
 Supports Statefull Data
Exchange
 Mostly used in SOAP APIs
Which is used Where?
 Support Array as in
JavaScript
 JSON has no display
capabilities
 Cross-browser XML parsing
can be tricky
 State can not be preserved
in JSON
 Rest APIs mainly has JSON
response
 Simple Object Access
Protocol
 Data Transfer between
Programs built on different
Platforms and Programming
Languages
 SOAP is it’self a Protocol
 SOAP only works with XML
A Bird-Eye Overview
 Representational State
Transfer
 Deals with Files, Media
Components, or even Objects
on a Particular Hardware
Device
 Use HTTP verbs of GET, POST,
PUT and DELETE for working
 Plain Text, XML, HTML and
JSON. Rest APIs mainly has
JSON response
Ad

More Related Content

What's hot (20)

XML
XMLXML
XML
behnooshashrafi
 
Xml databases
Xml databasesXml databases
Xml databases
Srinivasan R
 
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 presentation
Xml presentationXml presentation
Xml presentation
Miguel Angel Teheran Garcia
 
Xml
XmlXml
Xml
Santosh Pandey
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
Himanshu Soni
 
Xml and DTD's
Xml and DTD'sXml and DTD's
Xml and DTD's
Swati Parmar
 
Intro xml
Intro xmlIntro xml
Intro xml
sana mateen
 
Xml processors
Xml processorsXml processors
Xml processors
Saurav Mawandia
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
AakankshaR
 
Xml basics for beginning
Xml basics for beginningXml basics for beginning
Xml basics for beginning
Ahmad Awsaf-uz-zaman
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup Language
Reem Alattas
 
Intro to XML in libraries
Intro to XML in librariesIntro to XML in libraries
Intro to XML in libraries
Kyle Banerjee
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Abhra Basak
 
Basics of XML
Basics of XMLBasics of XML
Basics of XML
indiangarg
 
EXtensible Markup Language
EXtensible Markup LanguageEXtensible Markup Language
EXtensible Markup Language
Prabhat gangwar
 
Markup Languages
Markup Languages Markup Languages
Markup Languages
Senthil Kanth
 
HTML and XML Difference FAQs
HTML and XML Difference FAQsHTML and XML Difference FAQs
HTML and XML Difference FAQs
Umar Ali
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Vijay Mishra
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
Fazli Kabashi
 

Similar to Data exchange over internet (XML vs JSON) (20)

All about XML, JSON and related topics..
All about XML, JSON and related topics..All about XML, JSON and related topics..
All about XML, JSON and related topics..
tinumanueltmt
 
GTR-Python-Using Web Services notesgtr.ppt
GTR-Python-Using Web Services notesgtr.pptGTR-Python-Using Web Services notesgtr.ppt
GTR-Python-Using Web Services notesgtr.ppt
rajugt3
 
Difference between xml and json
Difference between xml and jsonDifference between xml and json
Difference between xml and json
Umar Ali
 
Ajax xml json
Ajax xml jsonAjax xml json
Ajax xml json
Andrii Siusko
 
Json
JsonJson
Json
primeteacher32
 
Xml
XmlXml
Xml
baabtra.com - No. 1 supplier of quality freshers
 
Web Development Course - AJAX & JSON by RSOLUTIONS
Web Development Course - AJAX & JSON by RSOLUTIONSWeb Development Course - AJAX & JSON by RSOLUTIONS
Web Development Course - AJAX & JSON by RSOLUTIONS
RSolutions
 
JSON
JSONJSON
JSON
Zara Tariq
 
JSON
JSONJSON
JSON
Ibrahim AlIbrahim
 
Web data management (chapter-1)
Web data management (chapter-1)Web data management (chapter-1)
Web data management (chapter-1)
Dhaval Asodariya
 
Data Intechange at Work: XML and JSON
Data Intechange at Work: XML and JSONData Intechange at Work: XML and JSON
Data Intechange at Work: XML and JSON
Tom Marrs
 
Pythonlearn-13-WebServices.pptx
Pythonlearn-13-WebServices.pptxPythonlearn-13-WebServices.pptx
Pythonlearn-13-WebServices.pptx
nishant874609
 
Json
JsonJson
Json
krishnapriya Tadepalli
 
Json
Json Json
Json
Manav Prasad
 
Json – java script object notation
Json – java script object notationJson – java script object notation
Json – java script object notation
Dilip Kumar Gupta
 
BITM3730 10-18.pptx
BITM3730 10-18.pptxBITM3730 10-18.pptx
BITM3730 10-18.pptx
MattMarino13
 
BITM3730 10-31.pptx
BITM3730 10-31.pptxBITM3730 10-31.pptx
BITM3730 10-31.pptx
MattMarino13
 
JSON - (English)
JSON - (English)JSON - (English)
JSON - (English)
Senior Dev
 
XML
XMLXML
XML
baabtra.com - No. 1 supplier of quality freshers
 
Web Fundamentals: JavaScript Objects Json and XML
Web Fundamentals: JavaScript Objects Json and XMLWeb Fundamentals: JavaScript Objects Json and XML
Web Fundamentals: JavaScript Objects Json and XML
kategeg121
 
Ad

Recently uploaded (20)

Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
UXPA Boston
 
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AIAI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
Buhake Sindi
 
"AI in the browser: predicting user actions in real time with TensorflowJS", ...
"AI in the browser: predicting user actions in real time with TensorflowJS", ..."AI in the browser: predicting user actions in real time with TensorflowJS", ...
"AI in the browser: predicting user actions in real time with TensorflowJS", ...
Fwdays
 
CloudStack + KVM: Your Local Cloud Lab
CloudStack + KVM:   Your Local Cloud LabCloudStack + KVM:   Your Local Cloud Lab
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
Build your own NES Emulator... with Kotlin
Build your own NES Emulator... with KotlinBuild your own NES Emulator... with Kotlin
Build your own NES Emulator... with Kotlin
Artur Skowroński
 
Building Agents with LangGraph & Gemini
Building Agents with LangGraph &  GeminiBuilding Agents with LangGraph &  Gemini
Building Agents with LangGraph & Gemini
HusseinMalikMammadli
 
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCPMCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
Sambhav Kothari
 
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
Apache CloudStack 101 - Introduction, What’s New and What’s ComingApache CloudStack 101 - Introduction, What’s New and What’s Coming
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
Stretching CloudStack over multiple datacenters
Stretching CloudStack over multiple datacentersStretching CloudStack over multiple datacenters
Stretching CloudStack over multiple datacenters
ShapeBlue
 
The fundamental misunderstanding in Team Topologies
The fundamental misunderstanding in Team TopologiesThe fundamental misunderstanding in Team Topologies
The fundamental misunderstanding in Team Topologies
Patricia Aas
 
TAFs on WebDriver API - By - Pallavi Sharma.pdf
TAFs on WebDriver API - By - Pallavi Sharma.pdfTAFs on WebDriver API - By - Pallavi Sharma.pdf
TAFs on WebDriver API - By - Pallavi Sharma.pdf
Pallavi Sharma
 
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Precisely
 
Assurance Best Practices: Unlocking Proactive Network Operations
Assurance Best Practices: Unlocking Proactive Network OperationsAssurance Best Practices: Unlocking Proactive Network Operations
Assurance Best Practices: Unlocking Proactive Network Operations
ThousandEyes
 
Fully Open-Source Private Clouds: Freedom, Security, and Control
Fully Open-Source Private Clouds: Freedom, Security, and ControlFully Open-Source Private Clouds: Freedom, Security, and Control
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
STKI Annual Israel IT Market Study 2025 .
STKI Annual Israel IT Market Study 2025 .STKI Annual Israel IT Market Study 2025 .
STKI Annual Israel IT Market Study 2025 .
Dr. Jimmy Schwarzkopf
 
Is Your QA Team Still Working in Silos? Here's What to Do.
Is Your QA Team Still Working in Silos? Here's What to Do.Is Your QA Team Still Working in Silos? Here's What to Do.
Is Your QA Team Still Working in Silos? Here's What to Do.
marketing943205
 
I’d like to resell your CloudStack services, but...
I’d like to resell your CloudStack services, but...I’d like to resell your CloudStack services, but...
I’d like to resell your CloudStack services, but...
ShapeBlue
 
Breaking it Down: Microservices Architecture for PHP Developers
Breaking it Down: Microservices Architecture for PHP DevelopersBreaking it Down: Microservices Architecture for PHP Developers
Breaking it Down: Microservices Architecture for PHP Developers
pmeth1
 
Partner Tableau Next Product First Call Deck.pdf
Partner Tableau Next Product First Call Deck.pdfPartner Tableau Next Product First Call Deck.pdf
Partner Tableau Next Product First Call Deck.pdf
ssuser3d62c6
 
Interactive SQL: SQL, Features of SQL, DDL & DML
Interactive SQL: SQL, Features of SQL,  DDL & DMLInteractive SQL: SQL, Features of SQL,  DDL & DML
Interactive SQL: SQL, Features of SQL, DDL & DML
IsakkiDeviP
 
Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
Eating Our Own Dog Food: How to be taken seriously when it comes to adding va...
UXPA Boston
 
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AIAI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
AI in Java - MCP in Action, Langchain4J-CDI, SmallRye-LLM, Spring AI
Buhake Sindi
 
"AI in the browser: predicting user actions in real time with TensorflowJS", ...
"AI in the browser: predicting user actions in real time with TensorflowJS", ..."AI in the browser: predicting user actions in real time with TensorflowJS", ...
"AI in the browser: predicting user actions in real time with TensorflowJS", ...
Fwdays
 
CloudStack + KVM: Your Local Cloud Lab
CloudStack + KVM:   Your Local Cloud LabCloudStack + KVM:   Your Local Cloud Lab
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
Build your own NES Emulator... with Kotlin
Build your own NES Emulator... with KotlinBuild your own NES Emulator... with Kotlin
Build your own NES Emulator... with Kotlin
Artur Skowroński
 
Building Agents with LangGraph & Gemini
Building Agents with LangGraph &  GeminiBuilding Agents with LangGraph &  Gemini
Building Agents with LangGraph & Gemini
HusseinMalikMammadli
 
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCPMCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
MCP Dev Summit - Pragmatic Scaling of Enterprise GenAI with MCP
Sambhav Kothari
 
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
Apache CloudStack 101 - Introduction, What’s New and What’s ComingApache CloudStack 101 - Introduction, What’s New and What’s Coming
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
Stretching CloudStack over multiple datacenters
Stretching CloudStack over multiple datacentersStretching CloudStack over multiple datacenters
Stretching CloudStack over multiple datacenters
ShapeBlue
 
The fundamental misunderstanding in Team Topologies
The fundamental misunderstanding in Team TopologiesThe fundamental misunderstanding in Team Topologies
The fundamental misunderstanding in Team Topologies
Patricia Aas
 
TAFs on WebDriver API - By - Pallavi Sharma.pdf
TAFs on WebDriver API - By - Pallavi Sharma.pdfTAFs on WebDriver API - By - Pallavi Sharma.pdf
TAFs on WebDriver API - By - Pallavi Sharma.pdf
Pallavi Sharma
 
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Outdated Tech, Invisible Expenses – How Data Silos Undermine Operational Effi...
Precisely
 
Assurance Best Practices: Unlocking Proactive Network Operations
Assurance Best Practices: Unlocking Proactive Network OperationsAssurance Best Practices: Unlocking Proactive Network Operations
Assurance Best Practices: Unlocking Proactive Network Operations
ThousandEyes
 
Fully Open-Source Private Clouds: Freedom, Security, and Control
Fully Open-Source Private Clouds: Freedom, Security, and ControlFully Open-Source Private Clouds: Freedom, Security, and Control
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
STKI Annual Israel IT Market Study 2025 .
STKI Annual Israel IT Market Study 2025 .STKI Annual Israel IT Market Study 2025 .
STKI Annual Israel IT Market Study 2025 .
Dr. Jimmy Schwarzkopf
 
Is Your QA Team Still Working in Silos? Here's What to Do.
Is Your QA Team Still Working in Silos? Here's What to Do.Is Your QA Team Still Working in Silos? Here's What to Do.
Is Your QA Team Still Working in Silos? Here's What to Do.
marketing943205
 
I’d like to resell your CloudStack services, but...
I’d like to resell your CloudStack services, but...I’d like to resell your CloudStack services, but...
I’d like to resell your CloudStack services, but...
ShapeBlue
 
Breaking it Down: Microservices Architecture for PHP Developers
Breaking it Down: Microservices Architecture for PHP DevelopersBreaking it Down: Microservices Architecture for PHP Developers
Breaking it Down: Microservices Architecture for PHP Developers
pmeth1
 
Partner Tableau Next Product First Call Deck.pdf
Partner Tableau Next Product First Call Deck.pdfPartner Tableau Next Product First Call Deck.pdf
Partner Tableau Next Product First Call Deck.pdf
ssuser3d62c6
 
Interactive SQL: SQL, Features of SQL, DDL & DML
Interactive SQL: SQL, Features of SQL,  DDL & DMLInteractive SQL: SQL, Features of SQL,  DDL & DML
Interactive SQL: SQL, Features of SQL, DDL & DML
IsakkiDeviP
 
Ad

Data exchange over internet (XML vs JSON)

  • 1. Data Exchange Over Internet JSON vs XML University of Engineering and Technology, Lahore
  • 2. • Introduction • Syntax • Tree • Namespace • Datatypes Supported • Parser • Data Access • XPath • XQuery • Introduction • Syntax • Datatypes Supported • Arrays • Objects • Parser • Data Access
  • 4. What is JSON? Let’s get familiar with JavaScript Object Notation 1
  • 5.  JSON is a format/syntax for storing and exchanging data.  JSON is text, written with JavaScript object notation. Breif Description  JSON is a lightweight data-interchange format  JSON is "self-describing" and easy to understand  JSON is language independent *
  • 6.  Data is in name/value pairs  Data is separated by commas  Curly braces hold objects  Square brackets hold arrays Syntax
  • 7.  Data Types JSON support: • string • number • object (JSON object) • array • boolean Data-Type • date • time • null
  • 8.  JSON objects are surrounded by curly braces { }.  JSON objects are written in key/value pairs.  Keys must be strings, and values must be a valid JSON data type.  Keys and values are separated by a colon. DataTypes - Objects  Each key/value pair is separated by a comma.
  • 9.  Arrays in JSON are almost the same as arrays in JavaScript.  In JSON, array values must be of type string, number, object, array, boolean or null. DataTypes - Arrays
  • 10.  When receiving data from a web server, the data is always a string.  Parse the data with JSON.parse(), and the data becomes a JavaScript object. Parser
  • 13. What is XML? Let’s get familiar with Extensible Markup Language 2
  • 14.  XML is a markup language much like HTML  XML was designed to store and transport data  HTML was designed to display data elegently Breif Description  XML Separates Data from Presentation  XML is Often a Complement to HTML  XML Separates Data from HTML
  • 15.  XML documents are formed as element trees  An XML tree starts at a root element and branches from the root to child elements  All elements can have sub elements (child elements) Syntax - Tree
  • 16.  XML may have conflict in tags - They are defined by developer  When using prefixes in XML, a namespace for the prefix must be defined.  The namespace declaration has the following syntax. xmlns:prefix="URI". Syntax - Namespace
  • 17.  Primitive types XML support: • string • decimal • integer • boolean • date • time Data-Type  Supports many complex data types including: • charts • graphs • images
  • 18.  Before an XML document can be accessed, it must be loaded into an XML DOM object.  All modern browsers have a built-in XML parser that can convert text into an XML DOM object. Parser
  • 19. Data Access - XPath
  • 20.  XQuery is the language for querying XML data  XQuery for XML is like SQL for databases  XQuery is built on XPath expressions  XQuery is supported by all major databases Data Access - XQuery
  • 23. Features of JSON ⬥ Usage is Straight-Forward ⬥ No need to create a Mapping ⬥ Better Performance ⬥ Clean Data Format ⬥ No Dependency
  • 24. Features of XML ⬥ Styled Processed Data can be Displayed by XSLT ⬥ Meta-Data can also be defined (DTD) ⬥ Provide Namespace for Accurate Results ⬥ Used in Information Exchanges like b2b transactions and b2c Transactions ⬥ Automated Tasks ⬥ InBuilt Error Handling
  • 25.  Easy to grasp  Creation and Manipulation are Easy and Light-Weight  All major languages frameworks support JSON  Transmission and Serialization of the Structured Data are done using a Network Connection Pros and Cons of JSON  JSON offers poor Extensibility as no Namespace Support  State Can not be Transferred
  • 26.  XML exchanges Data between different platforms. So, it connects different Systems and Applications  XML Separates the Data from HTML  XML Simplifies the Platform Change Process  Secure Data Transfer Pros and Cons of XML  XML requires processing application  XML syntax can sometimes be confusing as it is similar to other alternatives  No intrinsic/primitive data type support  The XML syntax is redundant
  • 27.  Scripting Language  Document-Oriented  Data is stored as Tree  Bulky and Slow  Stored data can be Processed Natively  Comments are Valid  XML supports UTF-8 and UTF-16 encodings Which is used Where?  File Format based on Javascript  Data-Oriented  Key-Value Pair  Fast and Reliable  No Processing is Avialable  Supports no Comments  JSON supports UTF as well as ASCII encodings.
  • 28.  Saperate Tags are used for each Item to use Array  XML can display with Elegent Styling  JSON is supported by most browsers  Supports Statefull Data Exchange  Mostly used in SOAP APIs Which is used Where?  Support Array as in JavaScript  JSON has no display capabilities  Cross-browser XML parsing can be tricky  State can not be preserved in JSON  Rest APIs mainly has JSON response
  • 29.  Simple Object Access Protocol  Data Transfer between Programs built on different Platforms and Programming Languages  SOAP is it’self a Protocol  SOAP only works with XML A Bird-Eye Overview  Representational State Transfer  Deals with Files, Media Components, or even Objects on a Particular Hardware Device  Use HTTP verbs of GET, POST, PUT and DELETE for working  Plain Text, XML, HTML and JSON. Rest APIs mainly has JSON response

Editor's Notes

  • #15: (XML Saparates Data from Presentation) XML does not carry any information about how to be displayed. The same XML data can be used in many different presentation scenarios. (XML is Complement toHTML) In many HTML applications, XML is used to store or transport data, while HTML is used to format and display the same data. (XML Saperate Data from HTML) When displaying data in HTML, you should not have to edit the HTML file when the data changes. With XML, the data can be stored in separate XML files. With a few lines of JavaScript code, you can read an XML file and update the data content of any HTML page.
  • #25: Extensible Style Language Transformer Document Type Defination
  • #30: Rest Architectural Fearure Client Server Stateless Cacheable Layered System Uniform Interface
  翻译: