I have simple XML structure like this:
<project>
<frame>
<object type="Circle" radius="5"/>
<object type="Square" side ="4"/>
</frame>
</project>
What path string should I use(XPath 1.0) to receive radius attribute's value of object, which type attribute is equal to "Circle".
/project/frame/object[@type="Circle"]/@radius
Is it correct?
Edited: Yes, it is really correct, I've checked it using tools, that was adviced me in comments. But the string returned is:
radius="5"
Are there any approach to receice only attribute value - "5"??