XML 術語

  • 文檔模型: 用於將 XML 數據當作樹型對象進行解析和操縱的技術,也稱作“拉”模型。請參閱作爲示例的 DOM API 標準。
  • DOM: “文檔對象模型”是 XML 文檔的一種特殊樹型結構編程模型,W3C 將它描述成一個標準。DOM 標準目前分成三個級別。DOM 1.0 是指 DOM 級別 1.0 一致性;DOM 級別 2 是最新的規範,W3C 正將它認可爲“推薦”;DOM 級別 3 在本文創作時正在草擬中。
  • DTD: 文檔類型定義。一種 XML 文件,定義了 XML 元素和那些元素的 XML 屬性,而且指定了如何嵌套 XML 標記以及元素可以包含什麼數據的規則。請參閱 Jane Fung 的 XML 和 DTD 簡介以獲取更多詳細信息。
  • 事件模型: 用於通過使用回調或處理程序對 XML 數據進行解析的技術;也稱作“推”模型。例如, 請參閱SAX API 標準。
  • 名稱空間: 明確從不同的 DTD 或模式中標識出 XML 標記的方法,這樣它們可以混合在同一個 XML 文檔中。RDF 非常依賴於這個特性;XML 1.0 標記“xmlns”可以用於在 XML 文檔中定義名稱空間。
  • RDF: 資源描述框架,用於將 XML 屬性數據和通常駐留在別處的信息相關聯的一種壓縮 XML 方言。您的驅動程序的許可證就類似於描述您的 RDF XML 文件。
  • SAX: Simple API for XML 是用於 XML 解析器實現的標準編程接口;SAX 使用面向事件的編程模型。SAX 是由 David Megginson 最早開發的事實上的標準,現在由 XML-dev 郵件列表維護。
  • SOAP: “簡單對象訪問協議”是類似於 XML-RPC( 請參閱XML-RPC)的網絡協議。通過使用 SOAP,應用程序可以創建遠程對象、調用該對象上的方法,以及檢索結果。
  • 驗證: 關於 DTD 和模式,驗證結構良好的 XML 文檔是否正確。
  • 結構良好: 一個 XML 文檔,它的標記和數據符合 XML 1.0 語法。
  • W3C: 世界萬維網聯盟,它已經成爲大多數 XML 相關技術的重要標準主體。W3C 將最終認可的規範稱作“推薦”(而不是標準)。
  • XML 1.0: W3C 頌揚的第一個 XML 語法標準;建立了 XML 數據的基本規則,如所有標記都必須以斜槓( / )結束,如: ,或者後跟一個結束標記,如: close the tag on your way out
  • XML-RPC: XML 遠程過程調用。XML-RPC 是用於跨網絡調用方法和服務的標準 XML 方言;就象您認爲的那樣,XML-RPC 使用 XML 進行客戶機和服務器之間的消息傳遞。
  • XML 模式: XML 模式是一種 W3C 推薦,它類似於 DTD,用於定義 XML 文檔的結構,但具有更好的靈活性。XML 模式使用 XML 1.0 語法來指定模式,這與用於 DTD 的比較早期的 SGML 語法相反。
  • XQuery: 其部分功能類似於 XSLT,但設計得更有利於充當 XML 數據的查詢語言 ― 類似於在關係數據庫中使用 SQL。作爲規範,它還不如 XSLT 成熟,XQuery 也許會成爲今後十年裏的 SQL。
  • XSLT: 可擴展樣式語言轉換,一種用於轉換 XML 內容的 XML 方言。將 XSLT 文件應用於某些 XML 輸入數據,以生成期望的 XML 輸出數據。
These XML terms may come in handy as you read about the libraries discussed in this article:
  • Document model: Technique for parsing and manipulating XML data as a treelike object; this is also called a "pull" model. See the DOM API standard as an example.
  • DOM: The Document Object Model is a specific tree-structured programming model of an XML document described as a standard by the W3C. The DOM standard is currently divided into three levels. DOM 1.0 refers to DOM Level 1.0 conformance; DOM Level two is the most current spec that has been approved by the W3C as a Recommendation; DOM Level 3 is in draft at the time of this writing.
  • DTD: Document Type Definition. An XML file that defines XML elements and XML attributes for those elements and that specifies rules for how XML tags may be nested and what data an element may contain.
  • Event model: Technique for parsing XML data using callbacks or handlers; this is also called a "push" model. See the SAX API standard as an example.
  • Namespaces: Means of unambiguously identifying XML tags from different DTDs or schemas so they can be mixed in the same XML document. RDF is highly dependent upon this feature; the XML 1.0 token "xmlns" can be used to define a namespace within an XML document.
  • RDF: Resource Description Framework, a compact XML dialect for associating XML attribute data with information that usually resides elsewhere. Your driver's license would be analogous to an RDF XML file that describes you.
  • SAX: Simple API for XML is a standard programming interface for XML parser implementations; SAX uses an event-oriented programming model. SAX is a de facto standard first developed by David Megginson and now maintained by the XML-dev mailing list.
  • SOAP: Simple Object Access Protocol is a network protocol similar to XML-RPC (see XML-RPC). Using SOAP, an application can create a remote object, invoke methods on that object, and retrieve results.
  • Validation: Verifying that a well formed XML document is correct with respect to a DTD or schema.
  • Well formed: An XML document whose tags and data are consistent with XML 1.0 syntax.
  • W3C: The Worldwide Web Consortium, which has become the key standards body for most of the XML-related technologies. The W3C calls a finally approved specification a Recommendation (rather than a standard).
  • XML 1.0: The first standard for XML syntax blessed by the W3C; establishes basic rules for XML data, such as all tags must be closed with a slash (/) like this: <example/> or followed by a closing tag like this: <example>close the tag on your way out</example>.
  • XML-RPC: XML Remote Procedure Call. XML-RPC is a standard XML dialect for invoking methods and services across a network; as you can guess, XML-RPC uses XML for the messaging between client and server.
  • XML Schema: XML Schema, a W3C Recommendation, works much like a DTD to define the structure of an XML document but with more flexibility. XML Schema uses XML 1.0 syntax to specify the schema, in contrast to the older SGML syntax used for DTDs.
  • XQuery: Similar in some of its functionality to XSLT but designed more toward acting as a query language for XML data -- analogous to using SQL in a relational database. Less mature than XSLT as a specification, XQuery may become the SQL of the next decade.
  • XSLT: Extensible Style Language Transforms, an XML dialect for transforming XML content. You apply an XSLT file to some XML input data to produce the desired XML output data.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章