OK, having thought about it for more than 1 second this time, I guess you're trying to check whether it's a valid doc *before* calling XmlParse(). No, that's not what IsXmlDoc() does. It tests whether an object is that type of object - like IsStruct(). In CFMX an XML document is a particular type of object - like a struct, but not a struct. In other words, it's what XmlParse() generates.
Nick ----- Original Message ----- From: "Nick de Voil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 4:18 PM Subject: Re: [ cf-dev ] IsXMLDoc > Try testing the variable resulting from the xmlParse() rather than the form > variable. > > ----- Original Message ----- > From: "Giles Roadnight" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 24, 2004 4:15 PM > Subject: [ cf-dev ] IsXMLDoc > > > > I have this code: > > > > <cffile action="read" file="#form.xmlUpload#" > > variable="request.uploadedXML"> > > <textarea rows="10" > > cols="70">#request.uploadedXML#</textarea> > > > > <cfif isxmldoc(request.uploadedXML)> > > > > but the cfif is never true. My file is a valid xml document as xmlparse > > works. Why is it always coming up as false? What exactly does IsXML > > document look for? > > > > Thanks > > > > > > Giles Roadnight > > http://giles.roadnight.name > > > > > > > -- > These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ > Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > CFDeveloper Sponsors and contributors:- > *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* > *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* > *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]
