国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

JP-Zeichenfehler im Titel von XML RSS bei Verwendung von simplexml_load_file() php
P粉032900484
P粉032900484 2024-04-03 21:22:05
0
1
686

PHP-Version: 7.4.30

Ich verwende die PHP-Funktion simplexml_load_file,

$rss = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA);

xml-RSS-Datei [Beispiel]:

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>AAA</title>
<link>https://aaa.com</link>
<description>description</description>
<item>
    <title>PRODUCTS EXPO 2022 in 神戸 ダイジェスト</title>
</item>
</channel>
</rss>?

Ausgabetitel [$rss->channel->item[0]->title]: Die Produktmesse 2022 findet in Südafrika statt?< /p>

So erhalten Sie den Titel: Kobe Digest Product Expo 2022

P粉032900484
P粉032900484

Antworte allen(1)
P粉729436537

我將此行更改為 xml rss JP 字符以進行更正。 一切都很好。

$rss = simplexml_load_file($rsses[$i]['url'], 'SimpleXMLElement', LIBXML_NOCDATA);

$feed = file_get_contents($rsses[$i]['url']);
$rss = simplexml_load_string($feed);
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage