You are a master, Larry. Thanks.
Found a space before the <?php, which solves the spacing issue and the FF problem (one space... scary). Though things are working (in both IE and FF) I'm still dealing with the Content-type, but that's have nothing to do with Google map. Thanks again. On Nov 26, 5:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 26, 8:02 am, Schall <[EMAIL PROTECTED]> wrote: > > > Sorry I didn't see Larry's or GE reply before, so I just rephrase my > > questions: > > > How can you see that mine XML is in MIME type text/xml (I have define > > the type as in the Google map > > tutorial,http://code.google.com/support/bin/answer.py?answer=65622&topic=11364 > > with: header("Content-type: text/xml"); )? > > http://www.rexswain.com/httpview.html > shows: > Content-Type:·text/html > > as > does:http://web-sniffer.net/http://web-sniffer.net/?url=http%3A%2F%2Fwww.globespots.com%2Fmarkers... > > > > > How can I erase a blank line in XML when the document is generated (as > > in the Google map tutorial) with the DOM object and the command echo > > $dom->saveXML(); ? > > Extra blank lines in the php that generates the XML can cause this. I > don't know what is causing it in your case. > > -- Larry > > > > > Thanks > > > On Nov 26, 4:35 pm, Schall <[EMAIL PROTECTED]> wrote: > > > > Thanks Andrew and Larry, but I still can't get this to work. > > > > The XML file is created by a php file (www.globespots.com/ > > > markersXML.php) based on the Google map tutorial (http://www.map- > > > server.com/googlemaps/tutorial_api2.html) which use the DOM object. > > > This DOM and XML is a bit grey area for me, but the actually text in > > > the XML file is generated by the server, so how can any spaces or > > > declaration be missing/wrong in the XML? > > > > Based on Andrew suggestion I tried to replace the "/>" with both " />" > > > and " /marker>" which just made it not work at all. > > > > I have tried to keep everything in utf-8, but I have overlooked > > > something? > > > > Again any suggestions will be appreciated. > > > > Thanks > > > > On Nov 26, 3:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > wrote: > > > > > On Nov 26, 5:48 am, Schall <[EMAIL PROTECTED]> wrote:> Hi, > > > > > > Small problem, big headache withhttp://www.globespots.com/test.php > > > > > > I'm generating markers from database trough an XML file - similar to > > > > > the Google Map tutorial. They show up fine in IE, but nothing in FF. > > > > > > I have put alert boxes, which shows that the XML is generated fine in > > > > > both cases, but in FF the markers array is not created (markers.length > > > > > = 0). > > > > > > Any ideas any one? > > > > > Firefox has this thing called the "Error Console". It reports: > > > > Error: XML or text declaration not at start of entity > > > > Source File:http://www.globespots.com/test.php > > > > Line: 2, Column: 1 > > > > Source Code: > > > > <?xml version="1.0"?> > > > > > Notice the "Line: 2". There is white space before the <?xml ... > > > > which is invalid. Firefox rejects invalid xml, apparently IE doesn't > > > > care in this case. > > > > > -- Larry- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
