With this approach, a foamy chemical is used to wash the carpet and then the carpet is allowed to dry. The detergents used have lubricants that ensure that the carpet does not get damaged. One of the ingredients common in these shampoos is sodium lauryl sulfate. This ingredient ensures stable foam when cleaning a carpet. Use anti-soiling compounds to avoid resoling of the carpet after using these detergents. Anti-soiling compounds act as a resin and prevent resoling of the carpet.