XML Step by Step- P2 doc

15 251 0
XML Step by Step- P2 doc

Đ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

PART 1 Getting Started [...]... use XML as one of the standard document formats For example, Microsoft Excel 2002 lets you open or save workbooks in XML format, as an alternative to the standard xls Excel workbook format And Microsoft Access 2002 allows you to create a database table by importing an XML document, or to export a database table or other object to an XML document I Structuring documents The treelike structure of XML documents... component of an XML document, or an XML schema, which is contained in a separate file A DTD or an XML schema defines and names the elements that can be used in the document, the order in which the elements can appear, the element attributes that can be used, and other document features To use a particular XML application, you usually include its DTD in your XML document or employ its XML schema in processing... XML Documents In addition to XML applications for describing specific classes of documents, several XML applications have been defined that you can use in conjunction with any type of XML document to facilitate the document’s creation or to enhance it in some way Several examples are: I Extensible Stylesheet Language Transformations (XSLT) allows you to create powerful document style sheets using XML. .. conjunction with XML Path Language (XPath), which lets you select specific parts of an XML document XPath uses a location path notation—similar to file paths or URLs—to address locations within the hierarchical XML document structure I XML Schema Definition Language lets you write detailed schemas for your XML documents using standard XML syntax It provides a more powerful alternative to writing DTDs I XML Linking.. .XML shall be compatible with SGML.” XML was designed to be a subset of SGML, so that every valid XML document would also be a conformant SGML document, and to have essentially the same expressive capability as SGML A benefit of achieving this goal is that programmers can easily adapt SGML software tools for working with XML documents “4 It shall be easy to write programs which process XML documents.”... that process the documents In fact, the primary reason for defining the XML subset of SGML was the unwieldiness of writing programs to process SGML documents “5 The number of optional features in XML is to be kept to the absolute minimum, ideally zero.” Having a minimal number of optional features in XML facilitates writing processors that can handle virtually any XML document, making XML documents universally... tools by simply opening an XML document in a text editor and taking a look at it Its human legibility distinguishes XML from most proprietary formats used for databases and word-processing documents Humans can easily read an XML document because it’s written in plain text and has a logical treelike structure You can enhance XML s legibility by choosing meaningful names for your document’s elements, attributes,... elements, attributes, and entities; by carefully arranging and indenting the text to clearly show the logical structure of the document at a glance; and by adding useful comments (I’ll explain elements, attributes, entities, and comments in later chapters.) 1 “3 13 Why XML? Chapter 1 Why XML? 15 note 1 Chapter 1 Why XML? An XML application is usually defined by creating a document type definition (DTD),... Jon Bosak, who chaired the XML Working Group, has created XML versions of the complete works of William Shakespeare, as well as the Old Testament, New Testament, Koran, and Book of Mormon Go to http://www.ibiblio.org/bosak/ to download these documents.) 18 XML Step by Step I Exchanging news articles on the Internet (NML, or News Markup Language) I Storing tracking information by courier services Federal... more standard XML applications that have been defined For example, I’ve listed MathML (Mathematical Markup Language) as a specific XML application for formatting mathematical formulas and scientific content on the Web Why XML? Don’t confuse the expression XML application that is defined here with the general term application, which refers to any type of software program 16 XML Step by Step tip For . database table by importing an XML document, or to export a database table or other object to an XML document. ■ Structuring documents. The treelike structure of XML documents makes XML ideal for. formatting information. Chapter 1 Why XML? 13 1 Why XML? “3 XML shall be compatible with SGML.” XML was designed to be a subset of SGML, so that every valid XML document would also be a conformant SGML document, and. Enhancing XML Documents In addition to XML applications for describing specific classes of documents, several XML applications have been defined that you can use in conjunction with any type of XML document

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