This code is inside a custom tag. so this is something passed in when the 
custom tag is called. 

sorry forgot to mention that :)

jonese

On 8/9/05, Rob <[EMAIL PROTECTED]> wrote:
> 
> how is ATTRIBUTES.input getting into this block? Meaning, is it coming
> from a file or an http post or ... ?
> 
> On 8/9/05, jonese <[EMAIL PROTECTED]> wrote:
> > Man it's a day of bugs.
> >
> > Our CMS uses XML for certain things like our dynamic flash menu etc. and 
> on
> > occasion we'll get the following error:
> >
> > An error occured while Parsing an XML document.
> > Premature end of file.
> >
> > Anyone have any idea why this error would show up just once in a blue 
> moon?
> >
> > here's the snippet when the code is choaking:
> >
> > <cfswitch expression="#ATTRIBUTES.action#">
> > <cfcase value="XML2CFML">
> > <cfif attributes.output EQ "a_formelements">
> > <cfset userInput = XmlParse(ATTRIBUTES.input)> <---------------------- 
> CF
> > reports error on this line
> > <!--- Create array/struct object from datadefinition XML object--->
> > <cfset a_formelements=arrayNew(1)>
> > <cfloop from="1" to="#arrayLen(userInput.XMLRoot.XmlChildren)#" 
> index="q">
> > <cfset thisStruct=structNew()>
> > <cfloop from="1" to="#arrayLen(userInput.XMLRoot.XmlChildren
> [q].XmlChildren)#"
> > index="r">
> > <cfset
> > "thisStruct.#userInput.XMLRoot.XmlChildren[q].XmlChildren[r].XmlName#"=
> > userInput.XMLRoot.XmlChildren[q].XmlChildren[r].XmlText>
> > </cfloop>
> > <cfset a_formelements[q]=thisStruct>
> > </cfloop>
> > <cfset returnThis = a_formelements>
> > <snip>
> >
> > jonese
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to