View Full Version : DomQuery xpath attribute check

15 Oct 2009, 2:21 AM
xml is like below.

<Root><I A='1' B='2' C='3'/></Root>
current xpath is


need to get 'I' node whose second attribute matches '-1'.
Attribute names are not fixed so needs to go by position only.

Above xpath works fine with msxml selectSingleNode().

Looking for an alterate with DomQuery.selectNode.

API documentation says '*' can select any element. But there is nothing to select all attributes.