TAILIEUCHUNG - XML Step by Step- P23

XML Step by Step- P23:Extensible Markup Language, or XML, is currently the most promising language for storing and exchanging information on the World Wide Web. Although Hypertext Markup Language (HTML) is presently the most common language used to create Web pages, HTML has a limited capacity for storing information. In contrast, because XML allows you to create your own elements, attributes, and document structure, you can use it to describe virtually any kind of information from a simple recipe to a complex database | Chapter 11 Displaying XML Documents Using Document Object Model Scripts 407 XMLNamespaceName SchemaFileURL XMLSchemaCache It then sets the Document node s async property to false to cause the document to be loaded synchronously explained later cause subsequent call to load method to load the XML document synchronously false Finally it calls the Document node s load method to load the XML document from the document file load the XML document into the Document node XMLFileURL The schemas and async properties and the load method are briefly described in Table 11-3. Because the script provides the URL of an XML schema file via the Document node s schemas property before calling load the Internet Explorer XML processor checks the validity of the XML document against that schema when it loads and processes the XML document. And because the script sets the Document node s async property to false before calling load the document is loaded synchronously. That is the call to load doesn t return until the XML document is completely loaded eliminating the need to check whether the document is fully loaded before accessing the error information or the document data. When you load an XML document using a data island as in the DTD validity-checking page presented previously Internet Explorer automatically causes the document to be loaded synchronously. note The schema validity-testing page can t use a data island to load the XML document because with that technique by the time the script gains access to the Document node the XML document has already been fully or partially loaded and the script would be unable to use Document node properties to control the way the loading is performed. In particular it would be unable to supply an XML schema that the processor uses to validate the document when it loads it. As when a document is loaded through a data island document error information is stored in the Document node s

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
2    4    0    11-08-2020
40    9    1    11-08-2020
2    5    0    11-08-2020
3    8    0    11-08-2020
8    4    0    11-08-2020
TÀI LIỆU LIÊN QUAN
19    16    0
182    15    0
138    6    0
3    7    0
142    12    0