GATE | GATE-IT-2004 | Question 89

Last Updated :
Discuss
Comments
Consider an XML file called intro.xml and a document type definition (DTD) file intro.dtd as follows:

intro.xml

<?xml version = "1.0"?>

<!DOCTYPE myMessage SYSTEM "intro.dtd"›

<myMessage>

<message>Welcome to XML</message>

</myMessage>

intro.dtd

<! ELEMENT myMessage (message)>

<! ELEMENT message (#PCDATA)>

A validating parser will classify intro.xml as

Well-formed and validated

Well-formed but not validated

Validated but not well-formed

Share your thoughts in the comments