You are here

public function GenericOpmlParser::__construct in Feeds 8.3

Constructs a GenericOpmlParser object.

Parameters

string $xml: The XML string.

File

src/Component/GenericOpmlParser.php, line 33

Class

GenericOpmlParser
Parses a generic OPML string into an array.

Namespace

Drupal\feeds\Component

Code

public function __construct($xml) {
  $this->xpath = new \DOMXPath(static::getDomDocument($xml));
}