The following are the rules and regulations that are necessary to follow while creating a well-formed XML document:
-Every start tag must end with an end tag.
-A root element should be included for enclosing other child elements.
-XML tags are case-sensitive; therefore, start and end tags must be of same spelling and the casing should also be the same.
-XML's empty tags are necessary to close with a forward slash (/).
-XML's attributes values are necessary to enclose within double quotation marks.
-XML tags must be properly nested. It means starting tags should be closed in the reverse order in which they present.