1.

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

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">

<employee>

<name> Rekha </name>

<empid> 6098 </empid>

< designation> Manager </designation>

</employee>

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



Discussion

No Comment Found