I tried that route earlier. The block I run into there is that I've put the data in a structured array (item[x].date) and cfmx doesn't allow arraysort or structsort to do this.

On 9/20/05, Jeff Lucido <[EMAIL PROTECTED]> wrote:
Chris:
 
A wise man once told me (in fact, earlier today) ... "A parsed XML document in CF is just an array of structures. Remember that or the next time you ask you owe me a beer." I have done some simple sorting using ArraySort after I shredded my webservice response string using XMLParse. This is especially helpful if you your XML node uses attributes versus elements.
 
Does this help?
-JSLucido


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Gomez
Sent: Tuesday, September 20, 2005 5:06 PM
To: [email protected]
Subject: Re: XPath/XQuery question

I'm working on a site that uses web services for data retrieval. I can use XPath to filter the elements/attributes, but I don't know how to implement XQuery to sort the data. Cause of the site design, I can't use XSLT to do this. Any help appreciated.

On 9/20/05, Jeff Lucido <[EMAIL PROTECTED]> wrote:
Strange timing Chris, I have been working a lot with XML in CF/SQL Server the past few weeks. What is your specific question?
 
-JSLucido


From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Chris Gomez
Sent: Tuesday, September 20, 2005 3:51 PM
To: [email protected]
Subject: XPath/XQuery question

Has anyone tried implementing XQuery into a cfmx 6.1 site? If so, do you have an example I can look at?  I've got XPath working, but am not certain how to use XQuery.

Thanks,

Chris


Reply via email to