这是我的问题:从以下XML中,我想知道在给定步骤ID和组件ID的情况下,名称为“Enabled”的变量的值是否等于“Yes”,该XML位于一个列中。
'<xml>
<box stepId="1">
<components>
<component id="2">
<variables>
<variable id="3" nom="Server" valeur="DEV1" />
<variable id="4" nom="Enabled" valeur="Yes" />
</variables>
</component>
<component id="3">
<variables>
<variable id="3" nom="Server" valeur="DEV1" />
<variable id="4" nom="Enabled" valeur="No" />
</variables>
</component>
</components>
</box>
<box stepId="2">
<components>
<component id="2">
<variables>
<variable id="3" nom="Server" valeur="DEV2" />
<variable id="4" nom="Enabled" valeur="Yes" />
</variables>
</component>
<component id="3">
<variables>
<variable id="3" nom="Server" valeur="DEV2" />
<variable id="4" nom="Enabled" valeur="No" />
</variables>
</component>
</components>
</box>
</xml>'
@x
是什么? - Ian BoydDECLARE @x XML = (xml from question);
жқҘжөӢиҜ•XMLпјҢдҪҶжҳҜд»Һзӯ”жЎҲдёӯеҲ йҷӨдәҶиҝҷйғЁеҲҶеҶ…е®№еӣ дёәе®ғжҳҜеӨҡдҪҷзҡ„гҖӮжҖ»д№ӢпјҢжҲ‘жҖҖз–‘е®ғжҳҜдёҖдёӘеҢ…еҗ«й—®йўҳдёӯXMLзҡ„еҸҳйҮҸгҖӮ - sirdank