Rules-regulations followed while creating XML document

What are the rules and regulations which should be followed while creating the well-formed XML document?

E

Expert

Verified

The rules and regulations which are necessary to follow while creating the well-formed XML document are as follows:

i. Tags of XML language should be nested properly. This means starting tags must be closed in reverse order in which they present.

ii. The XML's attributes values are essential to enclose inside the double quotation marks.

iii. The root element must be included for enclosing the other child elements.

iv. The XML tags are case-sensitive; hence, start and end tags should be of similar spelling and casing should also be same.

v. The XML's empty tags are required to close with the forward slash (/).

vi. Each start tag should end with the end tag.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.