On 2 December 2011 00:52, needgooglemaphelp <[email protected]> wrote:
> I got an error : This pages contains the following errors:
>
> error on lineĀ  at column: XML declaration allowed only at the start of the
> document

OK... that's even better. The browser knows it's XML because of the
Content-type header, and it's now objecting to the <?xml not being
right at the start of the output. In fact it says it's on line 6, so
there are five blank lines before it.

The Content-type header is not being rejected, so there is no output
before that. That means the extra lines are being produced between the
Content-type and the $dom->saveXML() which writes the real output.

I think it would be worth posting the content of the mysql_connect.php
file. CAUTION. Don't give anything vital away. Post it between two
lines
===========
===========
which show exactly where the file starts and ends. Change any data
like servername/ip, password and database name to X. It will look
something like
===========
$dbusername="X";
$dbpassword="X";
$dbname="X";
//
// Next line is database connection
//
$db_connection=mysql_connect('X',$dbusername,$dbpassword) or die(mysql_error());
===========

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to