OK

Here is the code for a file called map.wml, which works fine.
[code]
<?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>
[/code]

Here is the code for a file called map.php
[code]
<?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>
[/code]

The difference is that the second file is a php, but I set up the
header
[code]<?php header('Content-Type: text/vnd.wap.wml, charset=utf-8'); ?>
[/code]

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, [url]
http://www.wapsilon.com/[/url]

map.wml works.  But map.php get xml parse error.
[code]
Parser failed. Invalid XML syntax.
not well-formed (invalid token) at line 5, column 79, byte 172
[/code]

Any ideas?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to