CS311 Midterm 2019
CS311 Midterm 2019
CS311 17-JUNE-2019
2-in xml open() function has 3 arguments define each value and usage. 3 marks
3-write xml document for the following tree image uploaded. 5 marks
4- i)create element "bowler", ii)create attribute "age" set value 35. 5 marks
<country>
<city> lahore</city><city>islamabad</city>
.......
</country>
here .... means more cities which are saved in php array $cities.
1
1. What does XML stand for?
eXtensible Markup Language
eXtra Modern Link
Example Markup Language
X-Markup Language
4. What is the correct syntax of the declaration which defines the XML version?
<xml version="1.0" />
<?xml version="1.0" />
<?xml version="1.0"?>
2
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Yes
No
3
False
True
4
15. Which is not a correct name for an XML element?
All 3 names are incorrect
<first name>
<age>
<NAME>
20. For the XML parser to ignore a certain section of your XML document, which syntax is
correct?
<CDATA> Text to be ignored </CDATA>
<xml:CDATA[ Text to be ignored ]>
5
<PCDATA> Text to be ignored </PCDATA>
<![CDATA[ Text to be ignored ]]>
25. Which XML DOM object represents a node in the node tree?
The nodeList object
The node object
The document object
………………………………………………….
6
Question no 1
During a server request, the readyState changes from 0 to 4:
Question no 2
replacement-entity of > , < , or &
Question no 3
Create new element node
What is Valid XML document Status of 404 and 200 difference batanna tha Difference between XML and xhtml
PHP ma xml ka code Tha wo diaply karwanna tha Ak last Tha new element or attribute create Karna thq
Question no 1
Question no 2
Question no 3
7
8