Silicon or boron treating agent