[Book] consistent and complete config examples

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | 

Make configuration examples in the book consistent throughout the different configuration formats. Also fixing several syntax issues.
In most XML code blocks, we have the first attribute on the same line as the element's name. So it's a thing of consistency. But I don't mind if we decide to do it the other way arounds. And not missing the first attribute then is a fair argument. If you agree, I'll just move the first attribute on an extra line in each example that is split across mutliple lines.