0
我有一個名爲Message_Content
對象,它包含以下XML 如何解析XML對象jQuery中
<CONFIRM_ABC_BA_007>
<BSR>
<VERB>PROCESS</VERB>
<NOUN>AB</NOUN>
<REVISION>001</REVISION>
</BSR>
<SENDER>
<LOGICALID>XYHXMK</LOGICALID>
<COMPONENT>SCTWLI</COMPONENT>
<TASK>AB</TASK>
<REFERENCEID>0000000000504205</REFERENCEID>
<CONFIRMATION>2</CONFIRMATION>
<LANGUAGE>ENG</LANGUAGE>
<CODEPAGE>ISO 8859-1</CODEPAGE>
<AUTHID>SAPWLI</AUTHID>
</SENDER>
<DATETIME qualifier="CREATION">
<YEAR>2013</YEAR>
<MONTH>05</MONTH>
<DAY>22</DAY>
<HOUR>17</HOUR>
<MINUTE>20</MINUTE>
<SECOND>09</SECOND>
</DATETIME>
<DATAAREA>
<CONFIRM_BOD>
<ACKCODE>0</ACKCODE>
<DESCRIPTN>Accepted</DESCRIPTN>
</CONFIRM_BOD>
</DATAAREA>
</CONFIRM_ABC_BA_007>
現在,我想在HTML中使用jQuery的鍵值對解析在<span id="output"></span>
頁,例如:
VERB:過程
名詞:AB
LOGICALID:XYHXMK