>> I've had success with using xmlTransform() and a XSLT sheet...

I considered that and wondered if that would be slower than looping through
the XML document, noting the tag name, stripping the tag, then adding a
structure element based on that name.  I'll have to run some tests and see.
Thanks for your response.

- Jim

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:51 PM
To: CF-Talk
Subject: RE: XML -> Struct -> XML


Well, there's CFWDDX, but that requires a very specific XML document (a WDDX
one).  However, I've had success with using xmlTransform() and a XSLT sheet
to convert arbitrary XML to WDDX and then deserializing it into CF
variables.  I doubt it's a particularly efficient approach, but I'm only
needed it for low-use, admin type functionality.

To do arbitrary XMl to CFML conversions, I think you're out of luck, at
least with native CFML.

barneyb

> -----Original Message-----
> From: Jim Campbell [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 2:08 PM
> To: CF-Talk
> Subject: XML -> Struct -> XML
>
>
> Hi -
>
> This seems like such an obvious function, I'm sure it's right
> under my nose,
> but I'm burned out this afternoon :)
>
> Is there a function/UDF/custom tag that converts XML-formatted text to a
> Struct and back again?
>
> - Jim
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to