This question is a follow-on from the one I posted here.
Consider the following equivalent XML fragments:
Code:<root> <aaa xmlns="http:www.whatever.com"> <bbb /> </aaa> </root>So, what would be the xpath for extracting "bbb" in each case? Would it be the same in each case? I hope it would be the same in each case because the two cases are equivalent.Code:<root xmlns:x="http:www.whatever.com"> <x:aaa> <x:bbb /> </x:aaa> </root>
EDIT: My instictive reaction in the second case is to write
/root/x:aaa/x:bbb, but this would not work for the first case.