public static function validateXsdFromString($xml)
    {
        $xmlDocument = new \DOMDocument();
        $xmlDocument->loadXML($xml);

        return $xmlDocument->schemaValidate(__DIR__ . '/Resources/junit-4.xsd');
    }
public static function validateXsdFromString($xml)
    {
        $xmlDocument = new \DOMDocument();
        $xmlDocument->loadXML($xml);

        return $xmlDocument->schemaValidate(__DIR__ . '/Resources/junit-4.xsd');
    }
public static function validateXsdFromString ( $ xml ) { $ xmlDocument = new \ DOMDocument ( ) ; $ xmlDocument -> loadXML ( $ xml ) ; return $ xmlDocument -> schemaValidate ( __DIR__ . '/Resources/junit-4.xsd' ) ; }
Validate an XML string with JUnit XSD.

@param string $xml XML output.
@return boolean True if the XML is validated by the XSD.
Validate an XML string with JUnit XSD .