Web Programming TutorialsLearn to display xml structure in the browser

Learn to display xml structure in the browser

In this session we will study the XML fundamentals in which we will learn to display the xml structure in your browser.

  • So to display the xml structure in your browser follow the steps given below.

 

    1. Create an new folder on the desktop for example xml :

v1

    1. Inside the xml folder create an new file say index.html

 

    1. Rightclick and open index.html with Notepad++ , the window look like as shown below :

v1.1

    1. Now write the code in the index.html file to create an xml structure.
      <?xml version="1.0" encoding="UTF-8"?>
      <note>
          <to> Vicky</to>
          <from>Mayu</from>
          <heading>Give me Reminder</heading>
          <body>Don't forget me this weekend! Plz</body>
      </note>
      
    1. After writting the code your Notepad++ window will look like as shown below:-

v2

    1. So now when you run it on the browser you will have the following output:-

v3

  1. Thus we have learned to display the xml structure in the web browser by implementing simple example.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exclusive content

- Advertisement -

Latest article

21,501FansLike
4,212FollowersFollow
104,000SubscribersSubscribe

More article

- Advertisement -