Question 1
The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
Answer : (3) valid The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
Previous | Next |
NTA UGC-NET CS 2018 July - Paper II | UGC NET CS 2018 July - II Question 2 |
An XML document with correct syntax is called "Well Formed".
An XML document validated against a DTD is both "Well Formed" and "Valid".
XML stands for eXtensible Markup Language.
DTD is a Document Type Definition.
Here is the example of External DTD Declaration for student details.
The XML file definition must contain a reference to the "student.dtd" file:
<?xml version="1.0"?>
Here is the file "student.dtd", which contains the DTD:<!DOCTYPE student SYSTEM "student.dtd">
<student>
<firstname>Raj</firstname>
<lastname>Jani</lastname>
<mobileno>0123xxxx0123</mobileno>
<city>Ahmedabad</city>
</student>
<!ELEMENT student (firstname,lastname,mobileno,city)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT mobileno (#PCDATA)>
<!ELEMENT city (#PCDATA)>