Creating a Simple XML Document XML

In this section, you will learn to create a simple XML document that contains the details of students studying in Form 5. The information about the students is stored in the form of elements, attributes, and the values assigned to the attributes. In addition, the XML document contains the XML declaration statement and the DOCTYPE declaration statement as shown:

You can save the file as Student.xml and open it in Internet Explorer to view the output of the code. The output of the preceding code is shown in Figure.

A Simple XML Document.

A Simple XML Document.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML Topics