“This XML file does not appear to have any style information”

两盒软妹~` 提交于 2019-12-24 13:34:08

问题


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 of text/html and the parsed XML tree doesn't have any XML-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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!