SlideShare una empresa de Scribd logo
1 de 20
XMLxml
xml
xml xml
xml
xml xml
xml
What is XML
•XML stands for EXtensible Markup Language
•XML was designed to carry data, not to display data
• XML developed by the World Wide Web
Consortium (www.W3C.org)
•
• XML like HTML is a mark up language, but
unlike HTML it doesn’t have predefined
elements
XML Versions
There are two current versions of XML:
v version XML 1.0 was initially defined in 1998
vversion XML 1.1 was initially published on 4th Feb 2004
Example language of xml structure
q XHTML
q WML AND WAP
q SVG
Uses XML
ü WEB DEVELOPER
ü TRANSPORTING AND SHARING DATA
ü STORING DATA
ü DOCUMENTATION
ü ANDROID DEVELOPER
XML Doc Advantages
q Easy data sharing, text documents are
readable between any device.
q Easy to learn.
q Extendable.
q Freedom to define tags.
q Easy searching.
q
Disadvantages of XML
qThe redundancy may affect application
efficiency through higher storage,
transmission and processing costs.
XML Document Components
The various components of an XML document used
for representing data in a hierarchical order are:
q
Processing Instruction (PI)
q
Tags
q
Elements
q
Content
q
Attributes
q
Entities
q
Comments
XML Document Components (Contd.)
<?xml version=“1.0” encoding=“UTF-8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy
is &lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Processing Instruction (PI)
Provides information on how
the XML file should be
processed.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-
8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this
toy is &lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Root Element
Contains all other elements
in the document.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-8”?
>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy
is &lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Tags
Is a means of identifying data.
Tags consist of start tag and
end tag.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy is &lt;
200 </DISPLAY>
</STORE>
</STOREDATA>
Comments
Are statements used to
explain the XML code.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy is
&lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Child Elements
Are the basic units
used to identify and
describe data in XML.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy is
&lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
subChild Elements
.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-
8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this
toy is &lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Attributes
Provide additional
information about the
elements for which
they are declared.
XML Document Components Contd…
<?xml version=“1.0” encoding=“UTF-8”?>
<STOREDATA>
<!--STOREDATA is the root element-->
<STORE STOREID=“S101”>
<PRODUCTNAME>Toys</PRODUCTNAME>
<QUANTITY>100</QUANTITY>
<DISPLAY>The price of this toy is
&lt; 200 </DISPLAY>
</STORE>
</STOREDATA>
Content (name of sub
children)
Refers to the information
represented by the elements
of an XML document. An
element can contain:
• Character or data content
• Element content
• Combination or mixed
content
XML Editors
qXML Spy
qEditiX
qMicrosoft XML Notepad
qVisual XML
qXML Viewer
qXeena
qXML Styler, Morphon, XML Writer…
XML vs. HTML
q XML is not a replacement for HTM
q XML was designed to carry data
q XML and HTML were designed with different goals
q XML was designed to describe data and to focus on
what data is
q html was designed to display data and to focus on
how data looks.
q HTML is about displaying information, while
XML is about
describing information
q Tags in html specific, but in xml can change to
any name
Thank you

Más contenido relacionado

La actualidad más candente

Presentacion xml
Presentacion xmlPresentacion xml
Presentacion xml
itsl
 
Displaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSLDisplaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSL
Bình Trọng Án
 

La actualidad más candente (20)

SQL Queries
SQL QueriesSQL Queries
SQL Queries
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Xml
Xml Xml
Xml
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Presentacion xml
Presentacion xmlPresentacion xml
Presentacion xml
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Displaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSLDisplaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSL
 
XML
XMLXML
XML
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml
XmlXml
Xml
 
Sql commands
Sql commandsSql commands
Sql commands
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
 
fundamentals of XML
fundamentals of XMLfundamentals of XML
fundamentals of XML
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
SQL
SQL SQL
SQL
 
SQL
SQLSQL
SQL
 
Chapter 4 Structured Query Language
Chapter 4 Structured Query LanguageChapter 4 Structured Query Language
Chapter 4 Structured Query Language
 
Xml schema
Xml schemaXml schema
Xml schema
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 

Similar a XML

Week1 xml
Week1 xmlWeek1 xml
Week1 xml
hapy
 

Similar a XML (20)

1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
 
Xml Session No 1
Xml Session No 1Xml Session No 1
Xml Session No 1
 
Xml
XmlXml
Xml
 
Xml
XmlXml
Xml
 
23xml
23xml23xml
23xml
 
Xml passing in java
Xml passing in javaXml passing in java
Xml passing in java
 
paper about xml
paper about xmlpaper about xml
paper about xml
 
XML
XMLXML
XML
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
 
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5   XMLM.FLORENCE DAYANA WEB DESIGN -Unit 5   XML
M.FLORENCE DAYANA WEB DESIGN -Unit 5 XML
 
Xml
XmlXml
Xml
 
Android de la A a la Z XML Ulises Gonzalez
Android de la A a la Z  XML Ulises GonzalezAndroid de la A a la Z  XML Ulises Gonzalez
Android de la A a la Z XML Ulises Gonzalez
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml
XmlXml
Xml
 
Unit 5 xml (1)
Unit 5   xml (1)Unit 5   xml (1)
Unit 5 xml (1)
 
Week1 xml
Week1 xmlWeek1 xml
Week1 xml
 
XML
XMLXML
XML
 
Xmll
XmllXmll
Xmll
 
WEB TECHNOLOGIES XML
WEB TECHNOLOGIES XMLWEB TECHNOLOGIES XML
WEB TECHNOLOGIES XML
 
XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 

Último

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Último (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 

XML

  • 2. What is XML •XML stands for EXtensible Markup Language •XML was designed to carry data, not to display data • XML developed by the World Wide Web Consortium (www.W3C.org) • • XML like HTML is a mark up language, but unlike HTML it doesn’t have predefined elements
  • 3. XML Versions There are two current versions of XML: v version XML 1.0 was initially defined in 1998 vversion XML 1.1 was initially published on 4th Feb 2004
  • 4. Example language of xml structure q XHTML q WML AND WAP q SVG
  • 5. Uses XML ü WEB DEVELOPER ü TRANSPORTING AND SHARING DATA ü STORING DATA ü DOCUMENTATION ü ANDROID DEVELOPER
  • 6. XML Doc Advantages q Easy data sharing, text documents are readable between any device. q Easy to learn. q Extendable. q Freedom to define tags. q Easy searching. q
  • 7. Disadvantages of XML qThe redundancy may affect application efficiency through higher storage, transmission and processing costs.
  • 8. XML Document Components The various components of an XML document used for representing data in a hierarchical order are: q Processing Instruction (PI) q Tags q Elements q Content q Attributes q Entities q Comments
  • 9. XML Document Components (Contd.) <?xml version=“1.0” encoding=“UTF-8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Processing Instruction (PI) Provides information on how the XML file should be processed.
  • 10. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF- 8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Root Element Contains all other elements in the document.
  • 11. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF-8”? > <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Tags Is a means of identifying data. Tags consist of start tag and end tag.
  • 12. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF-8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Comments Are statements used to explain the XML code.
  • 13. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF-8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Child Elements Are the basic units used to identify and describe data in XML.
  • 14. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF-8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> subChild Elements .
  • 15. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF- 8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Attributes Provide additional information about the elements for which they are declared.
  • 16. XML Document Components Contd… <?xml version=“1.0” encoding=“UTF-8”?> <STOREDATA> <!--STOREDATA is the root element--> <STORE STOREID=“S101”> <PRODUCTNAME>Toys</PRODUCTNAME> <QUANTITY>100</QUANTITY> <DISPLAY>The price of this toy is &lt; 200 </DISPLAY> </STORE> </STOREDATA> Content (name of sub children) Refers to the information represented by the elements of an XML document. An element can contain: • Character or data content • Element content • Combination or mixed content
  • 17. XML Editors qXML Spy qEditiX qMicrosoft XML Notepad qVisual XML qXML Viewer qXeena qXML Styler, Morphon, XML Writer…
  • 18. XML vs. HTML q XML is not a replacement for HTM q XML was designed to carry data q XML and HTML were designed with different goals q XML was designed to describe data and to focus on what data is q html was designed to display data and to focus on how data looks.
  • 19. q HTML is about displaying information, while XML is about describing information q Tags in html specific, but in xml can change to any name

Notas del editor

  1. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  2. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  3. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  4. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  5. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  6. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  7. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.
  8. Tell the students that the key words that they were told to note while discussing the definition of system forensics, will be elaborated as part of the system forensics process.