While writing an xml document what are the rules that are to be followed?
Answer Posted / Chhater Pal Mourya
The rules for writing an XML document include:nn1. The XML declaration must be present at the beginning of the document.n2. All elements and attributes must be properly closed.n3. Elements must have a start tag, content, and end tag unless it is empty.n4. Attribute values should be enclosed in double quotes.n5. Element names are case-sensitive.n6. Names cannot start with a number.n7. XML files can only contain XML or CDATA elements, comments, processing instructions, and declarations.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers