OK
Here is the code for a file called map.wml, which works fine.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Image">
<p>This is a map
<img src="http://maps.google.com/staticmap?center=40.714728,-73.998672&zoom=14&size=512x512&maptype=mobile\
&markers=40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc\
&key=MAPS_API_KEY&sensor=false" alt="map" />
in a paragraph</p>
</card>
</wml>
Here is the code for a file called map.php
<?php header('Content-Type: text/vnd.wap.wml, charset=utf-8'); ?>
<?php
$xml_version = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
echo $xml_version;
?>
<wml>
<card title="Image">
<p>This is a map
<img src="http://maps.google.com/staticmap?center=40.714728,-73.998672&zoom=14&size=512x512&maptype=mobile\
&markers=40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc\
&key=MAPS_API_KEY&sensor=false" alt="map" />
in a paragraph</p>
</card>
</wml>
The difference is that the second file is a php, but I set up the header
<?php header('Content-Type: text/vnd.wap.wml, charset=utf-8'); ?>
I tried this on several wml samples, which works fine. But for this sample, map.wml works fine when I check it in the emulator, http://www.wapsilon.com/
map.wml works. But map.php get xml parse error.
Parser failed. Invalid XML syntax.
not well-formed (invalid token) at line 5, column 79, byte 172
Any ideas?
Thanks!