Changeset 7728


Ignore:
Timestamp:
Apr 12, 2010, 9:09:34 PM (13 years ago)
Author:
rick
Message:

Make the <xml the first part of the output (as dirty hack) to allow validation of the xml with comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r7726 r7728  
    88require_once('config.php');
    99require_once($config['file_init']);
     10
     11// Make it parse properly within Firefox so that it will display a DOM tree
     12header('Content-Type: text/xml');
     13
     14// And echo the result to the screen
     15// TODO: Need to fix this wierd error... Or is it just USBWebserver? Line is invisible!
     16echo '<?xml version="1.0" encoding="UTF-8"?>';
    1017
    1118// Creating a placemark using our class
     
    5461$kmlFile->parseStatusFile($nodeStatus->read());
    5562
    56 // Make it parse properly within Firefox so that it will display a DOM tree
    57 header('Content-Type: text/xml');
    58 
    59 // And echo the result to the screen
    60 // TODO: Need to fix this wierd error... Or is it just USBWebserver? Line is invisible!
    61 echo '<?xml version="1.0" encoding="UTF-8"?>';
    6263echo $kmlFile->toString();
    6364?>
Note: See TracChangeset for help on using the changeset viewer.