XML missing interferes with rederning - Mozilla
This is a discussion on XML missing interferes with rederning - Mozilla ; api.hi5.com/rest/profile/foaf/2995482
on opening the above link, there is a message
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
and it is displayed in XML text format.
Frankly, it ...
-
XML missing interferes with rederning
api.hi5.com/rest/profile/foaf/2995482
on opening the above link, there is a message
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
and it is displayed in XML text format.
Frankly, it is not html content so I don't really know how else should
be displayed, but the error message makes me think that something should
be done about it.
any help.
--
Rawat
-
Re: XML missing interferes with rederning
V S Rawat wrote:
> api.hi5.com/rest/profile/foaf/2995482
>
> on opening the above link, there is a message
>
> "This XML file does not appear to have any style information associated
> with it. The document tree is shown below."
>
> and it is displayed in XML text format.
>
> Frankly, it is not html content so I don't really know how else should
> be displayed, but the error message makes me think that something should
> be done about it.
>
> any help.
The only one who could do anything about it, is the site
owner/developer, by assigning a stylesheet to it.
However, I suspect that particular file probably wasn't designed to be
read directly in a browser, but, rather, read in by another script, or
application, to include the *data* from that file, in another
page/application.
Hmm, as a matter of fact, that appears to be *exactly* the case. Go to
http://api.hi5.com/
"Hi5 Developer Center
All the latest news on *developing applications that interface* with Hi5."
So, the data that you access through that sub domain, *api*.hi5.com, is
not intended for *end-users*, but rather, *developers*, who would take
the data and then format it in whatever style they choose.
The message, though, is clear enough, that there is *no* style
information associated with the XML file. Its not an "error", but a
simple statement.
FF does the only thing it can do, short of just displaying XML the
source. It shows you the tree, which, IMO, is easier, or 'prettier', to
read than if you view the source, at least in this case. However, if
your preference is to see the source, then CTRL+U will do so.
While I don't know the history behind it, I don't believe that *raw* XML
was ever *intended* to be presented directly to the end-user, without
some sort of pre-processing, with an associated style sheet, script, or
program.
Hmm, ok, here is the, now completed, RFE for 'pretty print' displaying
of XML documents lacking style information, which pretty much backs up
what I've said, above:
Bug 64945 (xmlview) – Better Default layout for "vanilla" XML documents
https://bugzilla.mozilla.org/show_bug.cgi?id=64945
--
Alex K.