You need a closing > on line 20?
-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 February 2005 6:37 PM
To: CF-Talk
Subject: RE: Using Coldfusion with XML
I am receiving the following error when parsing an XML doc,
any ideas why it is looking for <p> etc from the code below ?
Ian
------------------------------
Error Occurred While Processing Request Invalid CFML construct found on line
22 at column 1.
ColdFusion was looking at the following text:<p><</p><p>The CFML compiler
was processing:<ul>< marks the beginning of a ColdFusion tag.Did you mean
LT or LTE?<li>a cfset tag beginning on line 20, column 2.</ul>
The error occurred in \testpages\parse2.cfm: line 22
20 : <cfset mydoc=XmlParse(myxml)
21 :
22 : <cfset
scheme=#mydoc.buildingrecordset.buildingrecord.XMLAttributes.SchemeUniqu
eRecordIdentifier#>
23 :
24 :
-----------CODE--------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TEST XML</title>
</head>
<body>
<cffile action="upload"
filefield="UploadFile"
destination="#GetTempDirectory()#"
nameconflict="overwrite">
<cffile action="read"
file="#GetTempDirectory()##cffile.serverfile#"
variable="myxml">
<cfset mydoc=XmlParse(myxml)
<cfset
scheme=#mydoc.buildingrecordset.buildingrecord.XMLAttributes.SchemeUniqu
eRecordIdentifier#>
<CFOUTPUT>
Name =
#mydoc.buildingrecordset.buildingrecord.XMLAttributes.PersonRegistration
Number#
Record = #scheme#
</CFOUTPUT>
</body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192731
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