Though JSON has in recent times become the de facto standard response format from API calls, there still are a fair number of APIs which return their response in XML format. Often when this is the case, the returned markup is not formatted in a user-friendly manner. The XML Format Post Processor is an extension for JMeter which serves to format responses in a way that is more easily readable.
In previous posts, we have discussed how to add plugins to JMeter using the JMeter Plugins Manager. Following in the same manner, you can add the XML Format Post Processor which will subsequently allow you to add this component to your test plan.
Using the XML Format Post Processor
It is only necessary to add a single instance of the XML Format Post Processor to your JMeter test. Adding this component to the beginning of your test plan will change the behavior of all subsequently added responses which return in XML.
An example response provided in the official XML Format Post Processor documentation, using a View Results Tree component to display unformatted markup from requests:

After adding an instance of the XML Format Post Processor component to the test plan, XML responses from requests automatically become formatted in a user-friendly manner:

Having the responses formatted in a more human-readable manner can aid in test validation and debugging.
Did you know that RedLine13 offers a full-featured, time-limited free trial? Sign up now, and start testing today!