/**
  * Get XML of banks from scheme operator.
  * Will throw an exception if data cannot be fetched, or XSD validation fails.
  * @param bool $validateXml validate against XSD
  * @param string $url Scheme operator URL for the banks list
  * @throws XmlValidationException when the returned BankList does not validate against XSD and $validateXSD is set to TRUE
  * @return string
  */
 public function GetBanks($validateXml = true, $url = null)
 {
     if ($url == null) {
         $url = 'https://routing.eps.or.at/appl/epsSO/data/haendler/v2_5';
     }
     $body = $this->GetUrl($url, 'Requesting bank list');
     if ($validateXml) {
         XmlValidator::ValidateBankList($body);
     }
     return $body;
 }
 public function testBanksReturnsXmlString()
 {
     $ret = XmlValidator::ValidateBankList($this->GetEpsData('BankListSample.xml'));
     $this->assertTrue($ret);
 }