A
aman.coe
hello all
Consider this xml file:
<root>
<body>
<ElementX id="X1" Xproperty="X_Default_Value" />
<ElementX id="X2" />
</body>
</root>
Here for the element of type 'ElementX' the attribute 'Xproperty' has
default value as 'X_Default_Value'.
Now the question is whether the following Xpath Expression
"//ElementX[@Xproperty='X_Default_Value']" would select a single node
ie ElementX with id as 'X1' or 2 ElementX nodes.
Thanx in advance.
Consider this xml file:
<root>
<body>
<ElementX id="X1" Xproperty="X_Default_Value" />
<ElementX id="X2" />
</body>
</root>
Here for the element of type 'ElementX' the attribute 'Xproperty' has
default value as 'X_Default_Value'.
Now the question is whether the following Xpath Expression
"//ElementX[@Xproperty='X_Default_Value']" would select a single node
ie ElementX with id as 'X1' or 2 ElementX nodes.
Thanx in advance.