Note that it arrived from the source as XML. I totally agree that you could parse the XML and store a cleaner version, but then you've lost the "audit trail" - of what was actually provided way back when. Just something else to consider. Al
On Friday, September 7, 2012 2:12:44 PM UTC-7, Adam Cameron wrote: > > I'm with Alex on this. If you're not needing to work with it as XML, then > don't make it XML. It's a string that you happen to need to store which - > at some point in the future - you need to treat as XML, That "some point > in the future" is when you need to "XMLify" it. Not when yer storing it. > > -- > Adam > > On Friday, September 7, 2012 8:08:23 PM UTC+1, Alex Skinner wrote: >> >> But if it's just for persistence then just treat it as a string rather >> than an xmlobject. Try your example with cfsavecontent rather than cfxml >> >> A >> >> On Friday, 7 September 2012, Benjamin Davis <[email protected]> >> wrote: >> > Thanks Peter. I'll dig into this and see what comes of it. :) >> > >> > On Fri, Sep 7, 2012 at 12:41 PM, Peter J. Farrell <[email protected]> >> wrote: >> >> >> >> Benjamin Davis said the following on 09/07/2012 01:32 PM: >> >>> >> >>> I guess that I should have explained it a little more. The XML is >> actually coming from a webservice. I don't have a choice in that matter. >> What I want to do is store it into Mongo to simplify it, but I will also >> need to be able to reconstruct it or some of it again. If it isn't easily >> possible that's fine. I can come up with some other ideas. >> >> >> >> You can use Mongo to store documents (binary or plain text) using >> Mongo's GridFS support. OpenBD supports it: >> >> >> >> http://www.openbluedragon.org/manual/?/function/mongogridfssave >> >> >> >> I haven't used it directly, but that was a suggestion on the Mongo >> Google Group thread: >> >> >> >> >> https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/uraigjs9A1M >> >> >> >> -- >> >> Peter J. Farrell >> >> OpenBD Steering Committee / Mach-II Lead Developer >> >> http://blog.maestropublishing.com >> >> Identi.ca / Twitter: @maestrofjp >> >> >> >> Please do not send me Microsoft Office/Apple iWork documents. Send >> OpenDocument instead! http://fsf.org/campaigns/opendocument/ >> >> >> >> -- >> >> online documentation: http://openbd.org/manual/ >> >> http://groups.google.com/group/openbd?hl=en >> > >> > -- >> > online documentation: http://openbd.org/manual/ >> > http://groups.google.com/group/openbd?hl=en >> > >> >> -- >> Alex Skinner >> Managing Director >> Pixl8 Interactive >> >> Tel: +448452600726 >> Email: [email protected] >> Web: pixl8.co.uk >> >> >> -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
