It appears to me that there is an extra (special) char at the file beginining
?<?xml version="1.0"?> <markers><marker name="Pan Africa Market" address="1521 1st Ave, Seattle, WA" lat="47.608940"....... Note that extra ? at the first line. You can't see that in Page View Source. Copy and paste source into Text Editor. Or even better XML Validator http://www.w3schools.com/xml/xml_validator.asp If you try to validate, it will report an error at the top of the file. Thanks, Radina On Aug 18, 11:46 pm, Martin™ <[email protected]> wrote: > Open the URL to your XML in a browser: > > http://www.courtsofsorts.com/phpsqlajax_genxml.php > > Now use the browser's View Source option and you'll see your XML - the > XML also validates so you have no problem there. > > But the XML is being served with a Content-Type of 'text/html'. > I think your problem lies there. > > The function downloadUrl() returns the 'request' onject to your code > and your code tries to use the request object's 'responseXML' property > which is 'null' or 'not defined' presumably because the XML has not > been served with the correct Content-Type of 'text/xml'. > > Add the PHP code back into your script that creates the XML: > > header("Content-type: text/xml"); > > Now load the map - does the request responseXML property now contain > the desired data? > > Martin. > > On Aug 19, 1:10 am, Cole <[email protected]> wrote: > > > > > Thanks for the reply Martin, I appreciate your help! > > > I did have that line of code in my script "header("Content-type: > > text/xml");" however I removed it because I thought maybe it was causing the > > problem based off of the statement below from the tutorial > > > "If you suspect there's a problem with connecting to your database, you may > > find it easier to debug if you remove the line in the file that sets the > > header to the text/xml content type, as that usually causes your browser to > > try to parse XML and may make it difficult to see your debugging messages." > > > Maybe I misunderstood the above statement? I do believe I am connecting to > > the database becuase I ran a few if statements in phpsqlajax_dbinfo.php to > > test the connection and all seemed well. > > > If I posted the the genxml script would it help? > > > Thanks -C- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
