Question
xml error
I am calling this XMLvalidate function and getting error
message instead of returing FALSE. Any idea.. Thanks
<cfcomponent>
<cffunction
name = "xml_validate"
returntype="string"
output = "yes"
access = "remote">
<cfset myResults=XMLValidate("#xml#","/c/www/test.xsd/")>
<cfif #myResults.status# neq 'YES'>
<cfset myResults ="FALSE">
<cfelse>
<cfset myResults ="TRUE">
</cfif>
<cfreturn #myResults#>
</cffunction>
</cfcomponent>
<cfcomponent>
<cffunction
name = "xml_validate"
returntype="string"
output = "yes"
access = "remote">
<cfset myResults=XMLValidate("#xml#","/c/www/test.xsd/")>
<cfif #myResults.status# neq 'YES'>
<cfset myResults ="FALSE">
<cfelse>
<cfset myResults ="TRUE">
</cfif>
<cfreturn #myResults#>
</cffunction>
</cfcomponent>