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 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214210 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

