我试图在xml文件中的url标记中添加一个url,当我在浏览器上测试它是否打开xml页时,它无法加载。

以下是xml内容
<?xml version="1.0" standalone="yes"?>
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>Zen Mode</title>
<item>
<title>1.0</title>
<pubDate>Sun, 13 Mar 2022 12:44:47 +0530</pubDate>
<sparkle:version>1</sparkle:version>
<sparkle:shortVersionString>1.0</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
<enclosure url="https://firebasestorage.googleapis.com/v0/b/zen-mode-a3f5b.appspot.com/o/Zen%20mode.zip?alt=media&token=b683691f-ea05-4eeb-b055-b3fac38d7390" length="1759048" type="application/octet-stream" sparkle:edSignature="aogXf4IHVLwxqhH/qweqe+YLpm3+E6QLL1QKfr9ESN4+eApwz5AA=="/>
</item>
</channel>
</rss>我试着用vscode进行调试,比如它是否显示任何错误,文档是打开的,但上面有一个红色的颜色标志&

我的目标是xml应该在浏览器上打开,没有任何解析问题。注意:我试着用其他的url Ex:https://google.com代替它,它起作用了。
发布于 2022-03-14 07:02:10
用&代替&
符号的XML实体。
这里的工作代码:-
<enclosure url='https://firebasestorage.googleapis.com/v0/b/zen-mode-a3f5b.appspot.com/o/Zen%20mode.zip?alt=media&token=b683691f-ea05-4eeb-b055-b3fac38d7390' length="1759048" type="application/octet-stream" sparkle:edSignature="aogXf4IHVLwxqhH/qweqe+YLpm3+E6QLL1QKfr9ESN4+eApwz5AA=="/>https://stackoverflow.com/questions/71463721
复制相似问题