Test Character Injection

This also updates some code styles (XML) in files, and fixes indentation of the generated code.