Merge pull request #3356 from clumens/validate
Test: cts-cli: Validate output when using --output-as=xml.