|
|
@ -51,7 +51,10 @@ class FeedParser {
|
|
|
|
|
|
|
|
|
|
|
|
$this->xpath = $xpath;
|
|
|
|
$this->xpath = $xpath;
|
|
|
|
|
|
|
|
|
|
|
|
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)")->item(0);
|
|
|
|
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($root) {
|
|
|
|
|
|
|
|
$root = $root->item(0);
|
|
|
|
|
|
|
|
|
|
|
|
if ($root) {
|
|
|
|
if ($root) {
|
|
|
|
switch (mb_strtolower($root->tagName)) {
|
|
|
|
switch (mb_strtolower($root->tagName)) {
|
|
|
@ -70,6 +73,7 @@ class FeedParser {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch ($this->type) {
|
|
|
|
switch ($this->type) {
|
|
|
|
case $this::FEED_ATOM:
|
|
|
|
case $this::FEED_ATOM:
|
|
|
|