If you use statically
<?php
$xmlReader = XMLReader::xml($xmlString);
?>
You probably can receive such notice:
Non-static method XMLReader::XML() should not be called statically
Solution for this notice can be found below:
<?php
$xmlReader = new XMLReader();
$xmlReader->xml($xmlString);
?>