Wednesday, November 4, 2009

Week-06 Questions

01) what exacltly does a DTD do in XML?
An DTD document describes an XML document such as elements, attributes and entities.

02) Nothing. We can use it same as it is.

03) can you use a binary graphics file in an XML document?
Yes. we can use the binary file and parse it into parser.

Longer Questions:

01) Root Elemetn
a) i will use it as >? russianLang?<

b)
<? xml version="1.0" encoding="UTF-8"/?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >




c)write a dtd file
<!DOCTYPE phraseBook [
<!ELEMENT section(sectiontitle,phraseGroup)>
<!ELEMENT phraseGroup(engPhrase,translitPhrase,targLangPharse,gloss)>
<!ELEMENT sectiontitle(#PCDATA)>
<!ELEMENT engPhrase(#PCDATA)>
<!ELEMENT translitPhrase(#PCDATA)>
<!ELEMENT targLangPharse(#PCDATA)>
<!ELEMENT gloss(#PCDATA)>
<!ATTLIST phraseBook targLang CDATA #REQUIRED>
]>

d)
<? xml version="1.0" encoding="UTF-8"/?>

No comments:

Post a Comment