I have this very simple php code:
$xml=simplexml_load_file('abc.xml');
echo $xml;
It shows only blank page, no characters, nothing… Why? Does simplexml_load_file work correctly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$xmlis an object. You can “visualize” it withYou should read the examples section on simplexml in the PHP documentation : http://php.net/manual/en/simplexml.examples-basic.php to understand how to display specific nodes information.
If you want to display the content of your xml directly you can do this :