搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

In v31.0 I can no longer display "raw" XML files with line breaks and "<" and "/>" characters. Is there a setting that will give me back this option?

  • 4 回覆
  • 10 有這個問題
  • 3 次檢視
  • 最近回覆由 mpfaehler

more options

Until a few days ago when I opened an XML file with Firefox I would see the file contents displayed with line breaks and "<" and "/>" and elements. Like this:

<typeOfResource>still image</typeOfResource>

 <genre authority="marcgt">picture</genre>
 <genre authority="nmc">Print, Photographic</genre>
 <originInfo>
   <dateIssued encoding="marc">1884</dateIssued>
   <dateIssued encoding="marc">1884</dateIssued>
   <issuance>monographic</issuance>
 </originInfo>
 <language>

Now it displays like this:


 still image picture Print, Photographic 1884 1884 monographic eng electronic
   

Without line breaks or tags. I need to see the full XML file. How can I set FireFox to display this for me? One of my colleagues uses v31.0 and the XML displays with tags and line breaks for him.

Until a few days ago when I opened an XML file with Firefox I would see the file contents displayed with line breaks and "<" and "/>" and elements. Like this: <typeOfResource>still image</typeOfResource> <genre authority="marcgt">picture</genre> <genre authority="nmc">Print, Photographic</genre> <originInfo> <dateIssued encoding="marc">1884</dateIssued> <dateIssued encoding="marc">1884</dateIssued> <issuance>monographic</issuance> </originInfo> <language> Now it displays like this: still image picture Print, Photographic 1884 1884 monographic eng electronic Without line breaks or tags. I need to see the full XML file. How can I set FireFox to display this for me? One of my colleagues uses v31.0 and the XML displays with tags and line breaks for him.

被選擇的解決方法

As an example, I was looking at sitemap.xml files (Google search for inurl:sitemap.xml). For those that do not have a stylesheet declared, you still should see the classic "highlighted source" presentation:

Example: http://www.website.com/sitemap.xml

Are the files that do not display as expected similar in not declaring a stylesheet?

As a temporary workaround, you can view source to see the original . Either:

  • Ctrl+u
  • right-click > View Page Source
從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

選擇的解決方法

As an example, I was looking at sitemap.xml files (Google search for inurl:sitemap.xml). For those that do not have a stylesheet declared, you still should see the classic "highlighted source" presentation:

Example: http://www.website.com/sitemap.xml

Are the files that do not display as expected similar in not declaring a stylesheet?

As a temporary workaround, you can view source to see the original . Either:

  • Ctrl+u
  • right-click > View Page Source
more options

It turns out that some sort of Skype add-on was the problem. Uninstalling Skype solved the problem.

more options

Great detective work. It's odd how that click-to-call extension creates such random issues...

more options

Thank you folks for filing the issue and for the hint in the right direction. In my case it wasn't the skype extension but the add-on "Selenium Builder 2.3". For me, disabling that add-on fixed the issue.