dポイントプレゼントキャンペーン実施中!

初心者です。
このようなエラーがでます。

MM_XSLTransform エラー。
http://www.***.com/contents/?feed=rss2 は有効な XML ドキュメントではありません。
Non-static method DOMDocument::loadXML() should not be called statically, assuming $this from incompatible context (ファイル http://www.***.com/contents/?feed=rss2 内)

<?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"
>

<channel>
<title>��紹������</title>
<atom:link href="http://www.***.com/contents/?feed=rss2" rel="self" type="application/rss+xml" />
<link>http://www.***.com/contents</link>
<description>Just another WordPress weblog</description>
<pubDate>2009å¹´9æ��11æ�\ Fri</pubDate>
<generator>http://wordpress.org/?v=2.6.5</generator>
<language>ja</language>
<item>

どういう意味かわかりませんが文字化けしています。
わかる方すみませんがよろしくお願いします。

A 回答 (1件)

�のようになっているのは、文字化けではなくUnicodeを参照するエンティティです。


文字コードを
&#10進コード;
あるいは
&#x16進コード;
のように書きますと、該当する文字に置き換わって表示されます。

MM_XSLTransform エラー。
http://www.***.com/contents/?feed=rss2​ は有効な XML ドキュメントではありません。
みたいなのは・・・
Internet Explorerだとセキュリティのポリシーが厳しくて、複数のドメインにあるファイルにはアクセスできないようになっている場合があります。

その他だと、ファイルを書くときに単純にタイプミスということもあるでしょう。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!