Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views3 pages

XML DTD

Uploaded by

kngb145
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

XML DTD

Uploaded by

kngb145
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

o

 XML DTD:
o DTD stands for Document Type Definition.
o A DTD defines the structure and the legal elements and attributes of an
XML document.
o The purpose of a DTD is to define the structure and the legal elements and
attributes of an XML document
 XML Elements:
o An XML element is everything from (including) the element's start tag to
(including) the element's end tag.
o An element can contain:
 Text
 Attributes
 other elements
 or a mix of the above
 Attributes:
o Attributes are designed to contain data related to a specific element.
o Attribute values must always be quoted. Either single or double quotes can
be used.
 XML Namespace:
o XML Namespaces provide a method to avoid element name conflicts.
o 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.
o This XML carries HTML table information:
 <table>
<tr>
<td>Apples</td>
<td>Bananas</td>
</tr>
</table>
o This XML carries information about a table (a piece of furniture):
 <table>
<name>African Coffee Table</name>
<width>80</width>
<length>120</length>
</table>
o 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.
o A user or an XML application will not know how to handle these
differences.
o When using prefixes in XML, a namespace for the prefix must be defined.
o The namespace can be defined by an xmlns attribute in the start tag of an
element.
o The namespace declaration has the following syntax.
 xmlns:prefix="URI".
o Namespaces in Real Use:
 XSLT is a language that can be used to transform XML
documents into other formats.
 XML Parser:
o All major browsers have a built-in XML parser to access and manipulate
XML.
o The DOM defines a standard for accessing and manipulating documents.
 Document Object Model {DOM}:
o The DOM defines a standard for accessing and manipulating documents.

4th Floor, R R Plaza, #1-48/243, Plot No.243, Kavuri Hills, Madhapur, Hyderabad, Telangana – 500081
o The XML DOM is a standard for how to get, change, add, or delete XML
elements.
 Xpath in XSLT :
o Xpath can be used to navigate through elements and Attributes in an XML
document
o XPath uses path expressions to select nodes in an XML document. The node
is selected by following a path or steps. The most useful path expressions are
listed below:

4th Floor, R R Plaza, #1-48/243, Plot No.243, Kavuri Hills, Madhapur, Hyderabad, Telangana – 500081

You might also like