XML Step by Step- P3 docx

15 261 0
XML Step by Step- P3 docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... error page whether or not the XML document is linked to a style sheet note The XML parser is the part of the XML processor that scans the XML document, analyzes its structure, and detects any errors in syntax See the Note on page 26 for a definition of XML processor 32 XML Step by Step In the following exercise, you’ll investigate the Internet Explorer error-checking feature by purposely introducing an... you can quickly check whether an XML document is well-formed by simply opening it directly in Internet Explorer (If you display an XML document through an HTML page, as described in Part 3, an XML document with an error will fail to display, but you won’t see an error message unless you explicitly write script code to show one.) Your First XML Document When you open an XML document directly in Internet... Displaying Your First XML Document In Windows Explorer or in a folder window, double-click the Inventory01 .xml filename to open the document Your First XML Document Internet Explorer will open the Inventory01 .xml document and display it according to the rules in the linked Inventory01.css style sheet, as shown here: 2 6 37 7 To get a feel for how you can change the XML document’s appearance by modifying the...Chapter 2 Creating and Displaying Your First XML Document 31 Your First XML Document 2 the entire document element will be collapsed, as shown here: Catch XML Errors in Internet Explorer Before Internet Explorer displays your XML document, its XML parser component analyzes the document contents If the parser detects an error, Internet Explorer... and then displays a message if it finds an error It doesn’t check whether the document is valid 2 note 36 XML Step by Step The Marble Faun Nathaniel Hawthorne trade paperback 473 $10.95 Moby-Dick Herman Melville hardcover 724 $9.95... filename Inventory .xml Rather than displaying the XML document, Internet Explorer will now display the following error-message page: Chapter 2 Creating and Displaying Your First XML Document 33 4 Because you’ll work with Inventory .xml again in later chapters, you should now restore the end-tag in the first TITLE element to its original form () and then resave the document note If an XML document... it in Internet Explorer to check for additional errors (You can quickly reopen the document or page that’s currently displayed in Internet Explorer by clicking the Refresh toolbar button or by pressing F5.) Even though you didn’t link a style sheet to the XML document, Internet Explorer uses a default style sheet to display the document; hence the error page refers to “using XSL style sheet.” (XSL style... processor 32 XML Step by Step In the following exercise, you’ll investigate the Internet Explorer error-checking feature by purposely introducing an error into the Inventory .xml document 1 In your text editor, open the Inventory .xml document that you created in a previous exercise Change the first TITLE element from The Adventures of Huckleberry Finn to The Adventures of Huckleberry... (Note that the 12-point fontsize specification made for the TITLE element overrides the 10-point specification made for the element’s parent, BOOK.) I Indent the AUTHOR, BINDING, and PRICE elements each by 15 points (margin-left:15pt) . definition of XML processor. 32 XML Step by Step In the following exercise, you’ll investigate the Internet Explorer error-checking feature by purposely introducing an error into the Inventory .xml document. 1. characters. The XML processor ignores comment text, although it can pass the text on to the application. (As explained in Chapter 11, the Internet Explorer XML processor 26 XML Step by Step makes. elements. note The document element in an XML document is similar to the BODY element in an HTML page, except that you can assign it any legal name. 28 XML Step by Step Each BOOK element likewise contains

Ngày đăng: 03/07/2014, 07:20

Mục lục

  • 00000___07be008c8276e95dbbf4cdee2cdf4385

  • 00002___79c277462295ccdeedc24e5b50330987

  • 00003___7e0229f16eefad21c64fe455ba7840d5

  • 00004___a933fe67c82b988d8a19eb1cf4460489

  • 00005___c78cce8114aad80865103a642f927492

  • 00006___05fca2542d7816c3088c08cb5a953c52

  • 00007___dbcd3471236536641cfe07a8b300c340

  • 00008___51a230a8ae343e365423c24fc4c892b8

  • 00011___81cd371e1c1bacf76929df14a6b72ecd

  • 00012___fa71951b85f2335bba3707db9c9945c3

  • 00013___26bf5c8899f363dbe89421db9772700b

  • 00015___5022a336bf7648f50eb2940bafca422e

  • 00016___8ffef2ab3f4bb8896512f1f52c960d61

  • 00018___b1f3d94f696c5e655031dbac60c8b37d

  • 00020___4c4b41b89831554d0ed8dd83097ce467

  • 00022___1f3d089ae9c652aad2afe9c4f573bd2d

  • 00023___4740dcd998da64186e5528f819ce220e

  • 00025___b7b672ade2024f358bfd2d179c77558a

  • 00026___92dda05b322aef279ea8e2bb3247ae41

  • 00027___40313eef7c48a42502c35f6245d97598

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan