Yeah, I just needed a way to avoid xmllint.
This can definitely be better, but lets create an issue and wait with a refactoring of printXmlWithHeaders for a later moment, ok?