From: Dave P. <da...@da...> - 2001-09-07 17:07:28
|
On Fri, Sep 07, 2001 at 11:40:47AM -0400, Sam Steingold wrote: > > *** - The value of obj must be of one of the types xml-comment, xml-decl, xml-misc, string, sequence, xml-obj > > The value is: ok > > fixed, thanks. Tested, confirmed. Thanks. > > Also, what's the correct method of getting `xml-read-from-url' to simply > > fail if it can't connect or the file isn't available? At the moment it > > keeps retrying on me. > > :max-retry is the right one, just like in `with-open-url' Just tried that and it doesn't seem to make any difference. Can you give an example of how I should use it such that it doesn't keep retrying? For example, I tried: ,---- | (xml-read-from-url "http://bogus/" :max-retry 0) `---- and it kept retrying. I also tried things like: ,---- | (xml-read-from-url "http://bogus/" :max-retry 1) | (xml-read-from-url "http://bogus/" :max-retry nil) `---- but it still failed. -- Dave Pearson http://www.davep.org/ |