XML信息集

對HuaTaiLohankhapedia
Kàu tō-lám 跳至搜尋

XML訊息集(XML Information Set,縮寫XML Infoset)是W3C規範(specification),該規範使用一套訊息項(information item)來描述XML文檔的一个抽象的資料模型。XML訊息集這个規範意圖用於其他規範中以引用良好構成的XML文檔(英语:-{Well-formed XML document}-)中的訊息。

一个XML文檔,只要是良好構成的而且滿足XML命名空間的約束,就存佇有訊息集。一个XML文檔存在訊息集無需要該XML文檔有效。

訊息集會當包含的攏總11種無仝分類的訊息項。

  1. 文檔訊息項 (總是存在)Document Information Item
  2. 元素訊息項(Element Information Item)
  3. 屬性訊息項(Attribute Information Item)
  4. PI訊息項(Processing Instruction Information Item)
  5. 未擴展實體引用訊息項(Unexpanded Entity Reference Information Item)
  6. 字元訊息項(Character Information Item)
  7. 注釋訊息項(Comment Information Item)
  8. 文檔型莫宣告訊息項(The Document Type Declaration Information Item)
  9. 非解析實體訊息項(Unparsed Entity Information Item)
  10. 格式訊息項(Notation Information Item)
  11. 命名空間訊息項(Namespace Information Item)

訊息集舉荐標準第二版佇2004年2月4日予人採納。