SlideShare a Scribd company logo
Nadar saraswathi college of arts and science
Web programming
XML documents and vocabularies
XML versions and declarations
XML namespace
DTD
Submitted by,
S.Vijayalakshmi.
 An XML document is a basic unit of XML information
composed of elements and other markup in an orderly
package. An XML document can contains wide variety of
data. For example, database of numbers, numbers
representing molecular structure or a mathematical equation.
XML Document Example
?xml version = "1.0"?> <contact-info>
<name>Tanmay Patil</name>
<company>TutorialsPoint</company>
<phone>(011) 123-4567</phone>
</contact-info>
Document Prolog Section
 Document Prolog comes at the top of the document, before
the root element. This section contains −
I. XML declaration
II. Document type declaration
Document Elements Section
 Document Elements are the building blocks of XML. These
divide the document into a hierarchy of sections, each
serving a specific purpose.
 You can separate a document into multiple sections so that
they can be rendered differently, or used by a search engine.
 The elements can be containers, with a combination of text
and other elements.
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.
Syntax
<?xml version = "version_number"
encoding = "encoding_declaration"
standalone = "standalone_status" ?>
Each parameter consists of a parameter name, an equals
sign(=),and parameters value inside a quote.
Version 1.0 Specifies the version of the XML
standard used.
Encoding UTF-8, UTF-16, ISO-
10646-UCS-2, ISO-
10646-UCS-4, ISO-8859-
1 to ISO-8859-9, ISO-
2022-JP, Shift_JIS, EUC-
JP
It defines the character encoding used in
the document. UTF-8 is the default
encoding used.
Standalone yes or no It informs the parser whether the
document relies on the information from
an external source, such as external
document type definition (DTD), for its
content. The default value is set to no.
Setting it to yestells the processor there
are no external declarations required for
parsing the document.
Rules
 An XML declaration should abide with the following rules
 If the XML declaration is present in the XML, it must be
placed as the first line in the XML document.
 If the XML declaration is included, it must contain version
number attribute.
 The Parameter names and values are case-sensitive.
 The names are always in lower case.
 The order of placing the parameters is important. The correct
order is: version, encoding and standalone.
 Either single or double quotes may be used.
 The XML declaration has no closing tag i.e. </?xml>
XML Declaration Examples
XML declaration with no parameters −
<?xml >
XML declaration with version definition −
<?xml version = "1.0"> XML declaration with all parameters
defined −
<?xml version = "1.0" encoding = "UTF-8" standalone = "no"
?>
XML declaration with all parameters defined in
single quotes −
<?xml version = '1.0' encoding = 'iso-8859-1' standalone = 'no'
?>
XML Namespaces
XML Namespaces provide a method to avoid element name
conflicts.
Name Conflicts
In XML, element names are defined by the developer. This often
results in a conflict when trying to mix XML documents from different
XML applications.
This XML carries HTML table information:
<table>
<tr>
<td>Apples</td>
<td>Bananas</td>
</tr>
</table>
This XML carries information about a table (a piece of furniture):
<table>
<name>African Coffee Table</name>
<width>80</width>
<length>120</length>
</table>
 If these XML fragments were added together, there would be a name
conflict. Both contain a <table> element, but the elements have
different content and meaning.
 A user or an XML application will not know how to handle these
differences.
Solving the Name Conflict Using a Prefix
 Name conflicts in XML can easily be avoided using a name prefix.
 This XML carries information about an HTML table, and a piece of
furniture:
<h:table>
<h:tr>
<h:td>Apples</h:td>
<h:td>Bananas</h:td>
</h:tr>
</h:table>
<f:table>
<f:name>African Coffee Table</f:name>
<f:width>80</f:width>
<f:length>120</f:length>
</f:table>
XML Namespaces - The xmlns Attribute
 When using prefixes in XML, a namespace for the prefix
must be defined.
 The namespace can be defined by an xmlns attribute in the
start tag of an element.
 The namespace declaration has the following syntax.
xmlns:prefix="URI".
<root>
<h:table xmlns:h="http://www.w3.org/TR/html4/">
<h:tr>
<h:td>Apples</h:td>
<h:td>Bananas</h:td>
</h:tr>
</h:table>
<f:tablexmlns:f="https://www.w3schools.com/furniture">
<f:name>African Coffee Table</f:name>
<f:width>80</f:width>
<f:length>120</f:length>
</f:table>
</root>
 In the example above:
 The xmlns attribute in the first <table> element gives the h:
prefix a qualified namespace.
 The xmlns attribute in the second <table> element gives the f:
prefix a qualified namespace.
 When a namespace is defined for an element, all child elements
with the same prefix are associated with the same namespace.
 Namespaces can also be declared in the XML root element:
<root xmlns:h="http://www.w3.org/TR/html4/"
xmlns:f="https://www.w3schools.com/furniture">
<h:table>
<h:tr>
<h:td>Apples</h:td>
<h:td>Bananas</h:td>
</h:tr>
</h:table>
<f:table>
<f:name>African Coffee Table</f:name>
<f:width>80</f:width>
<f:length>120</f:length>
</f:table>
</root>
 The purpose of using an URI is to give the namespace a unique name.
 However, companies often use the namespace as a pointer to a web
page containing namespace information.
Uniform Resource Identifier (URI)
 A Uniform Resource Identifier (URI) is a string of characters
which identifies an Internet Resource.
 The most common URI is the Uniform Resource
Locator (URL) which identifies an Internet domain address.
Another, not so common type of URI is the Uniform Resource
Name (URN).
Default Namespaces
 Defining a default namespace for an element saves us from
using prefixes in all the child elements. It has the following
syntax:
xmlns="namespaceURI"
DTD[Document Type Definition]
 The XML Document Type Declaration, commonly known as DTD, is
a way to describe XML language precisely. DTDs check vocabulary
and validity of the structure of XML documents against grammatical
rules of appropriate XML language.
 An XML DTD can be either specified inside the document, or it can be
kept in a separate document and then liked separately.
Syntax
<!DOCTYPE element DTD identifier
[ declaration1
declaration2 ........ ]>
 In the above syntax,
 The DTD starts with <!DOCTYPE delimiter.
 An element tells the parser to parse the document from
the specified root element.
 DTD identifier is an identifier for the document type
definition, which may be the path to a file on the system
or URL to a file on the internet. If the DTD is pointing
to external path, it is called External Subset.
 The square brackets [ ] enclose an optional list of entity
declarations called Internal Subset.
Internal DTD
 A DTD is referred to as an internal DTD if elements are
declared within the XML files. To refer it as internal
DTD, standaloneattribute in XML declaration must be set
to yes. This means, the declaration works independent of an
external source.
Syntax
<!DOCTYPE root-element [element-declarations]>
 where root-element is the name of root element
and element-declarations is where you declare the elements.
Example
xml version = "1.0" encoding = "UTF-8" standalone = "yes"
?>
<!DOCTYPE address [ <!ELEMENT address
(name,company,phone)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT company (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
]>
<address>
<name>Tanmay Patil</name>
<company>TutorialsPoint</company>
<phone>(011) 123-4567</phone>
</address>
External DTD
In external DTD elements are declared outside the XML file. They are
accessed by specifying the system attributes which may be either the
legal .dtd file or a valid URL. To refer it as external
DTD,standalone attribute in the XML declaration must be set as no.
This means, declaration includes information from the external source.
Syntax
<!DOCTYPE root-element SYSTEM "file-name
 where file-name is the file with .dtd extension.
Example
<?xml version = "1.0" encoding = "UTF-8" standalone =
"no" ?>
<!DOCTYPE address SYSTEM "address.dtd"> <address>
<name>Tanmay Patil</name>
<company>TutorialsPoint</company>
<phone>(011) 123-4567</phone>
</address>
THANK YOU

More Related Content

What's hot (20)

PPT
uptu web technology unit 2 Xml2
Abhishek Kesharwani
 
PPTX
Unit 5 xml (1)
manochitra10
 
PPT
Ch2 neworder
davidlahr32
 
PDF
XML
Prabu U
 
PPT
uptu web technology unit 2 Xml2
Abhishek Kesharwani
 
PPTX
Xml part3
NOHA AW
 
PPTX
Web Development Course - XML by RSOLUTIONS
RSolutions
 
PPTX
XML
Ruchika Sinha
 
PPTX
Xml dtd
sana mateen
 
DOCX
paper about xml
عبدالغني الهجار
 
PPT
XML Schema
yht4ever
 
PDF
Transforming xml with XSLT
Malintha Adikari
 
PPTX
Xml part2
NOHA AW
 
PPTX
Basic xml syntax
Raghu nath
 
PPTX
Xml part1
NOHA AW
 
PPT
Displaying XML Documents Using CSS and XSL
Bình Trọng Án
 
PPTX
Basic XML
Hoang Nguyen
 
DOCX
Introduction to xml schema
Abhishek Kesharwani
 
PPTX
Xml dtd
HeenaRajput1
 
uptu web technology unit 2 Xml2
Abhishek Kesharwani
 
Unit 5 xml (1)
manochitra10
 
Ch2 neworder
davidlahr32
 
XML
Prabu U
 
uptu web technology unit 2 Xml2
Abhishek Kesharwani
 
Xml part3
NOHA AW
 
Web Development Course - XML by RSOLUTIONS
RSolutions
 
Xml dtd
sana mateen
 
XML Schema
yht4ever
 
Transforming xml with XSLT
Malintha Adikari
 
Xml part2
NOHA AW
 
Basic xml syntax
Raghu nath
 
Xml part1
NOHA AW
 
Displaying XML Documents Using CSS and XSL
Bình Trọng Án
 
Basic XML
Hoang Nguyen
 
Introduction to xml schema
Abhishek Kesharwani
 
Xml dtd
HeenaRajput1
 

Similar to WEB PROGRAMMING (20)

PPT
1 xml fundamentals
Dr.Saranya K.G
 
PPTX
xml.pptx
TilakaRt
 
PPT
web program-Extended MARKUP Language XML.ppt
mcjaya2024
 
PPTX
Web Security Extensible Markup Language.pptx
SidduSKamatar
 
PPTX
Xml
Yoga Raja
 
PDF
xml introduction in web technologies subject
UdayKumar693239
 
PPT
Extensible Markup Language - XML || Presentation
UjjwalVerma43
 
PPTX
Intro xml
sana mateen
 
DOC
Web Technology XML Attributes and elementsUnit 3.doc
uthayashangar1
 
PDF
Xml
soumya
 
PPTX
Basics of XML
indiangarg
 
PDF
WT UNIT-2 XML.pdf
Ranjeet Reddy
 
PPT
Introduction to XML.ppt
Varsha Uchagaonkar
 
PPT
Introduction to XML.ppt
Varsha Uchagaonkar
 
PPTX
Xml andweb services
ayushagrawal464
 
PPTX
Introduce to XML
videde_group
 
PPT
Xml
Kunal Gaind
 
PDF
II UNIT PPT NOTES.pdf this is the data structures
PriyankaRamavath3
 
PPTX
chapter 4 web authoring unit 4 xml.pptx
amare63
 
1 xml fundamentals
Dr.Saranya K.G
 
xml.pptx
TilakaRt
 
web program-Extended MARKUP Language XML.ppt
mcjaya2024
 
Web Security Extensible Markup Language.pptx
SidduSKamatar
 
xml introduction in web technologies subject
UdayKumar693239
 
Extensible Markup Language - XML || Presentation
UjjwalVerma43
 
Intro xml
sana mateen
 
Web Technology XML Attributes and elementsUnit 3.doc
uthayashangar1
 
Xml
soumya
 
Basics of XML
indiangarg
 
WT UNIT-2 XML.pdf
Ranjeet Reddy
 
Introduction to XML.ppt
Varsha Uchagaonkar
 
Introduction to XML.ppt
Varsha Uchagaonkar
 
Xml andweb services
ayushagrawal464
 
Introduce to XML
videde_group
 
II UNIT PPT NOTES.pdf this is the data structures
PriyankaRamavath3
 
chapter 4 web authoring unit 4 xml.pptx
amare63
 
Ad

More from sweetysweety8 (20)

PPTX
Artificial neural network
sweetysweety8
 
PPTX
Compiler Design
sweetysweety8
 
PPTX
Software engineering
sweetysweety8
 
PPTX
Software engineering
sweetysweety8
 
PPTX
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
PPTX
Software engineering
sweetysweety8
 
PPTX
Software engineering
sweetysweety8
 
PPTX
Compiler Design
sweetysweety8
 
PPTX
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
PPTX
Bigdata
sweetysweety8
 
PPTX
BIG DATA ANALYTICS
sweetysweety8
 
PPTX
BIG DATA ANALYTICS
sweetysweety8
 
PPTX
Compiler Design
sweetysweety8
 
PPTX
WEB PROGRAMMING
sweetysweety8
 
PPTX
BIG DATA ANALYTICS
sweetysweety8
 
PPT
Data mining
sweetysweety8
 
PPTX
Operating System
sweetysweety8
 
PPTX
Relational Database Management System
sweetysweety8
 
PPTX
Relational Database Management System
sweetysweety8
 
PPTX
Relational Database Management System
sweetysweety8
 
Artificial neural network
sweetysweety8
 
Compiler Design
sweetysweety8
 
Software engineering
sweetysweety8
 
Software engineering
sweetysweety8
 
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
Software engineering
sweetysweety8
 
Software engineering
sweetysweety8
 
Compiler Design
sweetysweety8
 
WEB PROGRAMMING ANALYSIS
sweetysweety8
 
Bigdata
sweetysweety8
 
BIG DATA ANALYTICS
sweetysweety8
 
BIG DATA ANALYTICS
sweetysweety8
 
Compiler Design
sweetysweety8
 
WEB PROGRAMMING
sweetysweety8
 
BIG DATA ANALYTICS
sweetysweety8
 
Data mining
sweetysweety8
 
Operating System
sweetysweety8
 
Relational Database Management System
sweetysweety8
 
Relational Database Management System
sweetysweety8
 
Relational Database Management System
sweetysweety8
 
Ad

Recently uploaded (16)

PPTX
some leadership theories MBA management.pptx
rkseo19
 
PPTX
Food_and_Drink_Bahasa_Inggris_Kelas_5.pptx
debbystevani36
 
PPTX
Pastor Bob Stewart Acts 21 07 09 2025.pptx
FamilyWorshipCenterD
 
PPTX
AI presentation for everyone in every fields
dodinhkhai1
 
PDF
Leveraging the Power of Jira Dashboard.pdf
siddharthshukla742740
 
PDF
Cloud Computing Service Availability.pdf
chakrirocky1
 
PPTX
Great-Books. Powerpoint presentation. files
tamayocrisgie
 
PDF
The Impact of Game Live Streaming on In-Game Purchases of Chinese Young Game ...
Shibaura Institute of Technology
 
PPTX
STURGEON BAY WI AG PPT JULY 6 2025.pptx
FamilyWorshipCenterD
 
PPTX
Presentationexpressions You are student leader and have just come from a stud...
BENSTARBEATZ
 
PDF
Generalization predition MOOCs - Conference presentation - eMOOCs 2025
pmmorenom01
 
PPTX
2025-07-06 Abraham 06 (shared slides).pptx
Dale Wells
 
PDF
The Family Secret (essence of loveliness)
Favour Biodun
 
PPTX
BARRIERS TO EFFECTIVE COMMUNICATION.pptx
shraddham25
 
PPTX
Inspired by VeinSense: Supercharge Your Hackathon with Agentic AI
ShubhamSharma2528
 
PPTX
presentation on legal and regulatory action
raoharsh4122001
 
some leadership theories MBA management.pptx
rkseo19
 
Food_and_Drink_Bahasa_Inggris_Kelas_5.pptx
debbystevani36
 
Pastor Bob Stewart Acts 21 07 09 2025.pptx
FamilyWorshipCenterD
 
AI presentation for everyone in every fields
dodinhkhai1
 
Leveraging the Power of Jira Dashboard.pdf
siddharthshukla742740
 
Cloud Computing Service Availability.pdf
chakrirocky1
 
Great-Books. Powerpoint presentation. files
tamayocrisgie
 
The Impact of Game Live Streaming on In-Game Purchases of Chinese Young Game ...
Shibaura Institute of Technology
 
STURGEON BAY WI AG PPT JULY 6 2025.pptx
FamilyWorshipCenterD
 
Presentationexpressions You are student leader and have just come from a stud...
BENSTARBEATZ
 
Generalization predition MOOCs - Conference presentation - eMOOCs 2025
pmmorenom01
 
2025-07-06 Abraham 06 (shared slides).pptx
Dale Wells
 
The Family Secret (essence of loveliness)
Favour Biodun
 
BARRIERS TO EFFECTIVE COMMUNICATION.pptx
shraddham25
 
Inspired by VeinSense: Supercharge Your Hackathon with Agentic AI
ShubhamSharma2528
 
presentation on legal and regulatory action
raoharsh4122001
 

WEB PROGRAMMING

  • 1. Nadar saraswathi college of arts and science Web programming XML documents and vocabularies XML versions and declarations XML namespace DTD Submitted by, S.Vijayalakshmi.
  • 2.  An XML document is a basic unit of XML information composed of elements and other markup in an orderly package. An XML document can contains wide variety of data. For example, database of numbers, numbers representing molecular structure or a mathematical equation. XML Document Example ?xml version = "1.0"?> <contact-info> <name>Tanmay Patil</name> <company>TutorialsPoint</company> <phone>(011) 123-4567</phone> </contact-info>
  • 3. Document Prolog Section  Document Prolog comes at the top of the document, before the root element. This section contains − I. XML declaration II. Document type declaration
  • 4. Document Elements Section  Document Elements are the building blocks of XML. These divide the document into a hierarchy of sections, each serving a specific purpose.  You can separate a document into multiple sections so that they can be rendered differently, or used by a search engine.  The elements can be containers, with a combination of text and other elements.
  • 5. 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. Syntax <?xml version = "version_number" encoding = "encoding_declaration" standalone = "standalone_status" ?> Each parameter consists of a parameter name, an equals sign(=),and parameters value inside a quote.
  • 6. Version 1.0 Specifies the version of the XML standard used. Encoding UTF-8, UTF-16, ISO- 10646-UCS-2, ISO- 10646-UCS-4, ISO-8859- 1 to ISO-8859-9, ISO- 2022-JP, Shift_JIS, EUC- JP It defines the character encoding used in the document. UTF-8 is the default encoding used. Standalone yes or no It informs the parser whether the document relies on the information from an external source, such as external document type definition (DTD), for its content. The default value is set to no. Setting it to yestells the processor there are no external declarations required for parsing the document.
  • 7. Rules  An XML declaration should abide with the following rules  If the XML declaration is present in the XML, it must be placed as the first line in the XML document.  If the XML declaration is included, it must contain version number attribute.  The Parameter names and values are case-sensitive.  The names are always in lower case.  The order of placing the parameters is important. The correct order is: version, encoding and standalone.  Either single or double quotes may be used.  The XML declaration has no closing tag i.e. </?xml>
  • 8. XML Declaration Examples XML declaration with no parameters − <?xml > XML declaration with version definition − <?xml version = "1.0"> XML declaration with all parameters defined − <?xml version = "1.0" encoding = "UTF-8" standalone = "no" ?> XML declaration with all parameters defined in single quotes − <?xml version = '1.0' encoding = 'iso-8859-1' standalone = 'no' ?>
  • 9. XML Namespaces XML Namespaces provide a method to avoid element name conflicts. Name Conflicts In XML, element names are defined by the developer. This often results in a conflict when trying to mix XML documents from different XML applications. This XML carries HTML table information: <table> <tr> <td>Apples</td> <td>Bananas</td> </tr> </table>
  • 10. This XML carries information about a table (a piece of furniture): <table> <name>African Coffee Table</name> <width>80</width> <length>120</length> </table>  If these XML fragments were added together, there would be a name conflict. Both contain a <table> element, but the elements have different content and meaning.  A user or an XML application will not know how to handle these differences.
  • 11. Solving the Name Conflict Using a Prefix  Name conflicts in XML can easily be avoided using a name prefix.  This XML carries information about an HTML table, and a piece of furniture: <h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table>
  • 12. XML Namespaces - The xmlns Attribute  When using prefixes in XML, a namespace for the prefix must be defined.  The namespace can be defined by an xmlns attribute in the start tag of an element.  The namespace declaration has the following syntax. xmlns:prefix="URI". <root> <h:table xmlns:h="http://www.w3.org/TR/html4/"> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table>
  • 13. <f:tablexmlns:f="https://www.w3schools.com/furniture"> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root>  In the example above:  The xmlns attribute in the first <table> element gives the h: prefix a qualified namespace.  The xmlns attribute in the second <table> element gives the f: prefix a qualified namespace.  When a namespace is defined for an element, all child elements with the same prefix are associated with the same namespace.  Namespaces can also be declared in the XML root element:
  • 14. <root xmlns:h="http://www.w3.org/TR/html4/" xmlns:f="https://www.w3schools.com/furniture"> <h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root>  The purpose of using an URI is to give the namespace a unique name.  However, companies often use the namespace as a pointer to a web page containing namespace information.
  • 15. Uniform Resource Identifier (URI)  A Uniform Resource Identifier (URI) is a string of characters which identifies an Internet Resource.  The most common URI is the Uniform Resource Locator (URL) which identifies an Internet domain address. Another, not so common type of URI is the Uniform Resource Name (URN). Default Namespaces  Defining a default namespace for an element saves us from using prefixes in all the child elements. It has the following syntax: xmlns="namespaceURI"
  • 16. DTD[Document Type Definition]  The XML Document Type Declaration, commonly known as DTD, is a way to describe XML language precisely. DTDs check vocabulary and validity of the structure of XML documents against grammatical rules of appropriate XML language.  An XML DTD can be either specified inside the document, or it can be kept in a separate document and then liked separately. Syntax <!DOCTYPE element DTD identifier [ declaration1 declaration2 ........ ]>
  • 17.  In the above syntax,  The DTD starts with <!DOCTYPE delimiter.  An element tells the parser to parse the document from the specified root element.  DTD identifier is an identifier for the document type definition, which may be the path to a file on the system or URL to a file on the internet. If the DTD is pointing to external path, it is called External Subset.  The square brackets [ ] enclose an optional list of entity declarations called Internal Subset.
  • 18. Internal DTD  A DTD is referred to as an internal DTD if elements are declared within the XML files. To refer it as internal DTD, standaloneattribute in XML declaration must be set to yes. This means, the declaration works independent of an external source. Syntax <!DOCTYPE root-element [element-declarations]>  where root-element is the name of root element and element-declarations is where you declare the elements.
  • 19. Example xml version = "1.0" encoding = "UTF-8" standalone = "yes" ?> <!DOCTYPE address [ <!ELEMENT address (name,company,phone)> <!ELEMENT name (#PCDATA)> <!ELEMENT company (#PCDATA)> <!ELEMENT phone (#PCDATA)> ]> <address> <name>Tanmay Patil</name> <company>TutorialsPoint</company> <phone>(011) 123-4567</phone> </address>
  • 20. External DTD In external DTD elements are declared outside the XML file. They are accessed by specifying the system attributes which may be either the legal .dtd file or a valid URL. To refer it as external DTD,standalone attribute in the XML declaration must be set as no. This means, declaration includes information from the external source. Syntax <!DOCTYPE root-element SYSTEM "file-name  where file-name is the file with .dtd extension.
  • 21. Example <?xml version = "1.0" encoding = "UTF-8" standalone = "no" ?> <!DOCTYPE address SYSTEM "address.dtd"> <address> <name>Tanmay Patil</name> <company>TutorialsPoint</company> <phone>(011) 123-4567</phone> </address>