<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0 
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT size=2><FONT size=3>Hi, given my local server can run ASP (JSP) 
code,  and also I have embed openstreetmap in my web mashup, so I can get 
the bounds of current <BR>Openstreetmap view, just like 
(0,51.5,0.25,51.75).  Based on this, how can I get the corresponding OSM 
XML data Programatically in my web mashup? That is to say, I want to get the XML 
map data using ASP or JSP code in webpage. Any specific advice is of great help 
for me.<BR><BR>Thank you so much.<BR><BR>Best regards and 
wishes<BR>Xintao<BR><BR><BR>--------------------------------------------------<BR>From: 
"Stefan Breunig" <</FONT><A href=""><FONT 
size=3>stefan@mathphys.fsk.uni-heidelberg.de</FONT></A><FONT 
size=3>><BR>Sent: Tuesday, February 24, 2009 2:57 AM<BR>To: "xintao" 
<</FONT><A href=""><FONT size=3>xintaoliu@hotmail.com</FONT></A><FONT 
size=3>><BR>Cc: <</FONT><A href=""><FONT 
size=3>dev@openstreetmap.org</FONT></A><FONT size=3>><BR>Subject: Re: 
[OSM-dev] How to download the map data Programatically?<BR><BR>> You can 
parse XML files using the browser's integrated XML parser, see<BR>> [1]. 
However, due to security reasons you can't do this across domains<BR>> ¨C 
you'll have to save the XML file to your server either manually or<BR>> via 
server side processing (e.g. C++, PHP or whatever programming<BR>> language 
your server has to offer). [1] also notes this. Flash can<BR>> probably work 
cross-domain, but I'm not sure about that and I don't<BR>> know if it's even 
possible to transfer the data from Flash to HTML<BR>> DOM/JS, but if you 
don't have server side programming support it's<BR>> probably your only 
chance.<BR>><BR>> Greetings<BR>> xeen<BR>><BR>> [1] </FONT><A 
href=""><FONT 
size=3>http://www.w3schools.com/Xml/xml_parser.asp</FONT></A><BR><FONT 
size=3>><BR>> On Tue, Feb 24, 2009 at 02:34, xintao <</FONT><A 
href=""><FONT size=3>xintaoliu@hotmail.com</FONT></A><FONT size=3>> 
wrote:<BR>>> Dear all,<BR>>><BR>>> Hi, we know we can access 
the OSM data using this method:<BR>>> </FONT><A href=""><FONT 
size=3>http://api.openstreetmap.org/api/0.5/trackpoints?bbox=0,51.5,0.25,51.75</FONT></A><FONT 
size=3>.<BR>>> My question is, if I want to use Javascript code to save 
this file<BR>>> Programatically in my web page, how can I do 
it?<BR>>><BR>>> Second, when I make a web mashup, e.g.<BR>>> 
</FONT><A href=""><FONT 
size=3>http://www.hig.se/~xioliu/openstreetmap.html</FONT></A><FONT size=3>, how 
can I add a rigth-click<BR>>> menu, rather than the right-click menu of 
the Brower?<BR>>><BR>>> Any of your comments and advice are highly 
appreciated and anticipated. <BR>>> Many<BR>>> thanks in 
advance.<BR>>><BR>>> Yours sincerely<BR>>><BR>>> 
Xintao<BR>>><BR>>> 
_______________________________________________<BR>>> dev mailing 
list<BR>>> </FONT><A href=""><FONT 
size=3>dev@openstreetmap.org</FONT></A><BR><FONT size=3>>> </FONT><A 
href=""><FONT 
size=3>http://lists.openstreetmap.org/listinfo/dev</FONT></A><BR><FONT 
size=3>>><BR>>><BR>><BR>><BR>><BR>> -- <BR>> Please 
encrypt your mail:<BR>> </FONT><A href=""><FONT 
size=3>http://mathphys.fsk.uni-heidelberg.de/~stefan/publickey.asc</FONT></A><BR><FONT 
size=3>> FP: 2620 E737 FD50 60AB 86B6 1B9D 3BFD AFFB 5B15 
6893<BR>></FONT></FONT></DIV></BODY></HTML>