Hi Daniel,

Yes you'll need to loop through and append them to a string if you are
trying to save them to one query record. What does the entire xml file look,
I assume that previous piece of code is just one of the entries?


On Fri, Oct 31, 2008 at 12:06 PM, daniel kessler <[EMAIL PROTECTED]> wrote:

> >Hi Daniel
> >
> >You'll need to use XMLAttributes and it will return a structure.
> >
> >XMLChildren[index].category.XMLAttributes
>
> ah that worked nicely.  It gave me a struct and I referenced 'term' to get
> my data.
> parsed["feed"].XMLChildren[index].category.XMLAttributes.term
>
> However, if there were two 'category' items, it only gave me the last one.
>  I figured out how to reference them with [n], but how do I know how many of
> them there are?  I'm supposing that I need to loop through them to get all
> the 'category' entries.  If I try to reference more than what's there, I
> receive an error.
>
>
> Here is my attempt to deal with all that, but I receive an error:
> for (ll = 1; ll LTE 25; ll=ll+1){
>        if
> (isdefined(parsed["feed"].XMLChildren[index].category[ll].XMLAttributes.term))
> categories = categories & 'some_data|';
> }
> if (structKeyExists(parsed["feed"].XMLChildren[index], "category"))
> querySetCell(retQuery, "category", categories, rows);
>
>
> Receives error: Element CATEGORY is undefined in a Java object of type
> class coldfusion.xml.XmlNodeMap referenced as
>
>
> any additional help would be greatly appreciated and thanks Nick for your
> help getting me this far.
>
>
> daniel
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314708
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to