SlideShare a Scribd company logo
1 of 11
Download to read offline
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
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.
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.
Reference:
https://www.javatpoint.com/xml-pars
ers
Done By:
Sooriya G
1700056
III Year
Thank You

More Related Content

Similar to Xml parser

Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
soumya
 

Similar to Xml parser (20)

Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
XML
XMLXML
XML
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml parsing
Xml parsingXml parsing
Xml parsing
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
 
Xml parsing in codeigniter
Xml parsing in codeigniterXml parsing in codeigniter
Xml parsing in codeigniter
 
Parsing XML in J2ME
Parsing XML in J2MEParsing XML in J2ME
Parsing XML in J2ME
 
Python xml processing
Python   xml processingPython   xml processing
Python xml processing
 
DOM-XML
DOM-XMLDOM-XML
DOM-XML
 
Xml dom
Xml domXml dom
Xml dom
 
Xml3
Xml3Xml3
Xml3
 
Xml
XmlXml
Xml
 
Dom parser
Dom parserDom parser
Dom parser
 
93 peter butterfield
93 peter butterfield93 peter butterfield
93 peter butterfield
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
XMl
XMlXMl
XMl
 
WEB TECHNOLOGIES XML
WEB TECHNOLOGIES XMLWEB TECHNOLOGIES XML
WEB TECHNOLOGIES XML
 
Humans should not write XML.
Humans should not write XML.Humans should not write XML.
Humans should not write XML.
 
X Usax Pdf
X Usax PdfX Usax Pdf
X Usax Pdf
 

More from Soori Joy

More from Soori Joy (11)

Agile for beginers by sooriya g
Agile for beginers by sooriya gAgile for beginers by sooriya g
Agile for beginers by sooriya g
 
Henry howard
Henry howardHenry howard
Henry howard
 
Piezoelectric generator
Piezoelectric generator Piezoelectric generator
Piezoelectric generator
 
Sun tracking solar panel
Sun tracking solar panelSun tracking solar panel
Sun tracking solar panel
 
Sun tracking solar panel (zeroth review)
Sun tracking solar panel (zeroth review)Sun tracking solar panel (zeroth review)
Sun tracking solar panel (zeroth review)
 
Honeywell inc..,
Honeywell inc..,Honeywell inc..,
Honeywell inc..,
 
Zspace
ZspaceZspace
Zspace
 
Solid waste management
Solid waste managementSolid waste management
Solid waste management
 
Radio frequency identification(rfid)
Radio frequency identification(rfid)Radio frequency identification(rfid)
Radio frequency identification(rfid)
 
Augmented reality & virtual reality
Augmented reality & virtual realityAugmented reality & virtual reality
Augmented reality & virtual reality
 
Test process
Test processTest process
Test process
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 

Recently uploaded (20)

OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 

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
  • 4.
  • 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.
  • 7.
  • 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.
  • 9.