I don't think you can upload directly into a variable into memory. I believe the process will need to be:
Upload file from client to server Read file on server into memory variable Process variable into xml -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning ...-----Original Message----- ...From: Ian Vaughan [mailto:[EMAIL PROTECTED] ...Sent: Wednesday, January 26, 2005 7:50 AM ...To: CF-Talk ...Subject: RE: Using Coldfusion with XML ... ...Using the following code I am getting an error complaining of no ...destination specified for the UPLOAD, but in this case what would this ...be as I am not uploading the XML file to a location but to a variable to ...process ... ... ...<form action="parse.cfm" ENCTYPE="multipart/form-data" method="post" ...name="form"> ...<input type="file" name="UploadFile"> ...<p> ...<input type=submit name="submit" value="Upload Document"> ...</form> ... ...And my action page of ... ...<body> ... ...<cffile action="UPLOAD" filefield="Form.UploadFile"> ... ...<CFSET MyXML = XmlParse(#Uploadfile#)> ... ...<CFSET xnBuildingRecord = MyXML.XMLRoot> ... ...<CFSET xnSchemeUniqueRecordIdentifier = ...xnBuildingRecord.XMLAttributes["name"]> ... ...<CFOUTPUT> ...<P>The Number is #xnSchemeUniqueRecordIdentifier#</P></CFOUTPUT> ...</body> ...</html> ... ... ... ...-----Original Message----- ...From: Stephen Moretti (cfmaster) [mailto:[EMAIL PROTECTED] ...Sent: 26 January 2005 15:31 ...To: CF-Talk ...Subject: Re: Using Coldfusion with XML ... ...Ian Vaughan wrote: ... ...>Yes taking the XML doc and parsing the information stored within into a ... ...>database table. ...> ...> ...ok - in which case - I refer you to point 3 of my previous email.... ... ...>If you actually need to do something with the XML data in CF, but only ...>need the CSV as a means of getting the data into CF, then xml2query ...>will cut out the CSV middle-man giving you something easier to work ...with in CF. ...> ...You can then use the query thats been created from the xml to insert the ...data into your database. ... ...Regards ... ...Stephen ... ... ... ... ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191823 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54