xml-path/src/main/java/io/restassured/path/xml/XmlPath.java
public XmlPath prettyPeek() {
        final GPathResult result = lazyXmlParser.invoke();
        final String prettify = XmlPrettifier.prettify(result);
        System.out.println(prettify);
        return this;
    }
public XmlPath prettyPeek() {
        final GPathResult result = lazyXmlParser.invoke();
        final String prettify = XmlPrettifier.prettify(result);
        System.out.println(prettify);
        return this;
    }
public XmlPath prettyPeek ( ) { final GPathResult result = lazyXmlParser . invoke ( ) ; final String prettify = XmlPrettifier . prettify ( result ) ; System . out . println ( prettify ) ; return this ; }
Peeks into the XML/HTML that XmlPath will parse by printing it to the console in a prettified manner. You can
continue working with XmlPath afterwards. This is mainly for debug purposes. If you want to return a prettified version of the content
see {@link #prettify()}. If you want to return a prettified version of the content and also print it to the console use {@link #prettyPrint()}.
<p/>
<p>
Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek
the content has been downloaded and transformed into another data structure (used by XmlPath) and the XML is rendered
from this data structure.
</p>

@return The same XmlPath instance
Peeks into the XML / HTML that XmlPath will parse by printing it to the console in a prettified manner . You can continue working with XmlPath afterwards . This is mainly for debug purposes . If you want to return a prettified version of the content see { @link #prettify () } . If you want to return a prettified version of the content and also print it to the console use { @link #prettyPrint () } . <p / > <p > Note that the content is not guaranteed to be looking exactly like the it does at the source . This is because once you peek the content has been downloaded and transformed into another data structure ( used by XmlPath ) and the XML is rendered from this data structure . < / p >