Jump to content

xml to php not working...


Rifts

Recommended Posts

hey guys im having a ton of trouble doing a very simple thing

 

im trying to follow this:

http://www.w3schools.com/PHP/php_xml_simplexml.asp

 

but if i copy paste that code it doesn't work I just get these errors:

Warning: simplexml_load_file() [function.simplexml-load-file]: test.xml:1: parser error : Start tag expected, '<' not found in /home/content/54/6407054/html/dev1/d2/index.php on line 2

Warning: simplexml_load_file() [function.simplexml-load-file]: <?xml version="1.0" encoding="ISO-8859-1"?>à¨€ã°€æ¸€æ¼€ç€æ”€ã¸€ in /home/content/54/6407054/html/dev1/d2/index.php on line 2

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/content/54/6407054/html/dev1/d2/index.php on line 2

Fatal error: Call to a member function getName() on a non-object in /home/content/54/6407054/html/dev1/d2/index.php on line 4

 

 

what is going on?

 

i am using php 5 and simplexml is enabled.

Link to comment
https://forums.phpfreaks.com/topic/234904-xml-to-php-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.