The document discusses using XML to store live score data for a cricket scoreboard application to display on a web page. XML will be used to store the live score data separately from the HTML, allowing the data to be updated independently from the HTML layout. When the score is final, an XML parser will parse the XML data and insert/update it into a database for future queries. This allows frequently changing live data to be displayed quickly without needing to retrieve it from a database on each refresh.
14. With XML, data can be stored in separate XML files. This way we can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not require any changes to the HTML.
15. With a few lines of JavaScript, we can read an external XML file and update the data content of our HTML.
16.
17. XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.
18. This makes it much easier to create data that different applications can share.
19. With XML, data can easily be exchanged between incompatible systems.
20. One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet.
21. Exchanging data as XML greatly reduces this complexity, since the data can be read by different incompatible applications.
22.
23. XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data.
24. Since XML is independent of hardware, software and application, XML can make the data more available and useful.
26. With XML, the data can be available to all kinds of "reading machines" (Hand held computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities.
27.
28. During the transformation process, the XML parser reads the XML document and examines the XML syntax; then reports any syntax errors that are encountered.
29.
30.
31. XML parsers that use DOM generate a tree structure of the XML document’s content, which is stored in memory.
32. DOM parsers enable the contents of the XML document to be accessed quickly and enable the XML document to be modified by adding and removing nodes.
33.
34. The DOM parser used five classes that are used to navigate and parse elements of an XML document.
44. So, we are using XML documents to store our data, then displaying it over the HTML pages. When we are to finalize our data then, we use XML parsers to parse the data in a suitable format and by using triggers we insert and update the data in database.
45. In this procedure, time required to display the data is very less and there is no burden to first insert data in database and then retrieve it for displaying.
46.
47. Here, we are using XML documents to store our live score that will be displayed over the HTML pages.
48. When the player has fixed the score, we will update it in the database so that further query about the player can be retrieved from the database.