Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] Help with XML and PHP From: James Spahr (james <email protected>)
Date: 07/03/00

on 7/3/00 11:02 AM, John Levon at moz <email protected> wrote:

> <?xml version='1.0'?>
>
> <QUESTION>How muych ?</QUESTION>
> <ANSWER>Too much</ANSWER>
>
>
>
> but I get this :
>
> How muych ?XML error: junk after document element at line 4
>
>
> can anybody help ?

maybe because your file is not valid xml? XML spec states you need a single
top level tag. So this should be valid:

<?xml version='1.0'?>

<myXML>
    <QUESTION>How muych ?</QUESTION>
    <ANSWER>Too much</ANSWER>
    </myXML>

HTH

James.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>