SlideShare a Scribd company logo
VISION ACADEMY (BCA,BBA(CA),BCS,MCA)
XML
With Teacher Sachin
Zurange
WHA T IS X ML?
• XML stands for Extensible Markup Language
• XML is a markup language much like HTML
•XML is text-based markup language that enables to
store data
in structure format by using meaningful tags.
•XML tags are not predefined. You must define your
own tags
• XML is designed to be self-descriptive
•XML is a W3C (World Wide Web Consortium
Recommendation
Feature of XML
1.XML Separates Data from HTML if you need to display dynamic data in your HTML
document, it will take a lot of work to edit the HTML each time the data changes. With
XML, data can be stored in separate XML files.
This way you can concentrate on using HTML/CSS for display and layout, and be sure
that changes in the underlying data will not require any changes to the HTML.
With a few lines of JavaScript code, you can read an external XML file and update the
data content of your web page.
2XML Simplifies Data Sharing In the real world, computer systems and
atabases contain data in incompatible formats.XML data is stored in plain
text format. This provides a software and hardware-independent way of
storing data. This makes it much easier to create data that can be shared
by different applications.
XML DOCUMENT STRUCTURE OR COMPONENENT OF XML
DOCUMENT
PROLOG SECTION
Document Prolog comes at the
top of the document, before the
root element. This section
contains −
• XML declaration
• Document type declaration
XML DECLARATION
XML declaration contains details that
prepare an XML processor to parse the
XML document. It is optional, but when
used, it must appear in the first line of the
XML document. <?xml version =
"version_number" encoding =
"encoding_declaration" ?>
It defines the XML version (1.0) and the
encoding information such as ISO-8859-
1,UTF-8,UTF-16
e.g
<?xml version="1.0" encoding="ISO-
8859-1"?>
Document Elements Section
DOCUMENT ELEMENTS ARE THE BUILDING BLOCKS OF XML. ELEMENTS CAN
BEHAVE AS CONTAINERS TO HOLD TEXT, ELEMENTS, ATTRIBUTES ETC
<ELEMENT-NAME ATTRIBUTE1 ATTRIBUTE2> ....CONTENT </ELEMENT-
NAME>
•ELEMENT-NAME IS THE NAME OF THE ELEMENT. THE NAME ITS CASE IN
THE START AND END TAGS MUST MATCH.
A MA RKUP CONSTRUCT THA T BEGINS WITH <A ND ENDS WITH >. TA GS
COME IN THREE WA YS
•START-TAGS; FOR EXAMPLE: <SECTION>
•END-TAGS; FOR EXAMPLE: </SECTION>
•EMPTY-ELEMENT TAGS; FOR EXAMPLE: <SECTION/>
•ATTRIBUTE1, ATTRIBUTE2 ARE ATTRIBUTES OF THE ELEMENT SEPARATED
BY WHITE SPACES. AN ATTRIBUTE DEFINES A PROPERTY OF THE ELEMENT.
IT ASSOCIATES A NAME WITH A VALUE, WHICH IS A STRING OF
CHARACTERS. AN ATTRIBUTE IS WRITTEN AS NAME=”VALUE”
XML SYNTAX RULES
1 All XML Elements Must Have a Closing Tag
In HTML, some elements do not have to have a closing tag:
<p>This is a paragraph.In XML, it is illegal to omit the closing tag. All elements
must have a closing tag:<p>This is a paragraph.</p>
2.XML Tags are Case Sensitive
XML tags are case sensitive. The tag <Letter> is different from the tag <letter>.Opening and closing
tags must be written with the same case:<Message>This is incorrect</message>
<message>This is c orrect</message>
3.XML Elements Must be Properly Nested
In HTML, you might see improperly nested elements:<b><i>This text is bold and italic</b></i>
In XML, all elements must be properly nested within each other:<b><i>This text is bold and italic</i></b
4.XML Documents Must Have a Root Element
XML documents must contain one element that is the parent of all other elements. This element is called the
root element.<root>
<child>
<subchild>.....</subchild>
</child>
</root>
XML 2 type of reference
1. Entity References:
Some characters have a special meaning in XML. If you place a character like "<" inside an XML
element, it will generate an error because the parser interprets it as the start of a new element.
2.Character References:
A character reference gives the number of the particular Unicode
character it stands for, in eit her decimal or hexadecimal.
Dec imal character references look like &# hexadecimal character references
have an extra x after the &#&#;, that is, they look like &#
APPLICATION OF XML
1.Web publishing
X ML allows the developers to save the data into X ML files & use X SLT
transformation
API’S to generate content in the required format such as HTML, XHTML
2. Web Searching
It can use XML data & then search the data from the XML file & display it to
the user
3. Data Transfer
It can use XML to save configuration or business data for our application
4. Created Other languages
Many language are created using XML such as WML
Email Address
sachin.zurange@gmail.com
Mobile Number
(9822506209/9823037693)
Consultation Hours
4 PM to 6 PM
QUESTIONS?
CLA RIFICA TIONS?
Please feel free to contact me,
Teacher Sachin Zurange through email or phone.
Ad

More Related Content

What's hot (20)

Xml ppt
Xml pptXml ppt
Xml ppt
seemadav1
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
IT
 
XML
XMLXML
XML
Daminda Herath
 
XML
XMLXML
XML
Prabu U
 
XML
XMLXML
XML
Mukesh Tekwani
 
Python xml processing
Python   xml processingPython   xml processing
Python xml processing
Learnbay Datascience
 
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xmlXml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Ông Thông
 
XML
XMLXML
XML
Vahideh Zarea Gavgani
 
Xml in bio medical field
Xml in bio medical fieldXml in bio medical field
Xml in bio medical field
Juman Ghazi
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
Sudharsan S
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
AakankshaR
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
Ann Joseph
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
Himanshu Soni
 
Xml
XmlXml
Xml
vikram singh
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
www.myassignmenthelp.net
 
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
Dr.Florence Dayana
 
Basics of XML
Basics of XMLBasics of XML
Basics of XML
indiangarg
 
Xml basics for beginning
Xml basics for beginningXml basics for beginning
Xml basics for beginning
Ahmad Awsaf-uz-zaman
 
Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01
Niraj Bharambe
 
Xml data transformation
Xml data transformationXml data transformation
Xml data transformation
Raghu nath
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
IT
 
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xmlXml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Xml theory 2005_[ngohaianh.info]_1_introduction-to-xml
Ông Thông
 
Xml in bio medical field
Xml in bio medical fieldXml in bio medical field
Xml in bio medical field
Juman Ghazi
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
Sudharsan S
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
AakankshaR
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
Ann Joseph
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
Himanshu Soni
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
www.myassignmenthelp.net
 
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
Dr.Florence Dayana
 
Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01
Niraj Bharambe
 
Xml data transformation
Xml data transformationXml data transformation
Xml data transformation
Raghu nath
 

Similar to PHP XML (20)

Xml
Xml Xml
Xml
Neeta Sawant
 
XML - Extensible Markup Language for Network Security.pptx
XML - Extensible Markup Language for Network Security.pptxXML - Extensible Markup Language for Network Security.pptx
XML - Extensible Markup Language for Network Security.pptx
kalanamax
 
xml introduction in web technologies subject
xml introduction in web technologies subjectxml introduction in web technologies subject
xml introduction in web technologies subject
UdayKumar693239
 
chapter 4 web authoring unit 4 xml.pptx
chapter 4 web authoring  unit 4 xml.pptxchapter 4 web authoring  unit 4 xml.pptx
chapter 4 web authoring unit 4 xml.pptx
amare63
 
web program-Extended MARKUP Language XML.ppt
web program-Extended MARKUP Language XML.pptweb program-Extended MARKUP Language XML.ppt
web program-Extended MARKUP Language XML.ppt
mcjaya2024
 
Xml 1
Xml 1Xml 1
Xml 1
pavishkumarsingh
 
Ch2 neworder
Ch2 neworderCh2 neworder
Ch2 neworder
davidlahr32
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
Abhishek Kesharwani
 
Xml and DTD's
Xml and DTD'sXml and DTD's
Xml and DTD's
Swati Parmar
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
Abhishek Kesharwani
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
vishal choudhary
 
Web Technology XML Attributes and elementsUnit 3.doc
Web Technology XML Attributes and elementsUnit 3.docWeb Technology XML Attributes and elementsUnit 3.doc
Web Technology XML Attributes and elementsUnit 3.doc
uthayashangar1
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
Alfonso Gabriel López Ceballos
 
WT UNIT-2 XML.pdf
WT UNIT-2 XML.pdfWT UNIT-2 XML.pdf
WT UNIT-2 XML.pdf
Ranjeet Reddy
 
paper about xml
paper about xmlpaper about xml
paper about xml
عبدالغني الهجار
 
GRADE 12 UNIT 4 computer science Ethiopian.pptx
GRADE 12 UNIT 4 computer science Ethiopian.pptxGRADE 12 UNIT 4 computer science Ethiopian.pptx
GRADE 12 UNIT 4 computer science Ethiopian.pptx
ElanPuthukkudi
 
XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
53ShaikhImadoddin
 
XML DTD Validate
XML DTD ValidateXML DTD Validate
XML DTD Validate
jomerson remorosa
 
Unit 5 xml (1)
Unit 5   xml (1)Unit 5   xml (1)
Unit 5 xml (1)
manochitra10
 
XML Presentation-2
XML Presentation-2XML Presentation-2
XML Presentation-2
Sudharsan S
 
Ad

Recently uploaded (20)

TrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
TrsLabs - AI Agents for All - Chatbots to Multi-Agents SystemsTrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
TrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
Trs Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
 
Connect and Protect: Networks and Network Security
Connect and Protect: Networks and Network SecurityConnect and Protect: Networks and Network Security
Connect and Protect: Networks and Network Security
VICTOR MAESTRE RAMIREZ
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
The Changing Compliance Landscape in 2025.pdf
The Changing Compliance Landscape in 2025.pdfThe Changing Compliance Landscape in 2025.pdf
The Changing Compliance Landscape in 2025.pdf
Precisely
 
Play It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google CertificatePlay It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google Certificate
VICTOR MAESTRE RAMIREZ
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
TrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
TrsLabs - AI Agents for All - Chatbots to Multi-Agents SystemsTrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
TrsLabs - AI Agents for All - Chatbots to Multi-Agents Systems
Trs Labs
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
 
Connect and Protect: Networks and Network Security
Connect and Protect: Networks and Network SecurityConnect and Protect: Networks and Network Security
Connect and Protect: Networks and Network Security
VICTOR MAESTRE RAMIREZ
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
The Changing Compliance Landscape in 2025.pdf
The Changing Compliance Landscape in 2025.pdfThe Changing Compliance Landscape in 2025.pdf
The Changing Compliance Landscape in 2025.pdf
Precisely
 
Play It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google CertificatePlay It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google Certificate
VICTOR MAESTRE RAMIREZ
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
Ad

PHP XML

  • 2. WHA T IS X ML? • XML stands for Extensible Markup Language • XML is a markup language much like HTML •XML is text-based markup language that enables to store data in structure format by using meaningful tags. •XML tags are not predefined. You must define your own tags • XML is designed to be self-descriptive •XML is a W3C (World Wide Web Consortium Recommendation
  • 3. Feature of XML 1.XML Separates Data from HTML if you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes. With XML, data can be stored in separate XML files. This way you can concentrate on using HTML/CSS for display and layout, and be sure that changes in the underlying data will not require any changes to the HTML. With a few lines of JavaScript code, you can read an external XML file and update the data content of your web page. 2XML Simplifies Data Sharing In the real world, computer systems and atabases contain data in incompatible formats.XML data is stored in plain text format. This provides a software and hardware-independent way of storing data. This makes it much easier to create data that can be shared by different applications.
  • 4. XML DOCUMENT STRUCTURE OR COMPONENENT OF XML DOCUMENT PROLOG SECTION Document Prolog comes at the top of the document, before the root element. This section contains − • XML declaration • Document type declaration XML DECLARATION XML declaration contains details that prepare an XML processor to parse the XML document. It is optional, but when used, it must appear in the first line of the XML document. <?xml version = "version_number" encoding = "encoding_declaration" ?> It defines the XML version (1.0) and the encoding information such as ISO-8859- 1,UTF-8,UTF-16 e.g <?xml version="1.0" encoding="ISO- 8859-1"?>
  • 5. Document Elements Section DOCUMENT ELEMENTS ARE THE BUILDING BLOCKS OF XML. ELEMENTS CAN BEHAVE AS CONTAINERS TO HOLD TEXT, ELEMENTS, ATTRIBUTES ETC <ELEMENT-NAME ATTRIBUTE1 ATTRIBUTE2> ....CONTENT </ELEMENT- NAME> •ELEMENT-NAME IS THE NAME OF THE ELEMENT. THE NAME ITS CASE IN THE START AND END TAGS MUST MATCH. A MA RKUP CONSTRUCT THA T BEGINS WITH <A ND ENDS WITH >. TA GS COME IN THREE WA YS •START-TAGS; FOR EXAMPLE: <SECTION> •END-TAGS; FOR EXAMPLE: </SECTION> •EMPTY-ELEMENT TAGS; FOR EXAMPLE: <SECTION/> •ATTRIBUTE1, ATTRIBUTE2 ARE ATTRIBUTES OF THE ELEMENT SEPARATED BY WHITE SPACES. AN ATTRIBUTE DEFINES A PROPERTY OF THE ELEMENT. IT ASSOCIATES A NAME WITH A VALUE, WHICH IS A STRING OF CHARACTERS. AN ATTRIBUTE IS WRITTEN AS NAME=”VALUE”
  • 6. XML SYNTAX RULES 1 All XML Elements Must Have a Closing Tag In HTML, some elements do not have to have a closing tag: <p>This is a paragraph.In XML, it is illegal to omit the closing tag. All elements must have a closing tag:<p>This is a paragraph.</p> 2.XML Tags are Case Sensitive XML tags are case sensitive. The tag <Letter> is different from the tag <letter>.Opening and closing tags must be written with the same case:<Message>This is incorrect</message> <message>This is c orrect</message> 3.XML Elements Must be Properly Nested In HTML, you might see improperly nested elements:<b><i>This text is bold and italic</b></i> In XML, all elements must be properly nested within each other:<b><i>This text is bold and italic</i></b 4.XML Documents Must Have a Root Element XML documents must contain one element that is the parent of all other elements. This element is called the root element.<root> <child> <subchild>.....</subchild> </child> </root>
  • 7. XML 2 type of reference 1. Entity References: Some characters have a special meaning in XML. If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element. 2.Character References: A character reference gives the number of the particular Unicode character it stands for, in eit her decimal or hexadecimal. Dec imal character references look like &# hexadecimal character references have an extra x after the &#&#;, that is, they look like &#
  • 8. APPLICATION OF XML 1.Web publishing X ML allows the developers to save the data into X ML files & use X SLT transformation API’S to generate content in the required format such as HTML, XHTML 2. Web Searching It can use XML data & then search the data from the XML file & display it to the user 3. Data Transfer It can use XML to save configuration or business data for our application 4. Created Other languages Many language are created using XML such as WML
  • 9. Email Address [email protected] Mobile Number (9822506209/9823037693) Consultation Hours 4 PM to 6 PM QUESTIONS? CLA RIFICA TIONS? Please feel free to contact me, Teacher Sachin Zurange through email or phone.