On Sat, 30 Jun 2007 11:52:05 -0600, Manfred Staudinger
<manfred(_dot_)staudinger(_at_)gmail(_dot_)com> wrote:
If you want to use a web-service (from Google or Yahoo or any) which
delivers XML and you want to process this XML clientside (in the
browser),
then you have to receive it via a proxy web-page from your domain to
avoid
cross-domain.
For example[1], which using [2,3,4] returns an XML representation of the
JSON returned via Yahoo's traffic service.
Another example[5], which returns an XML representation of XML.com using
[6,7]
You can check out all of this via [8] and, using Mono or MS.NET, get this
running locally by running either [9] on Windows or [10] on Unix* (except
Mac, where running [11] from the command line directly seems to be
necessary)
[1]
http://personplacething.info/service/json-to-xml/?debug=true&uri=http://api.local.yahoo.com/MapsService/V1/trafficData?appid=EricBlogDemo&city=Seattle&state=wa&output=json
[2]
http://extf.googlecode.com/svn/trunk/WebApp/transform/model/json-to-xml.xslt
[3]
http://extf.googlecode.com/svn/trunk/WebApp/service/json-to-xml/service.op
[4] http://dnovatchev.spaces.live.com/blog/cns!44B0A32C2CCF7488!357.entry
[5]
http://personplacething.info/service/proxy/return-xml-from-html/?debug=true&uri=http://www.xml.com&xpath=/html
[6]
http://extf.googlecode.com/svn/trunk/WebApp/transform/controller/proxy/base.xslt
[7]
http://extf.googlecode.com/svn/trunk/WebApp/service/proxy/return-xml-from-html/service.op
[8] http://extf.googlecode.com/svn/trunk/WebApp
[9] http://extf.googlecode.com/svn/trunk/WebApp/start.xsp.console.bat
[10] http://extf.googlecode.com/svn/trunk/WebApp/start.xsp.console.sh
[11] mono ./bin/xsp2.exe --port 9999 --applications /:.
--
/M:D
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |
http://dev.aol.com/blog/3155
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--