我有一組xml文件,我必須從中檢索src後存在的值。從xmi文件檢索src值
實施例:
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.epf.uma:ContentDescription xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.6/uma.ecore" xmlns:rmc="http://www.ibm.com/rmc" rmc:version="7.5.1" xmlns:epf="http://www.eclipse.org/epf" epf:version="1.5.1" xmi:id="-ES_igec88m8mZhEXekVK3A" name="fs_evms,_zl9y8FCTEd6XXocT9rJgNQ" guid="-ES_igec88m8mZhEXekVK3A" changeDate="2009-08-01T13:54:29.422-0400" version="7.5.0">
<mainDescription><p>
<img alt="" src="resources/IPMS_As-Is_75.jpg" width="587" height="346" />
</p></mainDescription>
</org.eclipse.epf.uma:ContentDescription>
或
<sections xmi:id="_vlul8AKaEd6N9prBktGuYg" name="Update the opportunity information in Siebel" guid="_vlul8AKaEd6N9prBktGuYg">
<sectionDescription><img alt="" src="resources/UpdateOpportunity.JPG" width="597" height="360" /></sectionDescription>
</sections>
非常從一個XML文件到另一個節點的層次結構和值。請讓我知道如何使用xslt從上述數據中檢索src的值。
問候, 基蘭
XMI文件格式是象下面這樣:![]()
... <之前的圖像格式爲&lt;引號格式爲"格式。 –