//ddd[@id]
Select all elements of type "ddd" which have property "id"//ddd[@id]
... <aaa> <bbb> <ccc> <ddd id="1">this</ddd> <eee id="2"></eee> <ddd id="3">this</ddd> <fff></fff> </ccc> </bbb> </aaa> ...