Search the web
Sign In
New User? Sign Up
radio-dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
xml.getAddressList() is breaking   Message List  
Reply | Forward Message #7816 of 8443 |
Re: [radio-dev] xml.getAddressList() is breaking

Here's the gospel on xml.getAddressList -- I don't use it.

I loop over the elements of a table. It's more efficient anyway, and there's
a limit in xml.getAddressList, that you've apparently run up against, which
makes it unsuitable for general applications.

If you poke around in system.verbs.xxx you'll find some sample code,
iteration over levels of XML structures is all over the place. Try looking
in radioCommunityServer.root. If you really get stuck I'll go dig some up
for you.

File this under "We Make Shitty Software. With Bugs."

Dave


----- Original Message -----
From: "Matt Mower" <mmower@...>
To: <radio-dev@yahoogroups.com>
Sent: Wednesday, May 14, 2003 2:43 PM
Subject: RE: [radio-dev] xml.getAddressList() is breaking


> Hi Eric,
>
> > what about
> >
> > topic(@adrTopicRec^)
> >
>
> I'm not sure why, but this didn't work. adrTopicRec ended up referring
> back to the parent element and not a child.
>
> > Or something that will really work, but may not be feasable.
> >
> > localCopy = baseAddr^
> > local (nodes = xml.getAddressList(localCopy,"outline")
> >
>
> This seems to be the only option left open to me. Fortunately the
> structures I am reading at the moment aren't too extensive but I really
> don't like it. I thought 255 character length limits went out with
> Pascal and bubble memory.
>
> Many thanks for your help Eric, much appreciated.
>
> Regards,
>
> Matt
>
>
>
>
> To unsubscribe from this group, send an email to:
> radio-dev-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>




Wed May 14, 2003 8:05 pm

dwiner
Offline Offline
Send Email Send Email

Forward
Message #7816 of 8443 |
Expand Messages Author Sort by Date

I've run into a problem with Radio's xml.getAddressList() verb. It was working but now it's not. The call I am making is: xml.getAddressList( @outlineNode,...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
2:21 pm

Matt, ... I suspect that you've run into a hidden 255 character limitation in the string representation of addresses, which is what happens when you put them...
Eric Soroos
soroose
Offline Send Email
May 14, 2003
2:32 pm

Hi Eric, ... happens ... Thanks. I was starting to wonder if something like that was going on. I am however having some trouble getting my head around your...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
3:28 pm

... Working on my assumption I tried the following: I wrote a script called splitAddress( adr ) which takes an address and returns a list containing the base...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
4:18 pm

... Guessing, I tried: with baseAddr^ { } and that seemed to do the trick. Level 08 with01 : @["C:\\Program Files\\Radio UserLand\\Data ...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
4:27 pm

... hmmm.... what about topic(@adrTopicRec^) This may work because at this point, adrTopicRec is an address that's in the context of a with. It's not encased...
Eric Soroos
soroose
Offline Send Email
May 14, 2003
4:45 pm

Hi Eric, ... I'm not sure why, but this didn't work. adrTopicRec ended up referring back to the parent element and not a child. ... This seems to be the only...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
6:46 pm

As an addendum to my message I've discovered that anything up to @["C:\\Program Files\\Radio UserLand\\Data ...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
3:08 pm

Here's the gospel on xml.getAddressList -- I don't use it. I loop over the elements of a table. It's more efficient anyway, and there's a limit in...
Dave Winer
dwiner
Offline Send Email
May 14, 2003
8:06 pm

Hi Dave, ... Many thanks for inside track. I wish it had occurred to me to just loop over the table myself, however xml.getAddressList() is a kernelized verb ...
Matt Mower
mowerm
Offline Send Email
May 14, 2003
9:22 pm

... Dave asked for someone to try and clarify, so I figured I'd give it a shot... I haven't tried to solve Matt's addressing problem, but I'm nearly positive...
Brian V Hughes
brianvh
Offline Send Email
May 15, 2003
2:30 pm

I don't have an opinion about the limits, but it didn't make sense to me that it would be more efficient to wlak a table than to use a kernel verb, so I tested...
dabayly
Offline Send Email
May 17, 2003
6:08 pm

I don't know what a relative address is. Maybe someone else can help here. ... From: "Matt Mower" <mmower@...> To: <radio-dev@yahoogroups.com> Sent:...
Dave Winer
dwiner
Offline Send Email
May 14, 2003
10:11 pm

... I know Dave has commented on the inefficiency of lists [1], so I modified your "try walking table" block to use a table as well: bundle { «try walking...
Mark Paschal
markfoxie
Offline Send Email
May 18, 2003
6:42 pm

... Well, that's sure not what I meant, was it? Apparently it was building the test data table that caused the slowdown. The rest of it should still be OK. -- ...
Mark Paschal
markfoxie
Offline Send Email
May 18, 2003
6:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help