+2 votes
in Class 12 by kratos

What is the difference between a valid XML document and a "well formed" XML document?

1 Answer

+3 votes
by kratos
 
Best answer

A well formed XML document contains text and XML tags which confirm with the XML syntax.

Valid XML documents must be well formed and are additionally error checked against a DTD.

< ?xml version = "1.0" encoding = "ISO-8859-1'

?>

<! DOCTYPE employee SYSTEM "emp-dtd">

Rekha 6098 < designation> Manager

A valid document is used when documents require error checking, and many documents need to follow the same guidelines.

...