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

What will be an ideal response?


The XML specification provides for two levels of document processing: well-formed and
valid. A non-validating processor ensures that an XML document is well-formed before
passing the information in the document on to the application. An XML document that
conforms to the structural and notational rules of XML is considered well-formed. Among
others, well-formed XML documents must conform to the following rules:
? the document must start with the XML declaration ;
? all elements must be contained within one root element;
? elements must be nested in a tree structure without any overlap;
? all non-empty elements must have a start-tag and an end-tag.
A validating processor will not only check that an XML document is well-formed but that it
also conforms to a DTD, in which case the XML document is considered valid.

Computer Science & Information Technology

You might also like to view...

What-if analysis is the process of substituting values to see the effect on dependent calculations

Indicate whether the statement is true or false

Computer Science & Information Technology

The file extension for a Microsoft Excel 2016 spreadsheet is ________

A) .pptx B) .docx C) .xlsx D) .accdb

Computer Science & Information Technology

Both long text entries and long numeric entries are truncated when the column they are in is too narrow or when there is content in the column to the right

Indicate whether the statement is true or false.

Computer Science & Information Technology

A(n) ____________________ is the location on a web page that a browser displays when an internal link is clicked.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology