SlideShare a Scribd company logo
XML Parser
HTML VS XML
XML Parsers
➢ An XML parser is a software library or package that provides interfaces for client
applications to work with an XML document.
➢ The XML Parser is designed to read the XML and create a way for programs to
use XML.
➢ XML parser validates the document and check that the document is well
formatted
Xml parser
Types of Xml Parsers
There are 2 main types they are:
➢ DOM
➢ SAX
Features:
➢ A DOM Parser creates
an internal structure in
memory which is a DOM
document object and
the client applications
get information of the
original XML document
by invoking methods on
this document object.
➢ DOM Parser has a tree
based structure.
DOM (Document Object Model)
Advantages:
➢ It supports both read
and write operations
and the API is very
simple to use.
➢ It is preferred when
random access to
widely separated parts
of a document is
required.
Disadvantages:
➢ It is memory inefficient.
(consumes more
memory because the
whole XML document
needs to loaded into
memory).
➢ It is comparatively
slower than other
parsers.
Xml parser
Features:
A SAX Parser implements
SAX API. This API is an
event based API and less
intuitive.
SAX (Simple API for XML)
Advantages:
➢ It is simple and
memory efficient.
➢ It is very fast and
works for huge
documents.
Disadvantages:
➢ It is event-based so its
API is less intuitive.
➢ Clients never know
the full information
because the data is
broken into pieces.
Xml parser
Reference:
https://www.javatpoint.com/xml-pars
ers
Done By:
Sooriya G
1700056
III Year
Thank You

More Related Content

PDF
Replication with postgres and Getting started with Logical Replication
PDF
Advanced database protocols
PDF
Measures of query cost
PPTX
Xml attribute blowup
PDF
The XML Forms Architecture
PDF
Multi-language database design appoaches
PPTX
Java Server Pages
PDF
Functionaly Separated Web Development
Replication with postgres and Getting started with Logical Replication
Advanced database protocols
Measures of query cost
Xml attribute blowup
The XML Forms Architecture
Multi-language database design appoaches
Java Server Pages
Functionaly Separated Web Development

Similar to Xml parser (20)

PPTX
Xml and xml processor
PPTX
Xml and xml processor
PPT
PDF
Introduction to xml
PDF
Xml parsing
PPTX
Unit iv xml dom
PPTX
PDF
Parsing XML in J2ME
PPTX
mobile computing XML_and_Mobile_Applications[1].pptx
PDF
Python xml processing
PPTX
Xml dom
PPTX
Dom parser
PDF
93 peter butterfield
PPT
uptu web technology unit 2 Xml2
PDF
Humans should not write XML.
Xml and xml processor
Xml and xml processor
Introduction to xml
Xml parsing
Unit iv xml dom
Parsing XML in J2ME
mobile computing XML_and_Mobile_Applications[1].pptx
Python xml processing
Xml dom
Dom parser
93 peter butterfield
uptu web technology unit 2 Xml2
Humans should not write XML.
Ad

More from Soori Joy (11)

PPTX
Agile for beginers by sooriya g
PPTX
Henry howard
PPTX
Piezoelectric generator
PPTX
Sun tracking solar panel
PPTX
Sun tracking solar panel (zeroth review)
PPTX
Honeywell inc..,
PPTX
Zspace
PPTX
Solid waste management
PPTX
Radio frequency identification(rfid)
PPTX
Augmented reality & virtual reality
PDF
Test process
Agile for beginers by sooriya g
Henry howard
Piezoelectric generator
Sun tracking solar panel
Sun tracking solar panel (zeroth review)
Honeywell inc..,
Zspace
Solid waste management
Radio frequency identification(rfid)
Augmented reality & virtual reality
Test process
Ad

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Sports Quiz easy sports quiz sports quiz
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Cell Structure & Organelles in detailed.
Abdominal Access Techniques with Prof. Dr. R K Mishra
Sports Quiz easy sports quiz sports quiz
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial disease of the cardiovascular and lymphatic systems
102 student loan defaulters named and shamed – Is someone you know on the list?
PPH.pptx obstetrics and gynecology in nursing
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
Computing-Curriculum for Schools in Ghana
GDM (1) (1).pptx small presentation for students
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Cell Types and Its function , kingdom of life
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cell Structure & Organelles in detailed.

Xml parser

  • 3. XML Parsers ➢ An XML parser is a software library or package that provides interfaces for client applications to work with an XML document. ➢ The XML Parser is designed to read the XML and create a way for programs to use XML. ➢ XML parser validates the document and check that the document is well formatted
  • 5. Types of Xml Parsers There are 2 main types they are: ➢ DOM ➢ SAX
  • 6. Features: ➢ A DOM Parser creates an internal structure in memory which is a DOM document object and the client applications get information of the original XML document by invoking methods on this document object. ➢ DOM Parser has a tree based structure. DOM (Document Object Model) Advantages: ➢ It supports both read and write operations and the API is very simple to use. ➢ It is preferred when random access to widely separated parts of a document is required. Disadvantages: ➢ It is memory inefficient. (consumes more memory because the whole XML document needs to loaded into memory). ➢ It is comparatively slower than other parsers.
  • 8. Features: A SAX Parser implements SAX API. This API is an event based API and less intuitive. SAX (Simple API for XML) Advantages: ➢ It is simple and memory efficient. ➢ It is very fast and works for huge documents. Disadvantages: ➢ It is event-based so its API is less intuitive. ➢ Clients never know the full information because the data is broken into pieces.