Yeah - soXML does a great job, if you're importing XML or exporting XML. However, if you import XML with soXML into a struct, do some processing with that struct, then write the struct back out to an XML file then things start to go a bit squirlley....
soXML always wants to add a rootname, even if the struct already has one. soXML creates a struct variable called "value" with the contents from between open/close tags. When soXML writes the XML back it creates a nested tag called VALUE within your XML tags, therefore invalidating your XML. eg. <myTag>Content</myTag> becomes myTag.value = "Content" becomes <myTag><value>Content</value></myTag> To add to that soXML doesn't seem to handle node type 2 (attributes) eg. <myTag attr1="something" /> attr1 appears to go missing during import Not much, but enough to be troublesome. Stephen ----- Original Message ----- From: "Robert Everland" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 3:27 PM Subject: RE: soXML - Flawed > I use soXML here > http://www.dixonusa.com/index.cfm?fuseaction=company.company_stockquote I > haven't had any issues with it. Remember it uses the xml com object to do > its work. So if you're having trouble with it, it may just be a bad com > object. > > Robert Everland III > Web Developer Extraordinaire > Dixon Ticonderoga Company > http://www.dixonusa.com > > -----Original Message----- > From: Robertson-Ravo, Neil (REC) > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 10:23 AM > To: CF-Talk > Subject: RE: soXML - Flawed > > > yes, I am / and have used WDDX frequently over the years. In fact I am > using it for this project now as its quick, reliable and easily manipulated! > > > > -----Original Message----- > From: Deeds, Dave [mailto:[EMAIL PROTECTED]] > Sent: 16 October 2002 15:15 > To: CF-Talk > Subject: RE: soXML - Flawed > > > Just curious here, but why not WDDX. We are just beginning to explore using > XML to bring some data into CF, and it seemed to me that WDDX was the > perfect answer. In our case the XML is generated by an internal server, > which I grab with CFHTTP and then use WDDX to create a query set for further > manipulation and display. > > Being new to XML, I don't know if WDDX is "good or bad" but it does work. > Are there pitfalls or concerns that I am missing here? > > > Dave Deeds > Idaho Power Company > [EMAIL PROTECTED] > > > -----Original Message----- > > From: Robertson-Ravo, Neil (REC) > > [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 16, 2002 3:37 AM > > To: CF-Talk > > Subject: RE: soXML - Flawed > > > > > > then its useless..... looks like, as I said...its WDDX. > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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