this works to convert from XML file to structure

<cfset Data=XmlSearch(arguments.requestData,"REQUESTDATA/")>
<cfloop from="1" to="#Arraylen(Data[i].XMLChildren)#" index="idxData">
          <cfset
createData[Data[i].XMLChildren[idxenrolmentData].XmlName]=Data[i].XMLChildren[idxData].XmlText>
         </cfloop>

Thanks
Regards
Srinivas


On 3/12/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> I'm using that right now, but I just want to offer people alternatives.
>
> -----Original Message-----
> From: James Holmes [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 11, 2007 3:26 AM
> To: CF-Talk
> Subject: Re: Convert XML doc to array or structure or query?
>
> Yes:
>
> XLMParse()
>
> A CF XML object is a series of nested arrays of structs.
>
>
> On 3/10/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
> > Does anyone have code that will take an XML doc (any doc) and convert
> > it to a series of nested structures or arrays or queries or some
> combination?
> >
> > I'm working on my basecamp API and I'd like to offer users the option
> > of receiving the data in XML (the default format) or other formats. I
> > checked cflib and found lots of stuff that converts those other
> > formats into XML, but none that go the other way.
> >
> > ____________________________________
> >
> > Andy Matthews
> > Senior Coldfusion Developer
> >
> > Office:  877.707.5467 x747
> > Direct:  615.627.9747
> > Fax:  615.467.6249
> > [EMAIL PROTECTED]
> > www.dealerskins.com <http://www.dealerskins.com/>
> >
> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272353
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to