Index
Definition
A Simple Program
Features
Program & Solution
Q. Design a webpage having codes of XML.
DEFINITION
 Extensible Markup Language (XML) is used
to describe data.
 This ability allows XML to support
hierarchical structures. Element names
describe the content of the element, and the
structure describes the relationship between
the elements
DEFINITION
 The basic building block of an XML
document is an element, defined by tags. An
element has a beginning and an ending tag.
All elements in an XML document are
contained in an outermost element known as
the root element. XML can also
support nested elements, or elements within
elements.
A SIMPLE PROGRAM
<?xml version="1.0" encoding="UTF-8"?>
<conversation>
<greeting>Hello, Guy’s!</greeting>
<response>Stop the planet, I want to get
off!</response>
</conversation>
FEATURES OF XML
 XML simplifies data sharing
 XML separates data from HTML
 XML simplifies data transport
 XML increases data availability
 XML simplifies platform change
PROGRAM
 <?xml version="1.0" encoding="UTF-8"?>
 <time>
 <samay category="watch">
 <name>Sonata</name><br>
 <founder>Xerxes Desai <founder><br>
 <year>1984</year><br>
 <price>starting from 275</price><br>
 </samay><br> <br>
 <samay category="watch">
 <name>Rolex</name><br>
 <founder>Hans Wilsdorf and Alfred Davis</founder><br>
 <year>1905</year><br>
 <price>1,490</price><br>
 </samay><br> <br>
 <samay category="watch">
 <name>Titan</name><br>
 <founder>Xerxes Desai</founder><br>
 <year>1984</year><br>
 <price>275</price><br>
 </samay>
 </time>
SOLUTION
XML

XML

  • 2.
    Index Definition A Simple Program Features Program& Solution Q. Design a webpage having codes of XML.
  • 3.
    DEFINITION  Extensible MarkupLanguage (XML) is used to describe data.  This ability allows XML to support hierarchical structures. Element names describe the content of the element, and the structure describes the relationship between the elements
  • 4.
    DEFINITION  The basicbuilding block of an XML document is an element, defined by tags. An element has a beginning and an ending tag. All elements in an XML document are contained in an outermost element known as the root element. XML can also support nested elements, or elements within elements.
  • 5.
    A SIMPLE PROGRAM <?xmlversion="1.0" encoding="UTF-8"?> <conversation> <greeting>Hello, Guy’s!</greeting> <response>Stop the planet, I want to get off!</response> </conversation>
  • 6.
    FEATURES OF XML XML simplifies data sharing  XML separates data from HTML  XML simplifies data transport  XML increases data availability  XML simplifies platform change
  • 7.
    PROGRAM  <?xml version="1.0"encoding="UTF-8"?>  <time>  <samay category="watch">  <name>Sonata</name><br>  <founder>Xerxes Desai <founder><br>  <year>1984</year><br>  <price>starting from 275</price><br>  </samay><br> <br>  <samay category="watch">  <name>Rolex</name><br>  <founder>Hans Wilsdorf and Alfred Davis</founder><br>  <year>1905</year><br>  <price>1,490</price><br>  </samay><br> <br>  <samay category="watch">  <name>Titan</name><br>  <founder>Xerxes Desai</founder><br>  <year>1984</year><br>  <price>275</price><br>  </samay>  </time>
  • 8.