Download - Session01 XML Intro Overview
-
8/14/2019 Session01 XML Intro Overview
1/12
2008 MindTree Consulting
XML Introduction
XML Programming Overview
Sep-2009
-
8/14/2019 Session01 XML Intro Overview
2/12
Slide 2
Agenda
Introduction to XML
Need for XML
-
8/14/2019 Session01 XML Intro Overview
3/12
Slide 3
Brief History of XML
Developed in 1996 by W3C.
A subset of and based upon SGML (Standard Generalized Markup
Language).
Originally designed to meet the challenges of large-scale electronic
publishing.
Designed to be both machine readable and human readable.
-
8/14/2019 Session01 XML Intro Overview
4/12
Slide 4
What is XML?
XML provides a platform-neutral, language-independent means ofdescribing data.
XML documents can be validated in many ways to ensure consistent
format.
XML allows us to define your own tags, so we can create our own
markup languages.
The XML specification is owned by W3C
XML is about the description of data, and not its presentation.
-
8/14/2019 Session01 XML Intro Overview
5/12
Slide 5
Cont..
XML Extensible Markup Language
Based upon HTML
Describe your own tags
Uses DTD ( Document Type Definition ) to describe the data
XML is not a replacement for HTML
XML is a language for creating other languages
Documents follow the custom language a user develops from XML
Labeled information in XML can be reused
Need to follow the rules accordingly
-
8/14/2019 Session01 XML Intro Overview
6/12
-
8/14/2019 Session01 XML Intro Overview
7/12Slide 7
XML Syntax
XML uses a tag markup syntax similar to HTML.XML is case sensitive
is not the same as
Elements
Element is the basic container for content
Tags
Start tag
Contains element type name
End tag
Empty element tag
Attribute Tag Content Tag
Element
Employee
-
8/14/2019 Session01 XML Intro Overview
8/12Slide 8
Well formed XML - example
Suraj
Kumar
Verma
IT Services
C2
, even these symbols don't bother it.]]>
AbhiDhar
R&D Services
-
8/14/2019 Session01 XML Intro Overview
9/12Slide 9
Valid XML
Why validate XML at all?
Valid XML data is well-formed data that also complies with syntax,
structural and other rules as defined in a Document Type
Definition.
Alternatives to DTD
XML Schema
XML Data
-
8/14/2019 Session01 XML Intro Overview
10/12Slide 10
XML Parsers
Two common XML Parser specificationsDOM
SAX
When to user SAX
Large document handling
Retrieving a specific value from a document
Creating a subset document
When to use DOMModifying the document
Random access
-
8/14/2019 Session01 XML Intro Overview
11/12Slide 11
Questions
-
8/14/2019 Session01 XML Intro Overview
12/12Slide 12
Thank you
XML Technology, Semester 4
SICSR Executive MBA(IT) @ MindTree, Bangalore, India
By Neeraj Singh (toneeraj(AT)
gmail(DOT)
com
)
mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]