code: public static function loadFile( $xmlFile )
      {
          // Check if user exists at all
          if ( !is_file( $xmlFile ) ||
               !is_readable( $xmlFile ) )
          {
              throw new NoSuchFileException( $xmlFile );
          }
  
          return self::parseXml( $xmlFile );
      }
docs: Create XML document from file
  
  @param string $xmlFile
  @return Document