Toggle between classes to avoid bugs on XML docs