📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which of the following is valid XML?

A. <student><name>Ali</name>
B. student name Ali
C. <student><name>Ali</name></student> ✅
D. <student><name>Ali</student></name>

Correct Answer: C. <student><name>Ali</name></student>

Explanation

Valid XML needs matching, properly nested closing tags and a single root.