1. What is XML stand for? and CSS
XML -> Extensible Markup Language
CSS -> Cascading Style Sheet
2. Is this well formed? say why.
<b> <i>This text is bold and italic<b></i>
No. Becuase the tags are not nested properly. it shold be like this,
<b> <i>This text is bold and italic<i></b>
3. Is this xml dovument well formed?
<?xml version="1.0" ?>
<greeting>
Hellow,world!
<greeting>
<greeting>
Hellow Mars too!
</greeting>
Yes. Becuase all the tags are properly closed and in the nested order and also it is not case sensitive.
Longer Question1. XML document with the following information.
Name of the class, room name, start time and end time.
<?xml version="1.0"?>
<myinfo>
<course>Internet Application Development</course>
<building>hatchcraft</building>
<roomName>H104</roomName>
<startTime HH="09" MM="30">09:30</startTime>
<endTime HH="12" MM="30">12:30</endTime>
</myinfo>
2.
Wrong syntaxi) <1stEdition>2005</1stEdition> //cannot start with number
ii) <2ndEdition>2005</2ndEdition> //cannot start with number
iii) <price>19.99</price> //wrong attributes placement
iv) <!--est selling -->
v) </Price> //case sensitive
vi) <1stEdition>2005</1stEdition> //cannot start with number
vii) <1stEdition>2003</1stEdition> //cannot start with number
viii)<2ndEdition>2008</2ndEdition> //cannot start with number
ix) <discount>29.95</discount > //wrong closing tag
x) <author><!--other authors not listed -->></author> // commenting tag
xi) <1stEdition>1994</1stEdition> //cannot start with number
xii) ix) <discount>29.95</discount > //wrong closing tag
xiii) ix) <bookstore></bookstore > //no closing tag for bookstore
03. Creating a DTD for a XML
<!DOCTYPE memo
[
<!ELEMENT memo (to,from,heading,body,date,securityClass?)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT sn (#PCDATA)>
<!ATTLIST memo sn (#PCDATA requirment)>
]>