What's new

XML file does not appear to have any style information associated with it ( Solution )

frank

New member
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>

There are some sites that have "This XML file does not appear to have any style information associated with it. The document tree is shown below." displayed at the top, this is something to do with not being correctly read as an XML document?

Ultimately my php code will not parse any data from the websites that display this message, any help that can be easily added to my present code would be greatly appreciated.
 

Sarah

New member
What the "error" means is that there is no stylesheet information provided on how to display the page. Stylesheets are required when viewing an xml in a browser.It's just a warning not an error.There may not be anything wrong structurally with the xml file.
To check if an XML is valid,I use http://validator.w3.org/
Just copy and paste your address to see if the XML is well formed or not.
 
Top