Hello.
Here is the site: http://www.normacs.ru/Doclist
If you press ctrl + u on it, you will see the xml code.
However, if you look through the inspector, we will see html.
The problem when (cUrl, getContent,simplexml_load_file) treated exactly as html.
How to get around the problem?
1 answer
Because at the beginning of the xml document there is a string
<?xml-stylesheet type="text/xsl" href="/doclist.xsl"?> It forces the browser to apply a doclist.xsl conversion to the XML document XSLT. That's all the magic.
- Thank you, I will mark the answer as true. But do not tell me how to get around this when parsing? - Artur Panteleev
|