我想提供一個atom feed。直接與response.getOutputStream().write(message.getBytes());
與消息是上面的字符串Atom feed基礎知識
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><author><name>Autor des Weblogs</name></author><title>Titel des Weblogs</title><id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id><updated>2003-12-14T10:20:09Z</updated><entry><title>Titel des Weblog-Eintrags</title><link href="http://example.org/2003/12/13/atom-beispiel"/><id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id><updated>2003-12-13T18:30:02Z</updated><summary>Zusammenfassung des Weblog-Eintrags</summary><content>Volltext des Weblog-Eintrags</content></entry></feed>
我在寫這個東西:我的HttpServlet寫下面的東西(維基百科複製)。
在Internet Explorer中打開了一個特殊的feed閱讀器頁面,但使用firefox顯示了raw xml。
這是一個Firefox的問題,還是我錯過了一些編碼,標題,MIME類型或其他信息,所有瀏覽器看到一個原子來了?
不錯1.作品廣告。 –