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
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.