Difference between XML and XMI?

最后都变了- 提交于 2020-12-29 02:41:59

问题


Can some one shed some light on the difference between XML and XMI? Can XMI be used in place of XML?


回答1:


The XML Metadata Interchange (XMI) is an Object Management Group (OMG) standard for exchanging metadata information via Extensible Markup Language (XML).

XMI integrates four industry standards:

XML - eXtensible Markup Language, a W3C standard. 
UML - Unified Modeling Language, an OMG modeling standard. 
MOF - Meta Object Facility, an OMG language for specifying metamodels. 
MOF Mapping to XMI 

http://en.wikipedia.org/wiki/XML_Metadata_Interchange

So XMI is a specific application of XML.




回答2:


OK, let's try this again.

No, you cannot use XMI in place of XML. XMI is a specific use of XML.

XMI can only be used to exchange metadata information in accordance with the OMG standard. XMI is a specific application of XML. XMI can only be used for XMI purposes. XML, on the other hand, can be used for all XML applications, including XMI.




回答3:


An XMI document is an XML document. An XML document is not necessarily an XMI document.

This is an XML document:

<myXml>
  <myTag> myContent </myTag>
</myXml>

but it is not an XMI document.

XMI is a specific XML dialect. It consists of a specific set of tags with specific syntax and semantics aimed at describing a model.



来源:https://stackoverflow.com/questions/2605146/difference-between-xml-and-xmi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!