Fix incorrect namespace comparison to use attribute prefix instead of element prefix