How to remove xmlns on language_attributes()?

As you can see by the end of the get_language_attributes function there is a call to apply_filters. This allows themes and plugins to change the language attributes. In your case the two xmlns tags are added, one for facebook and one for addthis.

You will have to check your plugins which ones are doing this. Most likely, you have one that adds a facebook like button and add this sharing buttons. Find a more up to date plugin that uses the prefix attribute instead.

Or you could just leave it this way. xmlns is deprecated for this type of use, but it’s not harmful.