在此之前,我收到了AppHdr和Document中没有命名空间的XML,并且我能够从其中检索数据。
在介绍新的XML之前,我的查询如下:
SELECT XMLData.Value('(/Root/AppHdr/BizMsgIdr)[1]', 'CHAR(16)') As MessageID,
XMLData.Value('(/Root/Document/CorpActnGnlInf/OffclCorpActnEvtId)[1]', 'CHAR(16)') As EventID
FROM Announcement新收到的XML如下:
<Root>
<AppHdr xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BizMsgIdr>MY190531X0000007</BizMsgIdr>
</AppHdr>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:seev.031.001.08" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CorpActnGnlInf>
<OffclCorpActnEvtId>MY190531BONU0007</OffclCorpActnEvtId>
</CorpActnGnlInf>
</Document>
</Root>请协助介绍如何使用新XML进行新查询。
发布于 2019-07-22 15:47:10
https://stackoverflow.com/questions/57139818
复制相似问题