All mock tests are FREE till 31 December — register to save your progress

Which of the following statements is/are true? P : An XML document with correct syntax as specified by W3C is called "Well Formed". Q : An XML documented validated against a DTD is both "Well formed" and "Valid". R : <xml version="1.0" encoding="UTF-8"> is syntactly correct declaration for the version of an XML document. Select the correct answer from the options given below : P Q

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. and only P R

Explanation

Syntactically correct XML is well-formed, and XML validated against a DTD is both well-formed and valid. The declaration must be <?xml version="1.0" encoding="UTF-8"?>, so R is wrong.

More Data Communication and Computer Networks questions