SlideShare a Scribd company logo
1 of 13
SAX (SIMPLE API FOR XML)
PRESENTED BY:
TILAK POUDEL
NEPATHYA COLLEGE
6TH SEMESTER
SAX (SIMPLE API FOR XML)
• INTRIODUCTION:
• SAX (SIMPLE API FOR XML) IS AN EVENT-DRIVEN ONLINE
ALGORITHM FOR PARSING XML DOCUMENTS, WITH AN API DEVELOPED BY THE
XML-DEV MAILING LIST.
• SAX PROVIDES A MECHANISM FOR READING DATA FROM AN XML DOCUMENT
THAT IS AN ALTERNATIVE TO THAT PROVIDED BY THE DOCUMENT OBJECT
MODEL (DOM).
• SAX GENERETES NO PARSE TREE
SAX (SIMPLE API FOR XML)
• WHERE THE DOM OPERATES ON THE DOCUMENT AS A WHOLE, I.E. BUILDING THE
FULL AST OF AN XML DOCUMENT FOR CONVENIENCE OF THE USER.
• SAX PARSERS OPERATE ON EACH PIECE OF THE XML DOCUMENT SEQUENTIALLY,
ISSUING PARSING EVENTS WHILE MAKING SINGLE PASS THROUGH THE INPUT
STREAM..
• SAX PROCESSES DOCUMENTS STATE-INDEPENDENTLY, IN CONTRAST TO DOM
WHICH IS USED FOR STATE-DEPENDENT PROCESSING OF XML DOCUMENTS
• SAX IS AN EVENT-DRIVEN INTERFACE.
• THE PROGRAMMER SPECIFIES AN EVENT THAT MAY HAPPEN AND, IF IT DOES,
SAX GETS CONTROL AND HANDLES THE SITUATION.
WHEN TO USE SAX?
SAX IS USED WHEN:
• THE XML DOCUMENT IS PROCESSED IN A LINEAR FASHION FROM TOP TO
BOTTOM.
• THE DOCUMENT IS NOT DEEPLY ROOTED.
• VERY LARGE XML DOCUMENT IS PROCESSED WHOSE DOM TREE WOULD
CONSUME TOO MUCH MEMORY.
• THE PROBLEM TO BE SOLVED INVOLVES ONLY PART OF THE XML DOCUMENT.
DISADVANTAGES OF SAX
• WE HAVE NO RANDOM ACCESS TO AN XML DOCUMENT SINCE IT IS PROCESSED
IN A FORWARD ONLY MANNER.
• SAX IS READ ONLY PARSER.
FOR MORE DETAIL
PLEASE DO VISIT
• SOURCE::HTTPS://EN.WIKIPEDIA.ORG/WIKI/SIMPLE_API_FOR_XML
 THANK YOU 

More Related Content

What's hot

Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHPNisa Soomro
 
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScriptpcnmtutorials
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecturetahir khan
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events WebStackAcademy
 
Oops concepts in php
Oops concepts in phpOops concepts in php
Oops concepts in phpCPD INDIA
 
JavaScript - Chapter 8 - Objects
 JavaScript - Chapter 8 - Objects JavaScript - Chapter 8 - Objects
JavaScript - Chapter 8 - ObjectsWebStackAcademy
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScriptAndres Baravalle
 
Http request and http response
Http request and http responseHttp request and http response
Http request and http responseNuha Noor
 
Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Adnan Sohail
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Timbal Mayank
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentationengcs2008
 

What's hot (20)

Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHP
 
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript
2. Classes | Object Oriented Programming in JavaScript | ES6 | JavaScript
 
XSLT.ppt
XSLT.pptXSLT.ppt
XSLT.ppt
 
WSDL
WSDLWSDL
WSDL
 
Implicit object.pptx
Implicit object.pptxImplicit object.pptx
Implicit object.pptx
 
jQuery
jQueryjQuery
jQuery
 
PHP - Introduction to PHP AJAX
PHP -  Introduction to PHP AJAXPHP -  Introduction to PHP AJAX
PHP - Introduction to PHP AJAX
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
 
Oops concepts in php
Oops concepts in phpOops concepts in php
Oops concepts in php
 
JavaScript - Chapter 8 - Objects
 JavaScript - Chapter 8 - Objects JavaScript - Chapter 8 - Objects
JavaScript - Chapter 8 - Objects
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
 
Http request and http response
Http request and http responseHttp request and http response
Http request and http response
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)
 
Files in php
Files in phpFiles in php
Files in php
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 

Similar to SAX (20)

XML - SAX
XML - SAXXML - SAX
XML - SAX
 
X Usax Pdf
X Usax PdfX Usax Pdf
X Usax Pdf
 
Unit 2.3
Unit 2.3Unit 2.3
Unit 2.3
 
Unit 2.3
Unit 2.3Unit 2.3
Unit 2.3
 
Python xml processing
Python   xml processingPython   xml processing
Python xml processing
 
Understanding Sax
Understanding SaxUnderstanding Sax
Understanding Sax
 
Json - ideal for data interchange
Json - ideal for data interchangeJson - ideal for data interchange
Json - ideal for data interchange
 
Service Oriented Architecture - Unit II - Sax
Service Oriented Architecture - Unit II - Sax Service Oriented Architecture - Unit II - Sax
Service Oriented Architecture - Unit II - Sax
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
JAXP
JAXPJAXP
JAXP
 
XML
XMLXML
XML
 
Introduction to AJAX
Introduction to AJAXIntroduction to AJAX
Introduction to AJAX
 
Xml3
Xml3Xml3
Xml3
 
Xml3
Xml3Xml3
Xml3
 
Xml parsing
Xml parsingXml parsing
Xml parsing
 
Xml serialization
Xml serializationXml serialization
Xml serialization
 
Soa 12 jax ws-xml Java API for web services
Soa 12 jax ws-xml Java API for web servicesSoa 12 jax ws-xml Java API for web services
Soa 12 jax ws-xml Java API for web services
 
Amazon Elasticsearch and Databases
Amazon Elasticsearch and DatabasesAmazon Elasticsearch and Databases
Amazon Elasticsearch and Databases
 
Cetpa dotnet taining
Cetpa dotnet tainingCetpa dotnet taining
Cetpa dotnet taining
 
XMl
XMlXMl
XMl
 

More from Tilakpoudel2

Motivation in software project development
Motivation in software project developmentMotivation in software project development
Motivation in software project developmentTilakpoudel2
 
Basic blocks and control flow graphs
Basic blocks and control flow graphsBasic blocks and control flow graphs
Basic blocks and control flow graphsTilakpoudel2
 
Advantages and disadvantages of Simulation
Advantages and disadvantages of SimulationAdvantages and disadvantages of Simulation
Advantages and disadvantages of SimulationTilakpoudel2
 
Output analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasOutput analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasTilakpoudel2
 
Markov chain and its Application
Markov chain and its Application Markov chain and its Application
Markov chain and its Application Tilakpoudel2
 

More from Tilakpoudel2 (6)

Motivation in software project development
Motivation in software project developmentMotivation in software project development
Motivation in software project development
 
Basic blocks and control flow graphs
Basic blocks and control flow graphsBasic blocks and control flow graphs
Basic blocks and control flow graphs
 
Advantages and disadvantages of Simulation
Advantages and disadvantages of SimulationAdvantages and disadvantages of Simulation
Advantages and disadvantages of Simulation
 
Output analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasOutput analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial Bias
 
Expert system
Expert systemExpert system
Expert system
 
Markov chain and its Application
Markov chain and its Application Markov chain and its Application
Markov chain and its Application
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

SAX

  • 1. SAX (SIMPLE API FOR XML) PRESENTED BY: TILAK POUDEL NEPATHYA COLLEGE 6TH SEMESTER
  • 2. SAX (SIMPLE API FOR XML) • INTRIODUCTION: • SAX (SIMPLE API FOR XML) IS AN EVENT-DRIVEN ONLINE ALGORITHM FOR PARSING XML DOCUMENTS, WITH AN API DEVELOPED BY THE XML-DEV MAILING LIST. • SAX PROVIDES A MECHANISM FOR READING DATA FROM AN XML DOCUMENT THAT IS AN ALTERNATIVE TO THAT PROVIDED BY THE DOCUMENT OBJECT MODEL (DOM). • SAX GENERETES NO PARSE TREE
  • 3. SAX (SIMPLE API FOR XML) • WHERE THE DOM OPERATES ON THE DOCUMENT AS A WHOLE, I.E. BUILDING THE FULL AST OF AN XML DOCUMENT FOR CONVENIENCE OF THE USER. • SAX PARSERS OPERATE ON EACH PIECE OF THE XML DOCUMENT SEQUENTIALLY, ISSUING PARSING EVENTS WHILE MAKING SINGLE PASS THROUGH THE INPUT STREAM..
  • 4. • SAX PROCESSES DOCUMENTS STATE-INDEPENDENTLY, IN CONTRAST TO DOM WHICH IS USED FOR STATE-DEPENDENT PROCESSING OF XML DOCUMENTS • SAX IS AN EVENT-DRIVEN INTERFACE. • THE PROGRAMMER SPECIFIES AN EVENT THAT MAY HAPPEN AND, IF IT DOES, SAX GETS CONTROL AND HANDLES THE SITUATION.
  • 5. WHEN TO USE SAX? SAX IS USED WHEN: • THE XML DOCUMENT IS PROCESSED IN A LINEAR FASHION FROM TOP TO BOTTOM. • THE DOCUMENT IS NOT DEEPLY ROOTED. • VERY LARGE XML DOCUMENT IS PROCESSED WHOSE DOM TREE WOULD CONSUME TOO MUCH MEMORY. • THE PROBLEM TO BE SOLVED INVOLVES ONLY PART OF THE XML DOCUMENT.
  • 6.
  • 7. DISADVANTAGES OF SAX • WE HAVE NO RANDOM ACCESS TO AN XML DOCUMENT SINCE IT IS PROCESSED IN A FORWARD ONLY MANNER. • SAX IS READ ONLY PARSER.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. FOR MORE DETAIL PLEASE DO VISIT • SOURCE::HTTPS://EN.WIKIPEDIA.ORG/WIKI/SIMPLE_API_FOR_XML