Comments
It will only find all references starting with "<ref>".

Looking for attributes inside the tag has no sense!