Introducing input XML Formatters.

XmlOutputFormatters will be in a separate PR.
please write this in an if statement

multiline long ternaries are just ugly