Add XML mode option.
Update documentation.