问题描述
考虑以下 XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none" s:mustUnderstand="1">http://xmlns.scania.com/management/messages/v3</Action>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Data xmlns="http://xmlns.scania.com/management/schema/messages/v3">
<Details />
</Data>
</s:Body>
</s:Envelope>
我正在尝试在信封下获取标记的 xmlns 值中的命名空间值。 我尝试使用
XMLObject.value('namespace-uri((/*:Envelope)[1])','varchar(100)')
这将返回第一个元素的 xmlns。即"http://schemas.xmlsoap.org/soap/envelope/"
我需要深入到标签的 xmlns。即"http://xmlns.scania.com/management/schema/messages/v3"
有人可以帮我吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)