I'm trying to get the Google Store Locator to work with MYSQL and PHP and I think the first issue I'm having is that the XML is not being created successfully yet. The store locator script is somewhat complicated so I'm trying to break it down to simpler code so I can debug what exactly is going on. Below is the code I'm using to try and get a simple XML document to be generated. It's just giving me a blank screen though and no XML output. Any reason why that would be happening?
<?php
$dom = new DOMDocument("1.0");
$node = $dom->createElement("markers");
$parnode = $dom->appendChild($node);
header("Content-type: text/xml");
$parnode->setAttribute("name", 'test');
echo $dom->saveXML();
?>
<?xml version="1.0"?><markers name="test"/>-- your code does work, absent any other issues creating theDOMDocumentobject.error_reporting(E_ALL); ini_set('display_errors',1);plain/textto see the output as plain XML (Unlike RSS Feeds) won't be specially rendered.php-xml. How you go about doing that depends on your server (distribution if it's Linux, or Windows binary)