Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-02 Thread Cameron Johnson
>Do you always know how many children will be returned for a specific node? > >If not you want to check this out. It will loop over children and you can >work specifically with those items. > >http://www.bennadel.com/blog/1039-Ask-Ben-Iterating-Over-A-ColdFusion-XML-Document.htm Yes, but the numb

Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-01 Thread Dave Watts
> I see. Going by the names of the nodes makes sense, and it's easier to > read/manage. In that case, I've got this: > > local.requestXMLObject.methodResponse.params.param.value.struct.member > .value.string.xmlText /> > > Is that the simplest/cleanest that this is going to get? Yes, that's as g

Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-01 Thread Casey Dougall
On Wed, Jul 1, 2009 at 12:23 PM, Cameron Johnson wrote: > > I see. Going by the names of the nodes makes sense, and it's easier to > read/manage. In that case, I've got this: > > local.requestXMLObject.methodResponse.params.param.value.struct.member.value.string.xmlText > /> > > Is that the sim

Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-07-01 Thread Cameron Johnson
Thank you, Dave. >First, have you looked at this? >http://support.journurl.com/users/admin/index.cfm?mode=article&entry=362 Great! I was searching for a component like that, and I never came across this one; just the two old ones that the author references. > > > value1 > >

Re: Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-06-30 Thread Dave Watts
> I'm retrieving an XML packet from an API that uses the XML-RPC standard > (http://www.xmlrpc.com/spec). First, have you looked at this? http://support.journurl.com/users/admin/index.cfm?mode=article&entry=362 > When I connect to the Login method of this API, I need to pull the session ID > ou

Cleaner way to retrieve a value from an XML node (XML-RPC)

2009-06-30 Thread Cameron Johnson
Hi, folks. I'm retrieving an XML packet from an API that uses the XML-RPC standard (http://www.xmlrpc.com/spec). When I connect to the Login method of this API, I need to pull the session ID out of the packet. I can do that long-hand with this: But, there must be a cleaner way to do this,