Friday, 22 March 2019

UGC NET Computer Science July 2018 - II | Question 1

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.
  1. (1) well-formed
  2. (2) reasonable
  3. (3) valid
  4. (4) logical
Answer : (3) valid

Explanation Question 1

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"?>
<!DOCTYPE student SYSTEM "student.dtd">
<student>
  <firstname>Raj</firstname>
  <lastname>Jani</lastname>
  <mobileno>0123xxxx0123</mobileno>
  <city>Ahmedabad</city>
</student>

Here is the file "student.dtd", which contains the DTD:

<!ELEMENT student (firstname,lastname,mobileno,city)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT mobileno (#PCDATA)>
<!ELEMENT city (#PCDATA)>

PreviousNext
NTA UGC-NET CS 2018 July - Paper IIUGC NET CS 2018 July - II Question 2

No comments:

Post a Comment

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts