SlideShare une entreprise Scribd logo
1  sur  20
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
XML?

• eXtensible Markup Language
• A meta language that allows you to create and format your
  own document markups
• A method for putting structured data into a text file; these
  files are
        - easy to read
        - unambiguous
        - extensible
        - platform-independent
xml

•    Important because it removes two constraints which were
     holding back Web developments:
    1. dependence on a single, inflexible document type
        (HTML);
    2. the complexity of full SGML, whose syntax allows
        many powerful but hard-to-program options
Quick Comparison

         HTML                               XML
uses tags and attributes          uses tags and attributes
- content and formatting can be   - content and format are
   placed together                   separate; formatting is
                                     contained in a stylesheet
                                  - allows user to specify what
    <p><font=”Arial”>text</fo        each tag and attribute means
    nt>
- tags and attributes are pre-
    determined and rigid
• 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
XML Parser

• 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
XML Schemas

• “Schemas” is a general term--DTDs are a form of
  XMLschemas
   – According to the dictionary, a schema is “a structured
     framework or plan”
• When we say “XML Schemas,” we usually mean the W3C
  XML Schema Language
   – This is also known as “XML Schema Definition” language,
     or XSD
XML Schema Requirements

• Structural
       – namespaces
       – primitive types & structural schema
  integration
       – inheritance
Data type
  – integers, dates, … (like in languages)
  – user-defined (constrain some properties)
XML Schema Requirements

• Conformance
      – processors, validity
Example:
Glade XML Structure

• The GladeXML object then provides an interface for accessing
   the widgets in the interface by the names assigned to them
   inside the XML description.
• Object Hierarchy
  GObject +----
  GladeXML
Glade XML Structure

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

Contenu connexe

Tendances

Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 

Tendances (20)

[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina
[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina
[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Introduction to DOM
Introduction to DOMIntroduction to DOM
Introduction to DOM
 
Dom
Dom Dom
Dom
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
The Document Object Model
The Document Object ModelThe Document Object Model
The Document Object Model
 
Laura Dawson: An Intro to StartWithXML
Laura Dawson: An Intro to StartWithXMLLaura Dawson: An Intro to StartWithXML
Laura Dawson: An Intro to StartWithXML
 
[WSO2Con EU 2017] Introduction to Ballerina
[WSO2Con EU 2017] Introduction to Ballerina[WSO2Con EU 2017] Introduction to Ballerina
[WSO2Con EU 2017] Introduction to Ballerina
 
Document object model
Document object modelDocument object model
Document object model
 
GIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLsGIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLs
 
Oracle Database Interview Questions -PART 1 | sql, plsql, dbms, scenario base...
Oracle Database Interview Questions -PART 1 | sql, plsql, dbms, scenario base...Oracle Database Interview Questions -PART 1 | sql, plsql, dbms, scenario base...
Oracle Database Interview Questions -PART 1 | sql, plsql, dbms, scenario base...
 
Apache big data 2016 - Speaking the language of Big Data
Apache big data 2016 - Speaking the language of Big DataApache big data 2016 - Speaking the language of Big Data
Apache big data 2016 - Speaking the language of Big Data
 
Couch db
Couch dbCouch db
Couch db
 
INFT132 093 04 HTML and XHTML
INFT132 093 04 HTML and XHTMLINFT132 093 04 HTML and XHTML
INFT132 093 04 HTML and XHTML
 
1 wordprocessing ml subject - main document
1   wordprocessing ml subject - main document1   wordprocessing ml subject - main document
1 wordprocessing ml subject - main document
 
Building drupal-sites-using-cck-views-and-panels
Building drupal-sites-using-cck-views-and-panelsBuilding drupal-sites-using-cck-views-and-panels
Building drupal-sites-using-cck-views-and-panels
 
Jarrar: Data Schema Integration
Jarrar: Data Schema IntegrationJarrar: Data Schema Integration
Jarrar: Data Schema Integration
 
RELAX NG to DTD and XSD Using the Open Toolkit
RELAX NG to DTD and XSD Using the Open ToolkitRELAX NG to DTD and XSD Using the Open Toolkit
RELAX NG to DTD and XSD Using the Open Toolkit
 
NiFi - First approach
NiFi - First approachNiFi - First approach
NiFi - First approach
 
Custom Requirement Attributes
Custom Requirement AttributesCustom Requirement Attributes
Custom Requirement Attributes
 

En vedette (8)

Servlet
ServletServlet
Servlet
 
Pythonclass
PythonclassPythonclass
Pythonclass
 
Jvm
JvmJvm
Jvm
 
Dom structures
Dom structuresDom structures
Dom structures
 
Exceptions in python
Exceptions in pythonExceptions in python
Exceptions in python
 
Pygtk
PygtkPygtk
Pygtk
 
Industrial training it industry session 1
Industrial training it industry session 1Industrial training it industry session 1
Industrial training it industry session 1
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 

Similaire à Xml

Data interchange integration, HTML XML Biological XML DTD
Data interchange integration, HTML XML Biological XML DTDData interchange integration, HTML XML Biological XML DTD
Data interchange integration, HTML XML Biological XML DTD
AnushaMahmood
 

Similaire à Xml (20)

Xml
XmlXml
Xml
 
Xml
XmlXml
Xml
 
XML
XMLXML
XML
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
 
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
 
1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
 
Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)Markup For Dummies (Russ Ward)
Markup For Dummies (Russ Ward)
 
XML
XMLXML
XML
 
Xml iet 2015
Xml iet 2015Xml iet 2015
Xml iet 2015
 
Xml
XmlXml
Xml
 
Java Web Services
Java Web ServicesJava Web Services
Java Web Services
 
XML
XMLXML
XML
 
Data interchange integration, HTML XML Biological XML DTD
Data interchange integration, HTML XML Biological XML DTDData interchange integration, HTML XML Biological XML DTD
Data interchange integration, HTML XML Biological XML DTD
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
 
Tutor Xml Gxs
Tutor Xml GxsTutor Xml Gxs
Tutor Xml Gxs
 
4 wordprocessing ml subject - custom markup
4   wordprocessing ml subject - custom markup4   wordprocessing ml subject - custom markup
4 wordprocessing ml subject - custom markup
 
XML, XML Databases and MPEG-7
XML, XML Databases and MPEG-7XML, XML Databases and MPEG-7
XML, XML Databases and MPEG-7
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
 
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
 

Plus de baabtra.com - No. 1 supplier of quality freshers

Plus de baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Xml

  • 1.
  • 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
  • 4. XML? • eXtensible Markup Language • A meta language that allows you to create and format your own document markups • A method for putting structured data into a text file; these files are - easy to read - unambiguous - extensible - platform-independent
  • 5. xml • Important because it removes two constraints which were holding back Web developments: 1. dependence on a single, inflexible document type (HTML); 2. the complexity of full SGML, whose syntax allows many powerful but hard-to-program options
  • 6. Quick Comparison HTML XML uses tags and attributes uses tags and attributes - content and formatting can be - content and format are placed together separate; formatting is contained in a stylesheet - allows user to specify what <p><font=”Arial”>text</fo each tag and attribute means nt> - tags and attributes are pre- determined and rigid
  • 7. • What is a parser? – A program that analyses the grammatical structure of an input, with respect to a given formal grammar
  • 8. • <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
  • 9. 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
  • 10. XML Parser • We will consider two parsing methods SAX = Simple API for XML DOM = Document Object Model
  • 11. SAX • XML is read sequentially • When a parsing event happens, the parser invokes the corresponding method of the corresponding handler
  • 12. 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
  • 13. XML Schemas • “Schemas” is a general term--DTDs are a form of XMLschemas – According to the dictionary, a schema is “a structured framework or plan” • When we say “XML Schemas,” we usually mean the W3C XML Schema Language – This is also known as “XML Schema Definition” language, or XSD
  • 14. XML Schema Requirements • Structural – namespaces – primitive types & structural schema integration – inheritance Data type – integers, dates, … (like in languages) – user-defined (constrain some properties)
  • 15. XML Schema Requirements • Conformance – processors, validity Example:
  • 16. Glade XML Structure • The GladeXML object then provides an interface for accessing the widgets in the interface by the names assigned to them inside the XML description. • Object Hierarchy GObject +---- GladeXML
  • 17. Glade XML Structure typedef struct { GObject parent; char *filename; } GladeXML;
  • 18. GladeXMLClass typedef struct { GObjectClass parent_class; /* Virtual function: gets the appropriate gtype for the typename.*/ GType (* lookup_type) (GladeXML*self, const char *gtypename); } GladeXMLClass;
  • 19. 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