TAILIEUCHUNG - Beginning XML with DOM and Ajax From Novice to Professional phần 8

Tiền tố này sẽ áp dụng đối với các chức năng mở rộng. Theo quy ước, tên miền không gian này nên được một URI tham khảo các tổ chức. Trong trường hợp này, tôi đã gọi một không gian tên. URI có thể có một trang web mô tả các chức năng có sẵn trong không gian tên. Tuy nhiên, không có yêu cầu điều này xảy ra. Sự độc đáo của URI là | 296 CHAPTER 10 USING FLASH TO DISPLAY XML Table 10-1 shows the possible values for the status property. Table 10-1. Values for the status Property of the XML Object Value Meaning 0 No error the document parsed successfully. -2 A CDATA section is not terminated properly. -3 The XML declaration is not terminated properly. -4 The DOCTYPE declaration is not terminated properly. -5 A comment is not terminated properly. -6 An XML element is malformed. -7 The application is out of memory. -8 An attribute value is not terminated properly. -9 A start tag is not matched with an end tag. -10 An end tag exists without a matching start tag. Note that where a document contains more than one error the status property returns the value for the first error. Even when Flash detects an error an application may still be able to traverse all or part of the document tree. You can see an example that loads the document into the Flash 8 file . Open in Flash 8 and compile a SWF file by using the Ctrl Enter shortcut. Figure 10-1 shows an Output window containing the XML content from the external document. Figure 10-1. Displaying XML content in Flash The complete ActionScript code contained within this Flash file follows var oXML XML new XML true processXML CHAPTER 10 USING FLASH TO DISPLAY XML 297 function processXML success Boolean Void if success if 0 trace this You can display the contents within Flash using the previous line shown in bold. Note The trace action displays content in the Output window within Flash. You won t see these messages if you test the compiled Flash movie in a web browser. If you open the file you ll notice that Flash loads the entire contents of the document including the XML declaration. However Flash removes all white space because of the true value assigned to the ignoreWhite property. You should note the following points about loading content into Flash The loading .

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.