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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214196
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