As far as I can tell, the raw XML API dump (
http://api.jquery.com/api/) is not being served properly.
That URL returns
index.html with content type not set to
{text,application}/xml. Also, the document is missing an XML declaration at the top (not sure whether that's a problem though).
This means I can't retrieve and parse it via $.ajax - the following raises a
parsererror:
- jQuery.ajax({
- type: "GET",
- url: "http://api.jquery.com/api/",
- dataType: "xml",
- success: function(data, status, xhr) {
- console.log("success", arguments);
- },
- error: function(xhr, error, exc) {
- console.log("error", arguments);
- }
- });
(running from Firebug on api.jquery.com to avoid same-origin restrictions, or from a
file:// URI)
If my assumptions above are correct, I'd appreciate if the server config could be adjusted.
Thanks,
Fred