Interface for feed parsers.
Currently implemented for these feed types:
Source for this file: /Feed/src/interfaces/parser.php
Version: | //autogentag// |
public static bool |
canParse(
$xml
)
Returns true if the parser can parse the provided XML document object, false otherwise. |
public ezcFeed |
parse(
$xml
)
Parses the provided XML document object and returns an ezcFeed object from it. |
Returns true if the parser can parse the provided XML document object, false otherwise.
Name | Type | Description |
---|---|---|
$xml |
DOMDocument | The XML document object to check for parseability |
Parses the provided XML document object and returns an ezcFeed object from it.
Name | Type | Description |
---|---|---|
$xml |
DOMDocument | The XML document object to parse |
Type | Description |
---|---|
ezcFeedParseErrorException |
If an error was encountered during parsing. |