【发布时间】:2016-04-25 11:45:17
【问题描述】:
<devices>
<deviceType>PHONE</deviceType>
<account>717</accountId>
<attributes>
<value>New PHONE 1</value>
<key>FRIENDLY_NAME</key>
</attributes>
<attributes>
<value>TRUE</value>
<key>DOWNLOAD </key>
</attributes>
<attributes>
<value>1454737</value>
<key> TIMESTAMP</key>
</attributes>
<deviceId>550BDC49DA724C</deviceId>
</devices>
<devices>
<deviceType>WEB</deviceType>
<accountId>717</accountId>
<attributes>
<value>2016-04-11 08:53:52.866;</value>
<key>REGISTRATION </key>
</attributes>
<attributes>
<value>TRUE</value>
<key>ACTIVE_DEVICE</key>
</attributes>
<creationDate>146036872</creationDate>
<deviceId>997C6AADB51</deviceId>
</devices>
我需要获取 deviceId WHERE deviceType=PHONE、TABLET 或 WEB 的值,并且此设备具有 key=DOWNLOAD 和 value=TRUE 的属性。感谢您提供正确的 XPath。
【问题讨论】:
标签: xml xpath multiple-conditions