Interesting, well maybe I can use a combination of the two. Store the XML data and then when needed parse section of it into arrays or what not and then work with the resulting objects in CF. And then save it back into the XML document? Insert it back in I guess? I need to brush up on the CFMX XML features and their limitations.
At 08:36 PM 18/10/02 -0400, you wrote: >Friday, October 18, 2002, 7:07:58 PM, you wrote: >B> Does it make sense to take an XML doc from the DB and store it as a client >B> variable for persistence? And if this XML document was used internally via >B> the app and was modified and parse very frequently, would there be a >B> decrease in the performance of parsing arrays,structures and so forth. Are >B> the array functions that work on an XML doc, as fast as the standard Array >B> functions? > >I can't say for sure, but it's a pretty safe bet that the array and >structure functions are magnitudes faster than the XML manipulation >functions. > >B> The XML doc will eventually be shared via web services and I want to get >B> the application ready to handle the XML docs internally. I'm not sure if >B> using the XML doc internally (modifying, parsing and re parsing) is a >B> suitable use of the XML features in CFMX. > >I guess it all really depends on how you want to build your app. If >you are building the entire data layer using XML, you are obviating >the need for a DBMS to handle the data, persistence could be handled >in memory or the file system. It also would make the app a lot more >portable since there isn't a platform on the planet that can't >manipulate strings. >Other than those reasons, I'd stick with arrays/structures/objects and >SQL within the app itself, they have their advantages. > > >-- >jon >mailto:jonhall@;ozline.net > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

