How do I make this XML display properly on Firefox?
I want any addon or plugin or anything that will allow me to read this XML properly from the get-go (and hopefully enable me to expand/collapse nodes)
2 Answers
This is actually already part of Firefox/Gecko. See an example. The problem is that it only works for XML documents – specifically Content-Type: application/xml
. Your page is probably returning a text/html
type, causing the browser to use a HTML parser.
-
-
1The case is: firefox already shows xml documents in a neat readable way. Try graphical.weather.gov/xml/docs/SOAP_Requests/NDFDgen.xml and it will show up good. Otherwise, you have an addon overriding browser's default behavior Dec 21, 2011 at 21:54
If you are comfortable then copy the XML and paste it on XMLSPY
On XMLSPY, you can expand/collapse node in a better way.