您的当前位置:首页正文

homework_10

来源:要发发知识网
Exercise 5

Question1. XML and HTML

One necessary component to facilitate electronic commerce is the

capability to exchange data over varying systems. In this section, you will strengthen your knowledge of XML as a portable language that enables data to be handled by any computer system.

a. What does the term “XML” stand for? What is the function of XML tags, and how does the function of XML tags differ from the function of HTML tags?

b. Contrast the flexibility of using XML tags and HTML tags. c. What is XSL? What is the function of XSL in terms of XML? d. What does a DTD file do?

e. What is one reason why storing data in XML may be preferred to enable multiple systems to exchange data?

Download and save Movies100EX.xml and display.html on your Desktop. Open Movies100EX.xml using Notepad.exe to see the content of the XML file. f. For the movie titled, “Top Gun”, list the following: Year: Score:

Open display.html using Notepad.exe to see the content of the HTML file. Note that the references used to embed the xml file are highlighted in bold font below:

This is a nice use of non-standard HTML. Do we really want to use IE only items. Also, since it is non-standard will the students have gained the knowledge necessary to answer this question?

Drag and drop display.html into an Internet Explorer window to see how it is displayed.

g. Generate another HTML file that displays additional data fields from the XML file, listing Movie_id, Title, Year, Score, and Votes. Save the HTML file as, “myXML.html”. Copy and paste your HTML code.

h. Use Internet Explorer to display myXML.html. Copy the screen shot of this file showing 20 movie entries and paste the screen shot into your assignment submission.

Delete Movies100EX.xml, display.html, and myXML.html from Desktop. To learn more about this topic, you can go to

http://www.w3schools.com/xml/xml_data_island.asp

因篇幅问题不能全部显示,请点此查看更多更全内容