Oh yes, thanks 

-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2005 10:58
To: CF-Talk
Subject: RE: Using Coldfusion with XML

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>&lt;</p><p>The CFML
compiler was processing:<ul>&lt; 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>





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:192733
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

Reply via email to