Hi everyone!

I need some help please, i've been trawling the net for hours now and can't find what i'm after.

Does anyone know how to either return an xml structure or create an xml doc from a cfdirectory query so i can use it in a Flex tree?

Any pointers or nudges in the right direction will be gratefully received :)

Many thanks in advance guys and gals! :D

CFDirectory returns a structure. From there, you can convert the structure to XML using a CFC that was written by Ray Camden:

http://www.coldfusionjedi.com/projects/toxml/

Hope this helps!

CFDirectory actually returns a query, not a structure. Camden's toXML CFC is still applicable though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.