You are here

protected function FeedsExXml::setUp in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExXml.inc \FeedsExXml::setUp()

Allows subclasses to prepare for parsing.

Parameters

FeedsSource $source: The feed source.

FeedsFetcherResult $fetcher_result: The result of the fetching stage.

Overrides FeedsExBase::setUp

1 method overrides FeedsExXml::setUp()
FeedsExQueryPathHtml::setUp in src/FeedsExQueryPathHtml.inc
Allows subclasses to prepare for parsing.

File

src/FeedsExXml.inc, line 42
Contains FeedsExXml.

Class

FeedsExXml
Parses XML documents with XPath.

Code

protected function setUp(FeedsSource $source, FeedsFetcherResult $fetcher_result) {
  $document = $this
    ->prepareDocument($source, $fetcher_result);
  $this->xpath = new FeedsExXpathDomXpath($document);
}