问题
I know very little of xml, almost nothing and now I've to deal with a website which allows me to upload any kind of file, but when I visit the link that points to that file I see this message
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>56D9E6D5AB81C7F8</RequestId>
<HostId>
bbhO3UnotoXA8qS8aMbKHhPdjGIwegs6dfX5cPJ7yZS7hRaDTuacjPhaPY4WH/vYXuOBfgCm23o=
</HostId>
</Error>
This means that the server is proposing content as xml but if I upload an xml file, the server will give me the same message. But actually what I don't understand is what's that "AccessDenied"... I don't know where I can start to understand considering that I don't have access to that server. Now I would like to know what is happening exactly, what's the logic behind all this?
回答1:
You will get this error in the client side when the client (the webbrowser) for some reason interprets the HTTP response content as
text/xml
instead oftext/html
and the parsed XML tree doesn't have anyXML-stylesheet
.
Opening Facelets page errors with "This XML file does not appear to have any style information associated with it."
来源:https://stackoverflow.com/questions/33451942/this-xml-file-does-not-appear-to-have-any-style-information