SlideShare a Scribd company logo
Xml
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
XML


Zabeeb Anwar
zabeebanwar@gmail.com
www.facebook.com/zabeeba
  nwar
twitter.com/zabeebanwar
in.linkedin.com/in/zabeeb
+919895599689
XML
• eXtensible Markup Language
• XML is a meta markup language for text
  documents / textual data.
• XML allows to define languages (applications)
  to represent text documents / textual data
XML EXAMPLE
<article>
  <author>Gerhard Weikum</author>
  <title>The Web in 10 Years</title>
</article>

• Easy to understand for human users
• Very expressive (semantics along with the data)
• Well structured, easy to read and write from programs
THIS IS ALSO XML
<data>
 ch37fhgks73j5mv9d63h5mgfkds8d984lgnsmcns983
</data>

• Impossible to understand for human users
• Not expressive (no semantics along with the data)
• Unstructured, read and write only with special programs
• The actual benefit of using XML highly
  depends on the design of the application.
Quick Comparison
                                           XML
uses tags and attributes
           HTML
                                 uses tags and attributes
- content and formatting can     - content and format are
   be placed together                separate; formatting is
  <p><font=”Arial”>text</font>       contained in a stylesheet
- tags and attributes are pre-   - allows user to specify what
    determined and rigid             each tag and attribute
                                     means
XML schema
• The purpose of an XML Schema is to define the legal building
  blocks of an XML document, just like a DTD.
• An XML Schema:
   –   defines elements that can appear in a document
   –   defines attributes that can appear in a document
   –   defines which elements are child elements
   –   defines the order of child elements
   –   defines the number of child elements
   – Etc.
XML Documents Form a Tree Structure
• XML documents must contain a root element.
  This element is "the parent" of all other
  elements.
• The elements in an XML document form a
  document tree. The tree starts at the root and
  branches to the lowest level of the tree.
XML Syntax Rules
•   All XML Elements Must Have a Closing Tag
•   XML Tags are Case Sensitive
•   XML Elements Must be Properly Nested
•   XML Documents Must Have a Root Element
•   XML Attribute Values Must be Quoted
•   White-space is Preserved in XML
• What is a parser?

  – A program that analyses the grammatical
  structure of an input, with respect to a given
  formal grammar
• <article>
  <author>Gerhard Weikum</author>
  <title>The Web in 10 Years</title>
 </article>
Easy to understand for human users
Very expressive (semantics along with the
 data) Well structured, easy to read and write
 from programs
What is a XML Parser?
• It is a software library (or a package) that
  provides methods (or interfaces) for client
  applications to work with XML documents
• It checks the well-formattedness
• It may validate the documents
• It does a lot of other detailed things so that a
  client is shielded from that complexities
• We will consider two parsing methods



     SAX = Simple API for XML
     DOM = Document Object Model
SAX
• XML is read sequentially

• When a parsing event happens, the parser
  invokes the corresponding method of the
  corresponding handler
DOM
• Parser creates a tree object out of the
  document
• User accesses data by traversing the tree
  – The tree and its traversal conform to a W3C
    standard
• The API allows for constructing, accessing and
  manipulating the structure and content of
  XML documents
Glade XML Structure
• It represents an `instantiation' of an XML interface
  description. When object is created, the XML file is read, and
  the interface is created.
• The GladeXML object then provides an interface for accessing
  the widgets in the interface by the names assigned to them
  inside the XML description.
• The GladeXML object can also be used to connect handlers to
  the named signals in the description.
• Libglade provides an interface by which it can look up the
  signal handler names in the program's symbol table and
  automatically connect as many handlers up as it can.
GladeXML
Object Hierarchy
GObject +----
 GladeXML

typedef struct {
   GObject parent;
   char *filename; }
GladeXML;
GladeXMLClass
typedef struct
{
   GObjectClass parent_class;
  /* Virtual function: gets the appropriate gtype for
  the typename.*/
  GType (* lookup_type) (GladeXML*self, const char
  *gtypename);
} GladeXMLClass;
If this presentation helped you, please visit our
           page facebook.com/baabtra and like it.
               Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us

More Related Content

PPTX
Introduction to XML
PPT
02 well formed and valid documents
PDF
Basics and different xml files used in android
PPT
Introduction to XML
PDF
HTML and XML Difference FAQs
PPTX
Dom parser
Introduction to XML
02 well formed and valid documents
Basics and different xml files used in android
Introduction to XML
HTML and XML Difference FAQs
Dom parser

What's hot (20)

PPT
Xml Presentation-3
PPT
XML and Databases
PPT
XML Databases
PPTX
Xml processors
PDF
Introduction to XML and Databases
PPTX
Xml dom
PPTX
Intro xml
PDF
Introduction to XML
PPTX
Xml and xml processor
PPT
Understanding XML DOM
PPT
Markup Languages
PPTX
Xml presentation
PDF
Xml databases
PPT
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
PPT
XML for beginners
Xml Presentation-3
XML and Databases
XML Databases
Xml processors
Introduction to XML and Databases
Xml dom
Intro xml
Introduction to XML
Xml and xml processor
Understanding XML DOM
Markup Languages
Xml presentation
Xml databases
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
XML for beginners
Ad
Ad

Similar to Xml (20)

PDF
PPT
Xml iet 2015
DOCX
Oracle soa xml faq
PPT
XML Presentation-2
PPTX
Web data management (chapter-1)
PPTX
Xml and xml processor
PDF
light_xml
PPTX
PPTX
Extensible Markup Language(XML)_lecture.pptx
PDF
Module 5 XML Notes.pdf
PPT
eXtensible Markup Language (By Dr.Hatem Mohamed)
PPT
PPTX
Unit3wt
PPTX
Unit3wt
DOCX
Xml viva questions
PPT
Introduction to xml
PPTX
XML - Extensible Markup Language for Network Security.pptx
Xml iet 2015
Oracle soa xml faq
XML Presentation-2
Web data management (chapter-1)
Xml and xml processor
light_xml
Extensible Markup Language(XML)_lecture.pptx
Module 5 XML Notes.pdf
eXtensible Markup Language (By Dr.Hatem Mohamed)
Unit3wt
Unit3wt
Xml viva questions
Introduction to xml
XML - Extensible Markup Language for Network Security.pptx

More from baabtra.com - No. 1 supplier of quality freshers (20)

PPTX
Agile methodology and scrum development
PDF
Baabtra.com programming at school
PDF
99LMS for Enterprises - LMS that you will love
PPTX
Chapter 6 database normalisation
PPTX
Chapter 5 transactions and dcl statements
PPTX
Chapter 4 functions, views, indexing
PPTX
PPTX
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
PPTX
Chapter 1 introduction to sql server
PPTX
Chapter 1 introduction to sql server
Agile methodology and scrum development
Baabtra.com programming at school
99LMS for Enterprises - LMS that you will love
Chapter 6 database normalisation
Chapter 5 transactions and dcl statements
Chapter 4 functions, views, indexing
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 1 introduction to sql server
Chapter 1 introduction to sql server

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Spectroscopy.pptx food analysis technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Electronic commerce courselecture one. Pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Spectroscopy.pptx food analysis technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.

Xml

  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. XML Zabeeb Anwar zabeebanwar@gmail.com www.facebook.com/zabeeba nwar twitter.com/zabeebanwar in.linkedin.com/in/zabeeb +919895599689
  • 4. XML • eXtensible Markup Language • XML is a meta markup language for text documents / textual data. • XML allows to define languages (applications) to represent text documents / textual data
  • 5. XML EXAMPLE <article> <author>Gerhard Weikum</author> <title>The Web in 10 Years</title> </article> • Easy to understand for human users • Very expressive (semantics along with the data) • Well structured, easy to read and write from programs
  • 6. THIS IS ALSO XML <data> ch37fhgks73j5mv9d63h5mgfkds8d984lgnsmcns983 </data> • Impossible to understand for human users • Not expressive (no semantics along with the data) • Unstructured, read and write only with special programs
  • 7. • The actual benefit of using XML highly depends on the design of the application.
  • 8. Quick Comparison XML uses tags and attributes HTML uses tags and attributes - content and formatting can - content and format are be placed together separate; formatting is <p><font=”Arial”>text</font> contained in a stylesheet - tags and attributes are pre- - allows user to specify what determined and rigid each tag and attribute means
  • 9. XML schema • The purpose of an XML Schema is to define the legal building blocks of an XML document, just like a DTD. • An XML Schema: – defines elements that can appear in a document – defines attributes that can appear in a document – defines which elements are child elements – defines the order of child elements – defines the number of child elements – Etc.
  • 10. XML Documents Form a Tree Structure • XML documents must contain a root element. This element is "the parent" of all other elements. • The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.
  • 11. XML Syntax Rules • All XML Elements Must Have a Closing Tag • XML Tags are Case Sensitive • XML Elements Must be Properly Nested • XML Documents Must Have a Root Element • XML Attribute Values Must be Quoted • White-space is Preserved in XML
  • 12. • What is a parser? – A program that analyses the grammatical structure of an input, with respect to a given formal grammar
  • 13. • <article> <author>Gerhard Weikum</author> <title>The Web in 10 Years</title> </article> Easy to understand for human users Very expressive (semantics along with the data) Well structured, easy to read and write from programs
  • 14. What is a XML Parser? • It is a software library (or a package) that provides methods (or interfaces) for client applications to work with XML documents • It checks the well-formattedness • It may validate the documents • It does a lot of other detailed things so that a client is shielded from that complexities
  • 15. • We will consider two parsing methods SAX = Simple API for XML DOM = Document Object Model
  • 16. SAX • XML is read sequentially • When a parsing event happens, the parser invokes the corresponding method of the corresponding handler
  • 17. DOM • Parser creates a tree object out of the document • User accesses data by traversing the tree – The tree and its traversal conform to a W3C standard • The API allows for constructing, accessing and manipulating the structure and content of XML documents
  • 18. Glade XML Structure • It represents an `instantiation' of an XML interface description. When object is created, the XML file is read, and the interface is created. • The GladeXML object then provides an interface for accessing the widgets in the interface by the names assigned to them inside the XML description. • The GladeXML object can also be used to connect handlers to the named signals in the description. • Libglade provides an interface by which it can look up the signal handler names in the program's symbol table and automatically connect as many handlers up as it can.
  • 19. GladeXML Object Hierarchy GObject +---- GladeXML typedef struct { GObject parent; char *filename; } GladeXML;
  • 20. GladeXMLClass typedef struct { GObjectClass parent_class; /* Virtual function: gets the appropriate gtype for the typename.*/ GType (* lookup_type) (GladeXML*self, const char *gtypename); } GladeXMLClass;
  • 21. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com