for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// Copyright 1999-2021. Plesk International GmbH.
namespace PleskX\Api;
/**
* XML wrapper for responses.
*/
class XmlResponse extends \SimpleXMLElement
{
* Retrieve value by node name.
*
* @param string $node
* @return string
public function getValue($node)
return (string) $this->xpath('//'.$node)[0];
}