Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
733 views
in Information Technology by (72.5k points)

A well-formed document must have a root element. Explain with an example.

1 Answer

0 votes
by (89.5k points)
selected by
 
Best answer

To create a well-formed XML document, it is necessary for it to have a root element. A root element is a unique element that contains all other elements in the XML document.

The XML document cannot contain more than one root element.

The following code is an example of a well-formed document:

<address>

<city> Delhi </city>

<state> Delhi </state>

<country> India </country>

</address>

Consider the same code written in the following way:

<city> Delhi </city>

<state> Delhi </state>

<country> India </country>

The preceding code is not a well-formed document, since it does not contain a

root element.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 28, 2018 in Information Technology by Arpita (72.5k points)
0 votes
1 answer

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...