This works just fine for me and returns 1.

<cffunction access="public" name="readXml" output="false"
returntype="numeric">

<cffile action="">
file="C:\inetpub\wwwroot\temp\ev.xml"

variable="event">

        <cfset variables.calEvents = XmlParse(event) />

<cfset variables.eventChild =

ArrayLen(variables.calEvents.events.event.XmlChildren) />

  

  <cfreturn variables.eventChild>

</cffunction>

<cfoutput>#readXml()#</cfoutput>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to