Forgot to say on which line. See below. And the Exception Message was "Premature end of file".
_____ From: Andy [mailto:[EMAIL PROTECTED] Sent: Monday, September 05, 2005 9:29 AM To: [email protected] Subject: An error occurred while Parsing an XML document I am getting this error when I run a CFC from 1 program, but don't get it when I run it from another. Suggestions? Calling line: <CFSET objProduct.init(UserKey=UserKey,DBSettings=application.DBSettings) /> Associated code: <CFFUNCTION name="init" access="public" output="true" displayname="Initialize Object" hint="Instantiate Object. Returns True if no errors"> <CFARGUMENT name="UserKey" type="numeric" required="true" displayname="Primary Key to User database so that database changes can be tracked"> <cfargument name="DBSettings" type="struct" required="yes"/> <cfset instance=StructNew() /> <cfset intance.Class = "Product" /> <CFSET instance.UserKey = arguments.UserKey> <CFSET instance.Settings = Duplicate(arguments.DBSettings) /> <CFSET createXML() /> <CFSET instance.IsUpdated = false /> <CFRETURN THIS /> </CFFUNCTION> <CFFUNCTION name="createXML" access="private" output="true" displayname="Create XML Container"> ERROR----------> <cfxml variable="instance.xml"> <cfinclude template="#instance.Settings.xmlPath#xmlproduct.cfm" /> </cfxml> <cfset instance.XML.Product.xmlAttributes.HighestSeverity = #instance.Settings.NoWarningError# /> </CFFUNCTION> xmlProduct.cfm file: <Product Key="" ChangedByKey="" ChangedOn="" HighestSeverity="0" Severity="0"> <ID Severity="0"></ID> <InvoiceDescription Severity="0"></InvoiceDescription> <SalesDescription Severity="0"></SalesDescription> <ProductType Key="" Severity="0"></ProductType> <Prices Severity="0"> <Price> <PriceType></PriceType> <UOM></UOM> <UnitPrice></UnitPrice> </Price> </Prices> <ProductionSteps NumberSteps="3"> <Step ID="1">Bake</Step> <Step ID="2">Coat</Step> <Step ID="3">Decorate</Step> </ProductionSteps> <BelongsToGroups GroupKeyList="" IsUpdated="false" Severity="0"> <Group key="" IsNew="" IsDeleted="false"></Group> </BelongsToGroups> <IsInactive Severity="0"></IsInactive> <IsForSale Severity="0"></IsForSale> </Product> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:217351 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

