how to use of XML

By | April 13, 2020

What is the use of XML-: Before we start XML language this is necessary to know that what are use of XML language. XML is used in many aspects of web development. we know that XML does not carry any information about how to be displayed. There are many use of XML language these are the..

  • XML language is keep data separated from Our HTML language data
  • XML language can be used to store data inside HTML documents.
  • XML language are used as a format to exchange information.
  • XML is used to store data in database or others files.

XML language can keep data separated from Our HTML language data-: HTML language pages are used to display data. Data are often stored inside html pages. Although the XML data are stored in a separate XML file. This way you can concentrate on using html for formatting and display. It can be sure that changes in the underlying data will not force changes to any of your HTML code. There are many html applications where XML language are using to store or transport data. While HTML is used to format and display the same data.

XML language can be used to store data inside HTML documents.-: We know that the XML data are stored inside HTML pages as “Data Islands”. We can still concentrate on using HTML for formatting and displaying the data.

XML language are used as a format to exchange information.-: Computer systems and databases contain data in incompatible formats. One of the most time consuming challenge for developers has been to exchange data between such systems over the Internet. Converting the data to XML can greatly reduce this complexity and create data that can be read by different types of applications.

XML is used to store data in database or others files.-: XML can also be used to store data in files or in databases. Applications can be written to store and retrieve information from the store and generic applications can be used to display the data.

Example of XML file-: here is a small example of XML file.There are two website these name netnic and esarkari.

<?xml version="1.0" encoding="utf-8" ?>
<Website>
  
  <store name="netnic">
    <type>This is a computer programming website</type>
    <description>In this website all the programming language</description>
  </store>

  <store name="esarkari">
  <type>This website provide govt job information</type>
  <description> All govt jobs information available</description>
  </store>
  
</Website>

We know that in the XML language the tag are self generated. In this example we create the main tag name is “website” .

Read More -: What Is XML

Leave a Reply

Your email address will not be published. Required fields are marked *