I'm trying to print the xml source content of a page from its url using this :
echo file_get_contents("http://eur-lex.europa.eu/legal-content/FR/TXT/XML/?uri=CELEX:32012R0823
However, an error message appears:
Warning: file_get_contents(http://eur-lex.europa.eu/legal-content/FR/TXT/XML/?uri=CELEX:32012R0823)
What is wrong please ? What is the best way to get the source XML ?