Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.