|
|
Re: Still more fun with XML [message #43216 is a reply to message #43215] |
Thu, 24 March 2005 13:06  |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <pan.2005.03.24.20.53.49.875000@rsinc.com>,
Karl Schultz <k____schultz@rsinc.com> wrote:
>> Now I know how David feels. :-(
>>
>> Ken Bowman
>
> Looks like you are on OS X. Could be that the Xerces lib has a bug or
> the http protocol never got implemented there. I'll look into it.
>
> It does work on Windows and Linux.
>
> Karl
Well, we do have ways to get weather data that don't involve IDL. ;-)
Ken Bowman
Department of Atmospheric Sciences
Texas A&M University
|
|
|
Re: Still more fun with XML [message #43218 is a reply to message #43216] |
Thu, 24 March 2005 12:54  |
Karl Schultz
Messages: 341 Registered: October 1999
|
Senior Member |
|
|
On Thu, 24 Mar 2005 14:09:03 -0600, Kenneth Bowman wrote:
> In article <pan.2005.03.24.16.43.58.515000@rsinc.com>,
> Karl Schultz <k____schultz@rsinc.com> wrote:
>
>> This program reads an RSS feed from this weather web site. In particular,
>> it gets the weather for the Fort Collins - Loveland airport in Colorado.
>> Of course, you can change it to whatever airport you wish, as long as it
>> is reported on this site.
>
> IDL> weather
> % Compiled module: WEATHER.
> % Loaded DLM: XML.
> % OBJ_NEW: Parser fatal error: File: , line: 0, column: 0 : An exception occurred!
> Type:MalformedURLException, Message:The URL used an unsupported protocol
> % OBJ_NEW: Error encountered during the parse operation.
> % Execution halted at: WEATHER 3 /Network/Servers/csrp.tamu.edu/Volumes/csrp0/Home/bowm
> an/idl/misc/weather.pro
> % $MAIN$
>
>
> Now I know how David feels. :-(
>
> Ken Bowman
Looks like you are on OS X. Could be that the Xerces lib has a bug or
the http protocol never got implemented there. I'll look into it.
It does work on Windows and Linux.
Karl
|
|
|
Re: Still more fun with XML [message #43219 is a reply to message #43218] |
Thu, 24 March 2005 12:09  |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <pan.2005.03.24.16.43.58.515000@rsinc.com>,
Karl Schultz <k____schultz@rsinc.com> wrote:
> This program reads an RSS feed from this weather web site. In particular,
> it gets the weather for the Fort Collins - Loveland airport in Colorado.
> Of course, you can change it to whatever airport you wish, as long as it
> is reported on this site.
IDL> weather
% Compiled module: WEATHER.
% Loaded DLM: XML.
% OBJ_NEW: Parser fatal error: File: , line: 0, column: 0 : An exception occurred!
Type:MalformedURLException, Message:The URL used an unsupported protocol
% OBJ_NEW: Error encountered during the parse operation.
% Execution halted at: WEATHER 3 /Network/Servers/csrp.tamu.edu/Volumes/csrp0/Home/bowm
an/idl/misc/weather.pro
% $MAIN$
Now I know how David feels. :-(
Ken Bowman
|
|
|
Re: Still more fun with XML [message #43228 is a reply to message #43219] |
Thu, 24 March 2005 08:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Karl Schultz writes:
> Since we're so deep into XML...
>
> There's a really fun undocumented feature (that will be documented in the
> next IDL) that allows the IDL XML DOM parser to read XML from a URL
> instead of a local file.
Oh, no! My XML ideas have increased 10-fold! Forget
about writing that book. Programming is too much fun. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|