eg
Code: Select all
<user>
<new>
<data></data>
</new>
<new>
<data></data>
</new>
</user>
because at the moment its like this
Code: Select all
<user>
<new>
<data></data>
</new>
</user>
<user>
<new>
<data></data>
</new>
</user>
Code: Select all
Warning: simplexml_load_file() [function.simplexml-load-file]: users.xml:30: parser error : Extra content at the end of the document in /var/www/part2/part2/php/login.php on line 11
Warning: simplexml_load_file() [function.simplexml-load-file]: <new> in /var/www/part2/part2/php/login.php on line 11
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /var/www/part2/part2/php/login.php on line 11
Fatal Error in opening xml doc