1
我有以下XML在SQL Server解析2008在XPath动态选择的节点在SQL Server 2008中
<Root>
<Document>
<Body>
<Component>
</Component>
</Body>
</Document>
</Root>
我想找回我的XML所有<Component>
标签,问题是,有时<Document>
标签可能不来,因此我的xpath查询(root/document/body)将不起作用。有没有办法可以得到所有<Component>
标签,而不管<Document>
标签的存在?
或者,如果你喜欢这个想要更具体些。 '/根//车身/ Component' –