我真的只需要能夠驗證我收到的XMI文件是否符合OMG設置的XMI標準。是否有可用於驗證XMI/UML文件的現有XML模式?
例如,
我有開始這樣的文件...
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20090901" xmlns:xmi="http://www.omg.org/spec/XMI/20100901" xmlns:StandardProfileL3="http://schema.omg.org/spec/UML/2.3/StandardProfileL3.xmi" xmlns:StandardProfileL2="http://schema.omg.org/spec/UML/2.3/StandardProfileL2.xmi" xmi:version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/spec/XMI/20100901 file:///D:/data/tools/Altova/XMI.xsd">
<xmi:Documentation exporter="Altova" exporterVersion="1.0"/>
<uml:Model xmi:id="eee_1045467100313_135436_1" name="Data" visibility="public">
<ownedComment xmi:type="uml:Comment" xmi:id="_17_0_8ce027f_1306433568482_126880_1517" body="Created:6/26/11 3:32">
第一部分驗證了就好了,但只要它擊中了UML:型號,它拋出一個錯誤。我查看了OMG的網站,我無法找到一個模式來驗證這個UML部分。我需要自己寫一個嗎?我是否做到了這一點,我沒有真正有過期的經歷,有些工作要求不允許我有時間適當地教育自己。任何和所有的幫助/建議表示讚賞!提前致謝!